All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.Task Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataplex/v1/tasks.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dataplex.v1;

/**
 *
 *
 * 
 * A task represents a user-visible job.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task} */ public final class Task extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task) TaskOrBuilder { private static final long serialVersionUID = 0L; // Use Task.newBuilder() to construct. private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Task() { name_ = ""; uid_ = ""; description_ = ""; displayName_ = ""; state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Task(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 8: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.class, com.google.cloud.dataplex.v1.Task.Builder.class); } public interface InfrastructureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.InfrastructureSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Compute resources needed for a Task when using Dataproc Serverless.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * * * @return Whether the batch field is set. */ boolean hasBatch(); /** * * *
     * Compute resources needed for a Task when using Dataproc Serverless.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * * * @return The batch. */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources getBatch(); /** * * *
     * Compute resources needed for a Task when using Dataproc Serverless.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder getBatchOrBuilder(); /** * * *
     * Container Image Runtime Configuration.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * * * @return Whether the containerImage field is set. */ boolean hasContainerImage(); /** * * *
     * Container Image Runtime Configuration.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * * * @return The containerImage. */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime getContainerImage(); /** * * *
     * Container Image Runtime Configuration.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeOrBuilder getContainerImageOrBuilder(); /** * * *
     * Vpc network.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * * @return Whether the vpcNetwork field is set. */ boolean hasVpcNetwork(); /** * * *
     * Vpc network.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * * @return The vpcNetwork. */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork getVpcNetwork(); /** * * *
     * Vpc network.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder getVpcNetworkOrBuilder(); com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ResourcesCase getResourcesCase(); com.google.cloud.dataplex.v1.Task.InfrastructureSpec.RuntimeCase getRuntimeCase(); com.google.cloud.dataplex.v1.Task.InfrastructureSpec.NetworkCase getNetworkCase(); } /** * * *
   * Configuration for the underlying infrastructure used to run workloads.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.InfrastructureSpec} */ public static final class InfrastructureSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec) InfrastructureSpecOrBuilder { private static final long serialVersionUID = 0L; // Use InfrastructureSpec.newBuilder() to construct. private InfrastructureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InfrastructureSpec() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InfrastructureSpec(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_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_InfrastructureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder.class); } public interface BatchComputeResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) com.google.protobuf.MessageOrBuilder { /** * * *
       * Optional. Total number of job executors.
       * Executor Count should be between 2 and 100. [Default=2]
       * 
* * int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The executorsCount. */ int getExecutorsCount(); /** * * *
       * Optional. Max configurable executors.
       * If max_executors_count > executors_count, then auto-scaling is enabled.
       * Max Executor Count should be between 2 and 1000. [Default=1000]
       * 
* * int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxExecutorsCount. */ int getMaxExecutorsCount(); } /** * * *
     * Batch compute resources associated with the task.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources} */ public static final class BatchComputeResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) BatchComputeResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use BatchComputeResources.newBuilder() to construct. private BatchComputeResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchComputeResources() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchComputeResources(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_BatchComputeResources_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_InfrastructureSpec_BatchComputeResources_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.Builder .class); } public static final int EXECUTORS_COUNT_FIELD_NUMBER = 1; private int executorsCount_ = 0; /** * * *
       * Optional. Total number of job executors.
       * Executor Count should be between 2 and 100. [Default=2]
       * 
* * int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The executorsCount. */ @java.lang.Override public int getExecutorsCount() { return executorsCount_; } public static final int MAX_EXECUTORS_COUNT_FIELD_NUMBER = 2; private int maxExecutorsCount_ = 0; /** * * *
       * Optional. Max configurable executors.
       * If max_executors_count > executors_count, then auto-scaling is enabled.
       * Max Executor Count should be between 2 and 1000. [Default=1000]
       * 
* * int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxExecutorsCount. */ @java.lang.Override public int getMaxExecutorsCount() { return maxExecutorsCount_; } 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 (executorsCount_ != 0) { output.writeInt32(1, executorsCount_); } if (maxExecutorsCount_ != 0) { output.writeInt32(2, maxExecutorsCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (executorsCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, executorsCount_); } if (maxExecutorsCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxExecutorsCount_); } 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.InfrastructureSpec.BatchComputeResources)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources other = (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) obj; if (getExecutorsCount() != other.getExecutorsCount()) return false; if (getMaxExecutorsCount() != other.getMaxExecutorsCount()) 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) + EXECUTORS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getExecutorsCount(); hash = (37 * hash) + MAX_EXECUTORS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxExecutorsCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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.InfrastructureSpec.BatchComputeResources 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; } /** * * *
       * Batch compute resources associated with the task.
       * 
* * Protobuf type {@code * google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_BatchComputeResources_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_InfrastructureSpec_BatchComputeResources_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.Builder .class); } // Construct using // com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; executorsCount_ = 0; maxExecutorsCount_ = 0; 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_InfrastructureSpec_BatchComputeResources_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources build() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources buildPartial() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources result = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.executorsCount_ = executorsCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxExecutorsCount_ = maxExecutorsCount_; } } @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.InfrastructureSpec.BatchComputeResources) { return mergeFrom( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources other) { if (other == com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance()) return this; if (other.getExecutorsCount() != 0) { setExecutorsCount(other.getExecutorsCount()); } if (other.getMaxExecutorsCount() != 0) { setMaxExecutorsCount(other.getMaxExecutorsCount()); } 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 8: { executorsCount_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxExecutorsCount_ = input.readInt32(); bitField0_ |= 0x00000002; 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) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int executorsCount_; /** * * *
         * Optional. Total number of job executors.
         * Executor Count should be between 2 and 100. [Default=2]
         * 
* * int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The executorsCount. */ @java.lang.Override public int getExecutorsCount() { return executorsCount_; } /** * * *
         * Optional. Total number of job executors.
         * Executor Count should be between 2 and 100. [Default=2]
         * 
* * int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The executorsCount to set. * @return This builder for chaining. */ public Builder setExecutorsCount(int value) { executorsCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Optional. Total number of job executors.
         * Executor Count should be between 2 and 100. [Default=2]
         * 
* * int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearExecutorsCount() { bitField0_ = (bitField0_ & ~0x00000001); executorsCount_ = 0; onChanged(); return this; } private int maxExecutorsCount_; /** * * *
         * Optional. Max configurable executors.
         * If max_executors_count > executors_count, then auto-scaling is enabled.
         * Max Executor Count should be between 2 and 1000. [Default=1000]
         * 
* * int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxExecutorsCount. */ @java.lang.Override public int getMaxExecutorsCount() { return maxExecutorsCount_; } /** * * *
         * Optional. Max configurable executors.
         * If max_executors_count > executors_count, then auto-scaling is enabled.
         * Max Executor Count should be between 2 and 1000. [Default=1000]
         * 
* * int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxExecutorsCount to set. * @return This builder for chaining. */ public Builder setMaxExecutorsCount(int value) { maxExecutorsCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Optional. Max configurable executors.
         * If max_executors_count > executors_count, then auto-scaling is enabled.
         * Max Executor Count should be between 2 and 1000. [Default=1000]
         * 
* * int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearMaxExecutorsCount() { bitField0_ = (bitField0_ & ~0x00000002); maxExecutorsCount_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) private static final com.google.cloud.dataplex.v1.Task.InfrastructureSpec .BatchComputeResources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources(); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BatchComputeResources 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.InfrastructureSpec.BatchComputeResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerImageRuntimeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) com.google.protobuf.MessageOrBuilder { /** * * *
       * Optional. Container image to use.
       * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The image. */ java.lang.String getImage(); /** * * *
       * Optional. Container image to use.
       * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for image. */ com.google.protobuf.ByteString getImageBytes(); /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the javaJars. */ java.util.List getJavaJarsList(); /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of javaJars. */ int getJavaJarsCount(); /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The javaJars at the given index. */ java.lang.String getJavaJars(int index); /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the javaJars at the given index. */ com.google.protobuf.ByteString getJavaJarsBytes(int index); /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the pythonPackages. */ java.util.List getPythonPackagesList(); /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of pythonPackages. */ int getPythonPackagesCount(); /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The pythonPackages at the given index. */ java.lang.String getPythonPackages(int index); /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the pythonPackages at the given index. */ com.google.protobuf.ByteString getPythonPackagesBytes(int index); /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ int getPropertiesCount(); /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ boolean containsProperties(java.lang.String key); /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getProperties(); /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.Map getPropertiesMap(); /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ /* nullable */ java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.lang.String getPropertiesOrThrow(java.lang.String key); } /** * * *
     * Container Image Runtime Configuration used with Batch execution.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime} */ public static final class ContainerImageRuntime extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) ContainerImageRuntimeOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerImageRuntime.newBuilder() to construct. private ContainerImageRuntime(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerImageRuntime() { image_ = ""; javaJars_ = com.google.protobuf.LazyStringArrayList.emptyList(); pythonPackages_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ContainerImageRuntime(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_ContainerImageRuntime_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_ContainerImageRuntime_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.Builder .class); } public static final int IMAGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** * * *
       * Optional. Container image to use.
       * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The image. */ @java.lang.Override public java.lang.String getImage() { java.lang.Object ref = image_; 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(); image_ = s; return s; } } /** * * *
       * Optional. Container image to use.
       * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for image. */ @java.lang.Override public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JAVA_JARS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList javaJars_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the javaJars. */ public com.google.protobuf.ProtocolStringList getJavaJarsList() { return javaJars_; } /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of javaJars. */ public int getJavaJarsCount() { return javaJars_.size(); } /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The javaJars at the given index. */ public java.lang.String getJavaJars(int index) { return javaJars_.get(index); } /** * * *
       * Optional. A list of Java JARS to add to the classpath.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the javaJars at the given index. */ public com.google.protobuf.ByteString getJavaJarsBytes(int index) { return javaJars_.getByteString(index); } public static final int PYTHON_PACKAGES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList pythonPackages_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the pythonPackages. */ public com.google.protobuf.ProtocolStringList getPythonPackagesList() { return pythonPackages_; } /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of pythonPackages. */ public int getPythonPackagesCount() { return pythonPackages_.size(); } /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The pythonPackages at the given index. */ public java.lang.String getPythonPackages(int index) { return pythonPackages_.get(index); } /** * * *
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the pythonPackages at the given index. */ public com.google.protobuf.ByteString getPythonPackagesBytes(int index) { return pythonPackages_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 4; private static final class PropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_ContainerImageRuntime_PropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField properties_; private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public boolean containsProperties(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public /* nullable */ java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Optional. Override to common configuration of open source components
       * installed on the Dataproc cluster. The properties to set on daemon
       * config files. Property keys are specified in `prefix:property` format,
       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
       * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
       * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.lang.String getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } for (int i = 0; i < javaJars_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, javaJars_.getRaw(i)); } for (int i = 0; i < pythonPackages_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonPackages_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); } { int dataSize = 0; for (int i = 0; i < javaJars_.size(); i++) { dataSize += computeStringSizeNoTag(javaJars_.getRaw(i)); } size += dataSize; size += 1 * getJavaJarsList().size(); } { int dataSize = 0; for (int i = 0; i < pythonPackages_.size(); i++) { dataSize += computeStringSizeNoTag(pythonPackages_.getRaw(i)); } size += dataSize; size += 1 * getPythonPackagesList().size(); } for (java.util.Map.Entry entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry properties__ = PropertiesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, properties__); } 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.InfrastructureSpec.ContainerImageRuntime)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime other = (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) obj; if (!getImage().equals(other.getImage())) return false; if (!getJavaJarsList().equals(other.getJavaJarsList())) return false; if (!getPythonPackagesList().equals(other.getPythonPackagesList())) return false; if (!internalGetProperties().equals(other.internalGetProperties())) 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) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); if (getJavaJarsCount() > 0) { hash = (37 * hash) + JAVA_JARS_FIELD_NUMBER; hash = (53 * hash) + getJavaJarsList().hashCode(); } if (getPythonPackagesCount() > 0) { hash = (37 * hash) + PYTHON_PACKAGES_FIELD_NUMBER; hash = (53 * hash) + getPythonPackagesList().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime 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; } /** * * *
       * Container Image Runtime Configuration used with Batch execution.
       * 
* * Protobuf type {@code * google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_ContainerImageRuntime_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { switch (number) { case 4: return internalGetMutableProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_ContainerImageRuntime_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.Builder .class); } // Construct using // com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; image_ = ""; javaJars_ = com.google.protobuf.LazyStringArrayList.emptyList(); pythonPackages_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableProperties().clear(); 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_InfrastructureSpec_ContainerImageRuntime_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime build() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime buildPartial() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime result = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; } if (((from_bitField0_ & 0x00000002) != 0)) { javaJars_.makeImmutable(); result.javaJars_ = javaJars_; } if (((from_bitField0_ & 0x00000004) != 0)) { pythonPackages_.makeImmutable(); result.pythonPackages_ = pythonPackages_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); } } @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.InfrastructureSpec.ContainerImageRuntime) { return mergeFrom( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime other) { if (other == com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; onChanged(); } if (!other.javaJars_.isEmpty()) { if (javaJars_.isEmpty()) { javaJars_ = other.javaJars_; bitField0_ |= 0x00000002; } else { ensureJavaJarsIsMutable(); javaJars_.addAll(other.javaJars_); } onChanged(); } if (!other.pythonPackages_.isEmpty()) { if (pythonPackages_.isEmpty()) { pythonPackages_ = other.pythonPackages_; bitField0_ |= 0x00000004; } else { ensurePythonPackagesIsMutable(); pythonPackages_.addAll(other.pythonPackages_); } onChanged(); } internalGetMutableProperties().mergeFrom(other.internalGetProperties()); bitField0_ |= 0x00000008; 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 10: { image_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureJavaJarsIsMutable(); javaJars_.add(s); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensurePythonPackagesIsMutable(); pythonPackages_.add(s); break; } // case 26 case 34: { com.google.protobuf.MapEntry properties__ = input.readMessage( PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableProperties() .getMutableMap() .put(properties__.getKey(), properties__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 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 image_ = ""; /** * * *
         * Optional. Container image to use.
         * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * Optional. Container image to use.
         * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for image. */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Optional. Container image to use.
         * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The image to set. * @return This builder for chaining. */ public Builder setImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Optional. Container image to use.
         * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearImage() { image_ = getDefaultInstance().getImage(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
         * Optional. Container image to use.
         * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for image to set. * @return This builder for chaining. */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList javaJars_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureJavaJarsIsMutable() { if (!javaJars_.isModifiable()) { javaJars_ = new com.google.protobuf.LazyStringArrayList(javaJars_); } bitField0_ |= 0x00000002; } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the javaJars. */ public com.google.protobuf.ProtocolStringList getJavaJarsList() { javaJars_.makeImmutable(); return javaJars_; } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of javaJars. */ public int getJavaJarsCount() { return javaJars_.size(); } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The javaJars at the given index. */ public java.lang.String getJavaJars(int index) { return javaJars_.get(index); } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the javaJars at the given index. */ public com.google.protobuf.ByteString getJavaJarsBytes(int index) { return javaJars_.getByteString(index); } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The javaJars to set. * @return This builder for chaining. */ public Builder setJavaJars(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureJavaJarsIsMutable(); javaJars_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The javaJars to add. * @return This builder for chaining. */ public Builder addJavaJars(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureJavaJarsIsMutable(); javaJars_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The javaJars to add. * @return This builder for chaining. */ public Builder addAllJavaJars(java.lang.Iterable values) { ensureJavaJarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, javaJars_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearJavaJars() { javaJars_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); ; onChanged(); return this; } /** * * *
         * Optional. A list of Java JARS to add to the classpath.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * 
* * repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the javaJars to add. * @return This builder for chaining. */ public Builder addJavaJarsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureJavaJarsIsMutable(); javaJars_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList pythonPackages_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePythonPackagesIsMutable() { if (!pythonPackages_.isModifiable()) { pythonPackages_ = new com.google.protobuf.LazyStringArrayList(pythonPackages_); } bitField0_ |= 0x00000004; } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the pythonPackages. */ public com.google.protobuf.ProtocolStringList getPythonPackagesList() { pythonPackages_.makeImmutable(); return pythonPackages_; } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of pythonPackages. */ public int getPythonPackagesCount() { return pythonPackages_.size(); } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The pythonPackages at the given index. */ public java.lang.String getPythonPackages(int index) { return pythonPackages_.get(index); } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The bytes of the pythonPackages at the given index. */ public com.google.protobuf.ByteString getPythonPackagesBytes(int index) { return pythonPackages_.getByteString(index); } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The pythonPackages to set. * @return This builder for chaining. */ public Builder setPythonPackages(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePythonPackagesIsMutable(); pythonPackages_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The pythonPackages to add. * @return This builder for chaining. */ public Builder addPythonPackages(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePythonPackagesIsMutable(); pythonPackages_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The pythonPackages to add. * @return This builder for chaining. */ public Builder addAllPythonPackages(java.lang.Iterable values) { ensurePythonPackagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonPackages_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearPythonPackages() { pythonPackages_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * 
* * repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes of the pythonPackages to add. * @return This builder for chaining. */ public Builder addPythonPackagesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePythonPackagesIsMutable(); pythonPackages_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.MapField properties_; private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } private com.google.protobuf.MapField internalGetMutableProperties() { if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } bitField0_ |= 0x00000008; onChanged(); return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public boolean containsProperties(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public /* nullable */ java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.lang.String getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearProperties() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableProperties().getMutableMap().clear(); return this; } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeProperties(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableProperties().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableProperties() { bitField0_ |= 0x00000008; return internalGetMutableProperties().getMutableMap(); } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putProperties(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableProperties().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** * * *
         * Optional. Override to common configuration of open source components
         * installed on the Dataproc cluster. The properties to set on daemon
         * config files. Property keys are specified in `prefix:property` format,
         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
         * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putAllProperties(java.util.Map values) { internalGetMutableProperties().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) private static final com.google.cloud.dataplex.v1.Task.InfrastructureSpec .ContainerImageRuntime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime(); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerImageRuntime 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.InfrastructureSpec.ContainerImageRuntime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VpcNetworkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) com.google.protobuf.MessageOrBuilder { /** * * *
       * Optional. The Cloud VPC network in which the job is run. By default,
       * the Cloud VPC network named Default within the project is used.
       * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the network field is set. */ boolean hasNetwork(); /** * * *
       * Optional. The Cloud VPC network in which the job is run. By default,
       * the Cloud VPC network named Default within the project is used.
       * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ java.lang.String getNetwork(); /** * * *
       * Optional. The Cloud VPC network in which the job is run. By default,
       * the Cloud VPC network named Default within the project is used.
       * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); /** * * *
       * Optional. The Cloud VPC sub-network in which the job is run.
       * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the subNetwork field is set. */ boolean hasSubNetwork(); /** * * *
       * Optional. The Cloud VPC sub-network in which the job is run.
       * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subNetwork. */ java.lang.String getSubNetwork(); /** * * *
       * Optional. The Cloud VPC sub-network in which the job is run.
       * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subNetwork. */ com.google.protobuf.ByteString getSubNetworkBytes(); /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the networkTags. */ java.util.List getNetworkTagsList(); /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of networkTags. */ int getNetworkTagsCount(); /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ com.google.protobuf.ByteString getNetworkTagsBytes(int index); com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.NetworkNameCase getNetworkNameCase(); } /** * * *
     * Cloud VPC Network used to run the infrastructure.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork} */ public static final class VpcNetwork extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) VpcNetworkOrBuilder { private static final long serialVersionUID = 0L; // Use VpcNetwork.newBuilder() to construct. private VpcNetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VpcNetwork() { networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VpcNetwork(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_VpcNetwork_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_InfrastructureSpec_VpcNetwork_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder.class); } private int networkNameCase_ = 0; @SuppressWarnings("serial") private java.lang.Object networkName_; public enum NetworkNameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NETWORK(1), SUB_NETWORK(2), NETWORKNAME_NOT_SET(0); private final int value; private NetworkNameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NetworkNameCase valueOf(int value) { return forNumber(value); } public static NetworkNameCase forNumber(int value) { switch (value) { case 1: return NETWORK; case 2: return SUB_NETWORK; case 0: return NETWORKNAME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NetworkNameCase getNetworkNameCase() { return NetworkNameCase.forNumber(networkNameCase_); } public static final int NETWORK_FIELD_NUMBER = 1; /** * * *
       * Optional. The Cloud VPC network in which the job is run. By default,
       * the Cloud VPC network named Default within the project is used.
       * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkNameCase_ == 1; } /** * * *
       * Optional. The Cloud VPC network in which the job is run. By default,
       * the Cloud VPC network named Default within the project is used.
       * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = ""; if (networkNameCase_ == 1) { ref = networkName_; } 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(); if (networkNameCase_ == 1) { networkName_ = s; } return s; } } /** * * *
       * Optional. The Cloud VPC network in which the job is run. By default,
       * the Cloud VPC network named Default within the project is used.
       * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = ""; if (networkNameCase_ == 1) { ref = networkName_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (networkNameCase_ == 1) { networkName_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUB_NETWORK_FIELD_NUMBER = 2; /** * * *
       * Optional. The Cloud VPC sub-network in which the job is run.
       * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the subNetwork field is set. */ public boolean hasSubNetwork() { return networkNameCase_ == 2; } /** * * *
       * Optional. The Cloud VPC sub-network in which the job is run.
       * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subNetwork. */ public java.lang.String getSubNetwork() { java.lang.Object ref = ""; if (networkNameCase_ == 2) { ref = networkName_; } 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(); if (networkNameCase_ == 2) { networkName_ = s; } return s; } } /** * * *
       * Optional. The Cloud VPC sub-network in which the job is run.
       * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subNetwork. */ public com.google.protobuf.ByteString getSubNetworkBytes() { java.lang.Object ref = ""; if (networkNameCase_ == 2) { ref = networkName_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (networkNameCase_ == 2) { networkName_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NETWORK_TAGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the networkTags. */ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_; } /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The networkTags at the given index. */ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** * * *
       * Optional. List of network tags to apply to the job.
       * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.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 (networkNameCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkName_); } if (networkNameCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkName_); } for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkTags_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (networkNameCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkName_); } if (networkNameCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkName_); } { int dataSize = 0; for (int i = 0; i < networkTags_.size(); i++) { dataSize += computeStringSizeNoTag(networkTags_.getRaw(i)); } size += dataSize; size += 1 * getNetworkTagsList().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.InfrastructureSpec.VpcNetwork)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork other = (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) obj; if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getNetworkNameCase().equals(other.getNetworkNameCase())) return false; switch (networkNameCase_) { case 1: if (!getNetwork().equals(other.getNetwork())) return false; break; case 2: if (!getSubNetwork().equals(other.getSubNetwork())) return false; break; case 0: default: } 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(); if (getNetworkTagsCount() > 0) { hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; hash = (53 * hash) + getNetworkTagsList().hashCode(); } switch (networkNameCase_) { case 1: hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); break; case 2: hash = (37 * hash) + SUB_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getSubNetwork().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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.InfrastructureSpec.VpcNetwork 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; } /** * * *
       * Cloud VPC Network used to run the infrastructure.
       * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_VpcNetwork_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_InfrastructureSpec_VpcNetwork_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder.class); } // Construct using // com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); networkNameCase_ = 0; networkName_ = null; 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_InfrastructureSpec_VpcNetwork_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork build() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork buildPartial() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork result = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { networkTags_.makeImmutable(); result.networkTags_ = networkTags_; } } private void buildPartialOneofs( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork result) { result.networkNameCase_ = networkNameCase_; result.networkName_ = this.networkName_; } @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.InfrastructureSpec.VpcNetwork) { return mergeFrom( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork other) { if (other == com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance()) return this; if (!other.networkTags_.isEmpty()) { if (networkTags_.isEmpty()) { networkTags_ = other.networkTags_; bitField0_ |= 0x00000004; } else { ensureNetworkTagsIsMutable(); networkTags_.addAll(other.networkTags_); } onChanged(); } switch (other.getNetworkNameCase()) { case NETWORK: { networkNameCase_ = 1; networkName_ = other.networkName_; onChanged(); break; } case SUB_NETWORK: { networkNameCase_ = 2; networkName_ = other.networkName_; onChanged(); break; } case NETWORKNAME_NOT_SET: { break; } } 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 10: { java.lang.String s = input.readStringRequireUtf8(); networkNameCase_ = 1; networkName_ = s; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); networkNameCase_ = 2; networkName_ = s; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureNetworkTagsIsMutable(); networkTags_.add(s); break; } // case 26 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 networkNameCase_ = 0; private java.lang.Object networkName_; public NetworkNameCase getNetworkNameCase() { return NetworkNameCase.forNumber(networkNameCase_); } public Builder clearNetworkName() { networkNameCase_ = 0; networkName_ = null; onChanged(); return this; } private int bitField0_; /** * * *
         * Optional. The Cloud VPC network in which the job is run. By default,
         * the Cloud VPC network named Default within the project is used.
         * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the network field is set. */ @java.lang.Override public boolean hasNetwork() { return networkNameCase_ == 1; } /** * * *
         * Optional. The Cloud VPC network in which the job is run. By default,
         * the Cloud VPC network named Default within the project is used.
         * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @java.lang.Override public java.lang.String getNetwork() { java.lang.Object ref = ""; if (networkNameCase_ == 1) { ref = networkName_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (networkNameCase_ == 1) { networkName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
         * Optional. The Cloud VPC network in which the job is run. By default,
         * the Cloud VPC network named Default within the project is used.
         * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = ""; if (networkNameCase_ == 1) { ref = networkName_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (networkNameCase_ == 1) { networkName_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Optional. The Cloud VPC network in which the job is run. By default,
         * the Cloud VPC network named Default within the project is used.
         * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The network to set. * @return This builder for chaining. */ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkNameCase_ = 1; networkName_ = value; onChanged(); return this; } /** * * *
         * Optional. The Cloud VPC network in which the job is run. By default,
         * the Cloud VPC network named Default within the project is used.
         * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearNetwork() { if (networkNameCase_ == 1) { networkNameCase_ = 0; networkName_ = null; onChanged(); } return this; } /** * * *
         * Optional. The Cloud VPC network in which the job is run. By default,
         * the Cloud VPC network named Default within the project is used.
         * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for network to set. * @return This builder for chaining. */ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkNameCase_ = 1; networkName_ = value; onChanged(); return this; } /** * * *
         * Optional. The Cloud VPC sub-network in which the job is run.
         * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the subNetwork field is set. */ @java.lang.Override public boolean hasSubNetwork() { return networkNameCase_ == 2; } /** * * *
         * Optional. The Cloud VPC sub-network in which the job is run.
         * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subNetwork. */ @java.lang.Override public java.lang.String getSubNetwork() { java.lang.Object ref = ""; if (networkNameCase_ == 2) { ref = networkName_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (networkNameCase_ == 2) { networkName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
         * Optional. The Cloud VPC sub-network in which the job is run.
         * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subNetwork. */ @java.lang.Override public com.google.protobuf.ByteString getSubNetworkBytes() { java.lang.Object ref = ""; if (networkNameCase_ == 2) { ref = networkName_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (networkNameCase_ == 2) { networkName_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Optional. The Cloud VPC sub-network in which the job is run.
         * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The subNetwork to set. * @return This builder for chaining. */ public Builder setSubNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkNameCase_ = 2; networkName_ = value; onChanged(); return this; } /** * * *
         * Optional. The Cloud VPC sub-network in which the job is run.
         * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearSubNetwork() { if (networkNameCase_ == 2) { networkNameCase_ = 0; networkName_ = null; onChanged(); } return this; } /** * * *
         * Optional. The Cloud VPC sub-network in which the job is run.
         * 
* * string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for subNetwork to set. * @return This builder for chaining. */ public Builder setSubNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkNameCase_ = 2; networkName_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureNetworkTagsIsMutable() { if (!networkTags_.isModifiable()) { networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); } bitField0_ |= 0x00000004; } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the networkTags. */ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { networkTags_.makeImmutable(); return networkTags_; } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The networkTags at the given index. */ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ public Builder setNetworkTags(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNetworkTagsIsMutable(); networkTags_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The networkTags to add. * @return This builder for chaining. */ public Builder addNetworkTags(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNetworkTagsIsMutable(); networkTags_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The networkTags to add. * @return This builder for chaining. */ public Builder addAllNetworkTags(java.lang.Iterable values) { ensureNetworkTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearNetworkTags() { networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
         * Optional. List of network tags to apply to the job.
         * 
* * repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the networkTags to add. * @return This builder for chaining. */ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNetworkTagsIsMutable(); networkTags_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) private static final com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork(); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VpcNetwork 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.InfrastructureSpec.VpcNetwork getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int resourcesCase_ = 0; @SuppressWarnings("serial") private java.lang.Object resources_; public enum ResourcesCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH(52), RESOURCES_NOT_SET(0); private final int value; private ResourcesCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResourcesCase valueOf(int value) { return forNumber(value); } public static ResourcesCase forNumber(int value) { switch (value) { case 52: return BATCH; case 0: return RESOURCES_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResourcesCase getResourcesCase() { return ResourcesCase.forNumber(resourcesCase_); } private int runtimeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object runtime_; public enum RuntimeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTAINER_IMAGE(101), RUNTIME_NOT_SET(0); private final int value; private RuntimeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RuntimeCase valueOf(int value) { return forNumber(value); } public static RuntimeCase forNumber(int value) { switch (value) { case 101: return CONTAINER_IMAGE; case 0: return RUNTIME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RuntimeCase getRuntimeCase() { return RuntimeCase.forNumber(runtimeCase_); } private int networkCase_ = 0; @SuppressWarnings("serial") private java.lang.Object network_; public enum NetworkCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VPC_NETWORK(150), NETWORK_NOT_SET(0); private final int value; private NetworkCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NetworkCase valueOf(int value) { return forNumber(value); } public static NetworkCase forNumber(int value) { switch (value) { case 150: return VPC_NETWORK; case 0: return NETWORK_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NetworkCase getNetworkCase() { return NetworkCase.forNumber(networkCase_); } public static final int BATCH_FIELD_NUMBER = 52; /** * * *
     * Compute resources needed for a Task when using Dataproc Serverless.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * * * @return Whether the batch field is set. */ @java.lang.Override public boolean hasBatch() { return resourcesCase_ == 52; } /** * * *
     * Compute resources needed for a Task when using Dataproc Serverless.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * * * @return The batch. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources getBatch() { if (resourcesCase_ == 52) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } /** * * *
     * Compute resources needed for a Task when using Dataproc Serverless.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder getBatchOrBuilder() { if (resourcesCase_ == 52) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } public static final int CONTAINER_IMAGE_FIELD_NUMBER = 101; /** * * *
     * Container Image Runtime Configuration.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * * * @return Whether the containerImage field is set. */ @java.lang.Override public boolean hasContainerImage() { return runtimeCase_ == 101; } /** * * *
     * Container Image Runtime Configuration.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * * * @return The containerImage. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime getContainerImage() { if (runtimeCase_ == 101) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } /** * * *
     * Container Image Runtime Configuration.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeOrBuilder getContainerImageOrBuilder() { if (runtimeCase_ == 101) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } public static final int VPC_NETWORK_FIELD_NUMBER = 150; /** * * *
     * Vpc network.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * * @return Whether the vpcNetwork field is set. */ @java.lang.Override public boolean hasVpcNetwork() { return networkCase_ == 150; } /** * * *
     * Vpc network.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * * @return The vpcNetwork. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork getVpcNetwork() { if (networkCase_ == 150) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.getDefaultInstance(); } /** * * *
     * Vpc network.
     * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder getVpcNetworkOrBuilder() { if (networkCase_ == 150) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resourcesCase_ == 52) { output.writeMessage( 52, (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_); } if (runtimeCase_ == 101) { output.writeMessage( 101, (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_); } if (networkCase_ == 150) { output.writeMessage( 150, (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resourcesCase_ == 52) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 52, (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_); } if (runtimeCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_); } if (networkCase_ == 150) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 150, (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_); } 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.InfrastructureSpec)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.InfrastructureSpec other = (com.google.cloud.dataplex.v1.Task.InfrastructureSpec) obj; if (!getResourcesCase().equals(other.getResourcesCase())) return false; switch (resourcesCase_) { case 52: if (!getBatch().equals(other.getBatch())) return false; break; case 0: default: } if (!getRuntimeCase().equals(other.getRuntimeCase())) return false; switch (runtimeCase_) { case 101: if (!getContainerImage().equals(other.getContainerImage())) return false; break; case 0: default: } if (!getNetworkCase().equals(other.getNetworkCase())) return false; switch (networkCase_) { case 150: if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; break; case 0: default: } 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(); switch (resourcesCase_) { case 52: hash = (37 * hash) + BATCH_FIELD_NUMBER; hash = (53 * hash) + getBatch().hashCode(); break; case 0: default: } switch (runtimeCase_) { case 101: hash = (37 * hash) + CONTAINER_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getContainerImage().hashCode(); break; case 0: default: } switch (networkCase_) { case 150: hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec 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.InfrastructureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec 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.InfrastructureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec 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.InfrastructureSpec 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.InfrastructureSpec 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.InfrastructureSpec 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.InfrastructureSpec 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.InfrastructureSpec 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.InfrastructureSpec 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.InfrastructureSpec 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; } /** * * *
     * Configuration for the underlying infrastructure used to run workloads.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.InfrastructureSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.InfrastructureSpec) com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_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_InfrastructureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.class, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Task.InfrastructureSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (batchBuilder_ != null) { batchBuilder_.clear(); } if (containerImageBuilder_ != null) { containerImageBuilder_.clear(); } if (vpcNetworkBuilder_ != null) { vpcNetworkBuilder_.clear(); } resourcesCase_ = 0; resources_ = null; runtimeCase_ = 0; runtime_ = null; networkCase_ = 0; network_ = null; 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_InfrastructureSpec_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec build() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec buildPartial() { com.google.cloud.dataplex.v1.Task.InfrastructureSpec result = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task.InfrastructureSpec result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.google.cloud.dataplex.v1.Task.InfrastructureSpec result) { result.resourcesCase_ = resourcesCase_; result.resources_ = this.resources_; if (resourcesCase_ == 52 && batchBuilder_ != null) { result.resources_ = batchBuilder_.build(); } result.runtimeCase_ = runtimeCase_; result.runtime_ = this.runtime_; if (runtimeCase_ == 101 && containerImageBuilder_ != null) { result.runtime_ = containerImageBuilder_.build(); } result.networkCase_ = networkCase_; result.network_ = this.network_; if (networkCase_ == 150 && vpcNetworkBuilder_ != null) { result.network_ = vpcNetworkBuilder_.build(); } } @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.InfrastructureSpec) { return mergeFrom((com.google.cloud.dataplex.v1.Task.InfrastructureSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.InfrastructureSpec other) { if (other == com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance()) return this; switch (other.getResourcesCase()) { case BATCH: { mergeBatch(other.getBatch()); break; } case RESOURCES_NOT_SET: { break; } } switch (other.getRuntimeCase()) { case CONTAINER_IMAGE: { mergeContainerImage(other.getContainerImage()); break; } case RUNTIME_NOT_SET: { break; } } switch (other.getNetworkCase()) { case VPC_NETWORK: { mergeVpcNetwork(other.getVpcNetwork()); break; } case NETWORK_NOT_SET: { break; } } 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 418: { input.readMessage(getBatchFieldBuilder().getBuilder(), extensionRegistry); resourcesCase_ = 52; break; } // case 418 case 810: { input.readMessage( getContainerImageFieldBuilder().getBuilder(), extensionRegistry); runtimeCase_ = 101; break; } // case 810 case 1202: { input.readMessage(getVpcNetworkFieldBuilder().getBuilder(), extensionRegistry); networkCase_ = 150; break; } // case 1202 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 resourcesCase_ = 0; private java.lang.Object resources_; public ResourcesCase getResourcesCase() { return ResourcesCase.forNumber(resourcesCase_); } public Builder clearResources() { resourcesCase_ = 0; resources_ = null; onChanged(); return this; } private int runtimeCase_ = 0; private java.lang.Object runtime_; public RuntimeCase getRuntimeCase() { return RuntimeCase.forNumber(runtimeCase_); } public Builder clearRuntime() { runtimeCase_ = 0; runtime_ = null; onChanged(); return this; } private int networkCase_ = 0; private java.lang.Object network_; public NetworkCase getNetworkCase() { return NetworkCase.forNumber(networkCase_); } public Builder clearNetwork() { networkCase_ = 0; network_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder> batchBuilder_; /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * * * @return Whether the batch field is set. */ @java.lang.Override public boolean hasBatch() { return resourcesCase_ == 52; } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * * * @return The batch. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources getBatch() { if (batchBuilder_ == null) { if (resourcesCase_ == 52) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } else { if (resourcesCase_ == 52) { return batchBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ public Builder setBatch( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources value) { if (batchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { batchBuilder_.setMessage(value); } resourcesCase_ = 52; return this; } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ public Builder setBatch( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.Builder builderForValue) { if (batchBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { batchBuilder_.setMessage(builderForValue.build()); } resourcesCase_ = 52; return this; } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ public Builder mergeBatch( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources value) { if (batchBuilder_ == null) { if (resourcesCase_ == 52 && resources_ != com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance()) { resources_ = com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .newBuilder( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_) .mergeFrom(value) .buildPartial(); } else { resources_ = value; } onChanged(); } else { if (resourcesCase_ == 52) { batchBuilder_.mergeFrom(value); } else { batchBuilder_.setMessage(value); } } resourcesCase_ = 52; return this; } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ public Builder clearBatch() { if (batchBuilder_ == null) { if (resourcesCase_ == 52) { resourcesCase_ = 0; resources_ = null; onChanged(); } } else { if (resourcesCase_ == 52) { resourcesCase_ = 0; resources_ = null; } batchBuilder_.clear(); } return this; } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.Builder getBatchBuilder() { return getBatchFieldBuilder().getBuilder(); } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder getBatchOrBuilder() { if ((resourcesCase_ == 52) && (batchBuilder_ != null)) { return batchBuilder_.getMessageOrBuilder(); } else { if (resourcesCase_ == 52) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } } /** * * *
       * Compute resources needed for a Task when using Dataproc Serverless.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder> getBatchFieldBuilder() { if (batchBuilder_ == null) { if (!(resourcesCase_ == 52)) { resources_ = com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .getDefaultInstance(); } batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources .Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec .BatchComputeResourcesOrBuilder>( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources) resources_, getParentForChildren(), isClean()); resources_ = null; } resourcesCase_ = 52; onChanged(); return batchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeOrBuilder> containerImageBuilder_; /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * * * @return Whether the containerImage field is set. */ @java.lang.Override public boolean hasContainerImage() { return runtimeCase_ == 101; } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * * * @return The containerImage. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime getContainerImage() { if (containerImageBuilder_ == null) { if (runtimeCase_ == 101) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } else { if (runtimeCase_ == 101) { return containerImageBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ public Builder setContainerImage( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime value) { if (containerImageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } runtime_ = value; onChanged(); } else { containerImageBuilder_.setMessage(value); } runtimeCase_ = 101; return this; } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ public Builder setContainerImage( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.Builder builderForValue) { if (containerImageBuilder_ == null) { runtime_ = builderForValue.build(); onChanged(); } else { containerImageBuilder_.setMessage(builderForValue.build()); } runtimeCase_ = 101; return this; } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ public Builder mergeContainerImage( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime value) { if (containerImageBuilder_ == null) { if (runtimeCase_ == 101 && runtime_ != com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance()) { runtime_ = com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .newBuilder( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_) .mergeFrom(value) .buildPartial(); } else { runtime_ = value; } onChanged(); } else { if (runtimeCase_ == 101) { containerImageBuilder_.mergeFrom(value); } else { containerImageBuilder_.setMessage(value); } } runtimeCase_ = 101; return this; } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ public Builder clearContainerImage() { if (containerImageBuilder_ == null) { if (runtimeCase_ == 101) { runtimeCase_ = 0; runtime_ = null; onChanged(); } } else { if (runtimeCase_ == 101) { runtimeCase_ = 0; runtime_ = null; } containerImageBuilder_.clear(); } return this; } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.Builder getContainerImageBuilder() { return getContainerImageFieldBuilder().getBuilder(); } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeOrBuilder getContainerImageOrBuilder() { if ((runtimeCase_ == 101) && (containerImageBuilder_ != null)) { return containerImageBuilder_.getMessageOrBuilder(); } else { if (runtimeCase_ == 101) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } } /** * * *
       * Container Image Runtime Configuration.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeOrBuilder> getContainerImageFieldBuilder() { if (containerImageBuilder_ == null) { if (!(runtimeCase_ == 101)) { runtime_ = com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .getDefaultInstance(); } containerImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime .Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec .ContainerImageRuntimeOrBuilder>( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime) runtime_, getParentForChildren(), isClean()); runtime_ = null; } runtimeCase_ = 101; onChanged(); return containerImageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder> vpcNetworkBuilder_; /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * * * @return Whether the vpcNetwork field is set. */ @java.lang.Override public boolean hasVpcNetwork() { return networkCase_ == 150; } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * * * @return The vpcNetwork. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork getVpcNetwork() { if (vpcNetworkBuilder_ == null) { if (networkCase_ == 150) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance(); } else { if (networkCase_ == 150) { return vpcNetworkBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance(); } } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ public Builder setVpcNetwork( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork value) { if (vpcNetworkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } network_ = value; onChanged(); } else { vpcNetworkBuilder_.setMessage(value); } networkCase_ = 150; return this; } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ public Builder setVpcNetwork( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder builderForValue) { if (vpcNetworkBuilder_ == null) { network_ = builderForValue.build(); onChanged(); } else { vpcNetworkBuilder_.setMessage(builderForValue.build()); } networkCase_ = 150; return this; } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ public Builder mergeVpcNetwork( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork value) { if (vpcNetworkBuilder_ == null) { if (networkCase_ == 150 && network_ != com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance()) { network_ = com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.newBuilder( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_) .mergeFrom(value) .buildPartial(); } else { network_ = value; } onChanged(); } else { if (networkCase_ == 150) { vpcNetworkBuilder_.mergeFrom(value); } else { vpcNetworkBuilder_.setMessage(value); } } networkCase_ = 150; return this; } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ public Builder clearVpcNetwork() { if (vpcNetworkBuilder_ == null) { if (networkCase_ == 150) { networkCase_ = 0; network_ = null; onChanged(); } } else { if (networkCase_ == 150) { networkCase_ = 0; network_ = null; } vpcNetworkBuilder_.clear(); } return this; } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder getVpcNetworkBuilder() { return getVpcNetworkFieldBuilder().getBuilder(); } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder getVpcNetworkOrBuilder() { if ((networkCase_ == 150) && (vpcNetworkBuilder_ != null)) { return vpcNetworkBuilder_.getMessageOrBuilder(); } else { if (networkCase_ == 150) { return (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_; } return com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance(); } } /** * * *
       * Vpc network.
       * 
* * .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder> getVpcNetworkFieldBuilder() { if (vpcNetworkBuilder_ == null) { if (!(networkCase_ == 150)) { network_ = com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork .getDefaultInstance(); } vpcNetworkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder, com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkOrBuilder>( (com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork) network_, getParentForChildren(), isClean()); network_ = null; } networkCase_ = 150; onChanged(); return vpcNetworkBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.InfrastructureSpec) private static final com.google.cloud.dataplex.v1.Task.InfrastructureSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.InfrastructureSpec(); } public static com.google.cloud.dataplex.v1.Task.InfrastructureSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InfrastructureSpec 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.InfrastructureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TriggerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.TriggerSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. Immutable. Trigger type of the user-specified Task.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * * *
     * Required. Immutable. Trigger type of the user-specified Task.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. */ com.google.cloud.dataplex.v1.Task.TriggerSpec.Type getType(); /** * * *
     * Optional. The first run of the task will be after this time.
     * If not specified, the task will run shortly after being submitted if
     * ON_DEMAND and based on the schedule if RECURRING.
     * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** * * *
     * Optional. The first run of the task will be after this time.
     * If not specified, the task will run shortly after being submitted if
     * ON_DEMAND and based on the schedule if RECURRING.
     * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** * * *
     * Optional. The first run of the task will be after this time.
     * If not specified, the task will run shortly after being submitted if
     * ON_DEMAND and based on the schedule if RECURRING.
     * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** * * *
     * Optional. Prevent the task from executing.
     * This does not cancel already running tasks. It is intended to temporarily
     * disable RECURRING tasks.
     * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disabled. */ boolean getDisabled(); /** * * *
     * Optional. Number of retry attempts before aborting.
     * Set to zero to never attempt to retry a failed task.
     * 
* * int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxRetries. */ int getMaxRetries(); /** * * *
     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
     * running tasks periodically. To explicitly set a timezone to the cron
     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
     * string from IANA time zone database. For example,
     * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
     * *`. This field is required for RECURRING tasks.
     * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** * * *
     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
     * running tasks periodically. To explicitly set a timezone to the cron
     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
     * string from IANA time zone database. For example,
     * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
     * *`. This field is required for RECURRING tasks.
     * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The schedule. */ java.lang.String getSchedule(); /** * * *
     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
     * running tasks periodically. To explicitly set a timezone to the cron
     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
     * string from IANA time zone database. For example,
     * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
     * *`. This field is required for RECURRING tasks.
     * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for schedule. */ com.google.protobuf.ByteString getScheduleBytes(); com.google.cloud.dataplex.v1.Task.TriggerSpec.TriggerCase getTriggerCase(); } /** * * *
   * Task scheduling and trigger settings.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.TriggerSpec} */ public static final class TriggerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.TriggerSpec) TriggerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use TriggerSpec.newBuilder() to construct. private TriggerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TriggerSpec() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TriggerSpec(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_TriggerSpec_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_TriggerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.TriggerSpec.class, com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder.class); } /** * * *
     * Determines how often and when the job will run.
     * 
* * Protobuf enum {@code google.cloud.dataplex.v1.Task.TriggerSpec.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Unspecified trigger type.
       * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * * *
       * The task runs one-time shortly after Task Creation.
       * 
* * ON_DEMAND = 1; */ ON_DEMAND(1), /** * * *
       * The task is scheduled to run periodically.
       * 
* * RECURRING = 2; */ RECURRING(2), UNRECOGNIZED(-1), ; /** * * *
       * Unspecified trigger type.
       * 
* * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * * *
       * The task runs one-time shortly after Task Creation.
       * 
* * ON_DEMAND = 1; */ public static final int ON_DEMAND_VALUE = 1; /** * * *
       * The task is scheduled to run periodically.
       * 
* * RECURRING = 2; */ public static final int RECURRING_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return ON_DEMAND; case 2: return RECURRING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.Task.TriggerSpec.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Task.TriggerSpec.Type) } private int bitField0_; private int triggerCase_ = 0; @SuppressWarnings("serial") private java.lang.Object trigger_; public enum TriggerCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEDULE(100), TRIGGER_NOT_SET(0); private final int value; private TriggerCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TriggerCase valueOf(int value) { return forNumber(value); } public static TriggerCase forNumber(int value) { switch (value) { case 100: return SCHEDULE; case 0: return TRIGGER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TriggerCase getTriggerCase() { return TriggerCase.forNumber(triggerCase_); } public static final int TYPE_FIELD_NUMBER = 5; private int type_ = 0; /** * * *
     * Required. Immutable. Trigger type of the user-specified Task.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * Required. Immutable. Trigger type of the user-specified Task.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpec.Type getType() { com.google.cloud.dataplex.v1.Task.TriggerSpec.Type result = com.google.cloud.dataplex.v1.Task.TriggerSpec.Type.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.Task.TriggerSpec.Type.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp startTime_; /** * * *
     * Optional. The first run of the task will be after this time.
     * If not specified, the task will run shortly after being submitted if
     * ON_DEMAND and based on the schedule if RECURRING.
     * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Optional. The first run of the task will be after this time.
     * If not specified, the task will run shortly after being submitted if
     * ON_DEMAND and based on the schedule if RECURRING.
     * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
     * Optional. The first run of the task will be after this time.
     * If not specified, the task will run shortly after being submitted if
     * ON_DEMAND and based on the schedule if RECURRING.
     * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int DISABLED_FIELD_NUMBER = 4; private boolean disabled_ = false; /** * * *
     * Optional. Prevent the task from executing.
     * This does not cancel already running tasks. It is intended to temporarily
     * disable RECURRING tasks.
     * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } public static final int MAX_RETRIES_FIELD_NUMBER = 7; private int maxRetries_ = 0; /** * * *
     * Optional. Number of retry attempts before aborting.
     * Set to zero to never attempt to retry a failed task.
     * 
* * int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxRetries. */ @java.lang.Override public int getMaxRetries() { return maxRetries_; } public static final int SCHEDULE_FIELD_NUMBER = 100; /** * * *
     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
     * running tasks periodically. To explicitly set a timezone to the cron
     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
     * string from IANA time zone database. For example,
     * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
     * *`. This field is required for RECURRING tasks.
     * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return triggerCase_ == 100; } /** * * *
     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
     * running tasks periodically. To explicitly set a timezone to the cron
     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
     * string from IANA time zone database. For example,
     * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
     * *`. This field is required for RECURRING tasks.
     * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = ""; if (triggerCase_ == 100) { ref = trigger_; } 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(); if (triggerCase_ == 100) { trigger_ = s; } return s; } } /** * * *
     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
     * running tasks periodically. To explicitly set a timezone to the cron
     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
     * string from IANA time zone database. For example,
     * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
     * *`. This field is required for RECURRING tasks.
     * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for schedule. */ public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = ""; if (triggerCase_ == 100) { ref = trigger_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (triggerCase_ == 100) { trigger_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (disabled_ != false) { output.writeBool(4, disabled_); } if (type_ != com.google.cloud.dataplex.v1.Task.TriggerSpec.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, type_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getStartTime()); } if (maxRetries_ != 0) { output.writeInt32(7, maxRetries_); } if (triggerCase_ == 100) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, trigger_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); } if (type_ != com.google.cloud.dataplex.v1.Task.TriggerSpec.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime()); } if (maxRetries_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, maxRetries_); } if (triggerCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, trigger_); } 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.TriggerSpec)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.TriggerSpec other = (com.google.cloud.dataplex.v1.Task.TriggerSpec) obj; if (type_ != other.type_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (getDisabled() != other.getDisabled()) return false; if (getMaxRetries() != other.getMaxRetries()) return false; if (!getTriggerCase().equals(other.getTriggerCase())) return false; switch (triggerCase_) { case 100: if (!getSchedule().equals(other.getSchedule())) return false; break; case 0: default: } 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); hash = (37 * hash) + MAX_RETRIES_FIELD_NUMBER; hash = (53 * hash) + getMaxRetries(); switch (triggerCase_) { case 100: hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getSchedule().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.TriggerSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.TriggerSpec 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.TriggerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.TriggerSpec 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.TriggerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.TriggerSpec 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.TriggerSpec 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.TriggerSpec 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.TriggerSpec 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.TriggerSpec 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.TriggerSpec 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.TriggerSpec 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.TriggerSpec 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; } /** * * *
     * Task scheduling and trigger settings.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.TriggerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.TriggerSpec) com.google.cloud.dataplex.v1.Task.TriggerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_TriggerSpec_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_TriggerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.TriggerSpec.class, com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Task.TriggerSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } disabled_ = false; maxRetries_ = 0; triggerCase_ = 0; trigger_ = null; 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_TriggerSpec_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpec getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpec build() { com.google.cloud.dataplex.v1.Task.TriggerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpec buildPartial() { com.google.cloud.dataplex.v1.Task.TriggerSpec result = new com.google.cloud.dataplex.v1.Task.TriggerSpec(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task.TriggerSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.disabled_ = disabled_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxRetries_ = maxRetries_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataplex.v1.Task.TriggerSpec result) { result.triggerCase_ = triggerCase_; result.trigger_ = this.trigger_; } @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.TriggerSpec) { return mergeFrom((com.google.cloud.dataplex.v1.Task.TriggerSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.TriggerSpec other) { if (other == com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } if (other.getMaxRetries() != 0) { setMaxRetries(other.getMaxRetries()); } switch (other.getTriggerCase()) { case SCHEDULE: { triggerCase_ = 100; trigger_ = other.trigger_; onChanged(); break; } case TRIGGER_NOT_SET: { break; } } 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 32: { disabled_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 32 case 40: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 40 case 50: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 50 case 56: { maxRetries_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 56 case 802: { java.lang.String s = input.readStringRequireUtf8(); triggerCase_ = 100; trigger_ = s; break; } // case 802 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 triggerCase_ = 0; private java.lang.Object trigger_; public TriggerCase getTriggerCase() { return TriggerCase.forNumber(triggerCase_); } public Builder clearTrigger() { triggerCase_ = 0; trigger_ = null; onChanged(); return this; } private int bitField0_; private int type_ = 0; /** * * *
       * Required. Immutable. Trigger type of the user-specified Task.
       * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
       * Required. Immutable. Trigger type of the user-specified Task.
       * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Required. Immutable. Trigger type of the user-specified Task.
       * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpec.Type getType() { com.google.cloud.dataplex.v1.Task.TriggerSpec.Type result = com.google.cloud.dataplex.v1.Task.TriggerSpec.Type.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.Task.TriggerSpec.Type.UNRECOGNIZED : result; } /** * * *
       * Required. Immutable. Trigger type of the user-specified Task.
       * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.dataplex.v1.Task.TriggerSpec.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Required. Immutable. Trigger type of the user-specified Task.
       * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000002); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
       * Optional. The first run of the task will be after this time.
       * If not specified, the task will run shortly after being submitted if
       * ON_DEMAND and based on the schedule if RECURRING.
       * 
* * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private boolean disabled_; /** * * *
       * Optional. Prevent the task from executing.
       * This does not cancel already running tasks. It is intended to temporarily
       * disable RECURRING tasks.
       * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } /** * * *
       * Optional. Prevent the task from executing.
       * This does not cancel already running tasks. It is intended to temporarily
       * disable RECURRING tasks.
       * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { disabled_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Optional. Prevent the task from executing.
       * This does not cancel already running tasks. It is intended to temporarily
       * disable RECURRING tasks.
       * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDisabled() { bitField0_ = (bitField0_ & ~0x00000004); disabled_ = false; onChanged(); return this; } private int maxRetries_; /** * * *
       * Optional. Number of retry attempts before aborting.
       * Set to zero to never attempt to retry a failed task.
       * 
* * int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxRetries. */ @java.lang.Override public int getMaxRetries() { return maxRetries_; } /** * * *
       * Optional. Number of retry attempts before aborting.
       * Set to zero to never attempt to retry a failed task.
       * 
* * int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxRetries to set. * @return This builder for chaining. */ public Builder setMaxRetries(int value) { maxRetries_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. Number of retry attempts before aborting.
       * Set to zero to never attempt to retry a failed task.
       * 
* * int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearMaxRetries() { bitField0_ = (bitField0_ & ~0x00000008); maxRetries_ = 0; onChanged(); return this; } /** * * *
       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
       * running tasks periodically. To explicitly set a timezone to the cron
       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
       * string from IANA time zone database. For example,
       * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
       * *`. This field is required for RECURRING tasks.
       * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the schedule field is set. */ @java.lang.Override public boolean hasSchedule() { return triggerCase_ == 100; } /** * * *
       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
       * running tasks periodically. To explicitly set a timezone to the cron
       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
       * string from IANA time zone database. For example,
       * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
       * *`. This field is required for RECURRING tasks.
       * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The schedule. */ @java.lang.Override public java.lang.String getSchedule() { java.lang.Object ref = ""; if (triggerCase_ == 100) { ref = trigger_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (triggerCase_ == 100) { trigger_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
       * running tasks periodically. To explicitly set a timezone to the cron
       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
       * string from IANA time zone database. For example,
       * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
       * *`. This field is required for RECURRING tasks.
       * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for schedule. */ @java.lang.Override public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = ""; if (triggerCase_ == 100) { ref = trigger_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (triggerCase_ == 100) { trigger_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
       * running tasks periodically. To explicitly set a timezone to the cron
       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
       * string from IANA time zone database. For example,
       * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
       * *`. This field is required for RECURRING tasks.
       * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The schedule to set. * @return This builder for chaining. */ public Builder setSchedule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } triggerCase_ = 100; trigger_ = value; onChanged(); return this; } /** * * *
       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
       * running tasks periodically. To explicitly set a timezone to the cron
       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
       * string from IANA time zone database. For example,
       * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
       * *`. This field is required for RECURRING tasks.
       * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearSchedule() { if (triggerCase_ == 100) { triggerCase_ = 0; trigger_ = null; onChanged(); } return this; } /** * * *
       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
       * running tasks periodically. To explicitly set a timezone to the cron
       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
       * string from IANA time zone database. For example,
       * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * *
       * *`. This field is required for RECURRING tasks.
       * 
* * string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for schedule to set. * @return This builder for chaining. */ public Builder setScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); triggerCase_ = 100; trigger_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.TriggerSpec) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.TriggerSpec) private static final com.google.cloud.dataplex.v1.Task.TriggerSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.TriggerSpec(); } public static com.google.cloud.dataplex.v1.Task.TriggerSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TriggerSpec 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.TriggerSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecutionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.ExecutionSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getArgsCount(); /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsArgs(java.lang.String key); /** Use {@link #getArgsMap()} instead. */ @java.lang.Deprecated java.util.Map getArgs(); /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getArgsMap(); /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getArgsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getArgsOrThrow(java.lang.String key); /** * * *
     * Required. Service account to use to execute a task.
     * If not provided, the default Compute service account for the project is
     * used.
     * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** * * *
     * Required. Service account to use to execute a task.
     * If not provided, the default Compute service account for the project is
     * used.
     * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); /** * * *
     * Optional. The project in which jobs are run. By default, the project
     * containing the Lake is used. If a project is provided, the
     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
     * must belong to this project.
     * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The project. */ java.lang.String getProject(); /** * * *
     * Optional. The project in which jobs are run. By default, the project
     * containing the Lake is used. If a project is provided, the
     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
     * must belong to this project.
     * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for project. */ com.google.protobuf.ByteString getProjectBytes(); /** * * *
     * Optional. The maximum duration after which the job execution is expired.
     * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the maxJobExecutionLifetime field is set. */ boolean hasMaxJobExecutionLifetime(); /** * * *
     * Optional. The maximum duration after which the job execution is expired.
     * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The maxJobExecutionLifetime. */ com.google.protobuf.Duration getMaxJobExecutionLifetime(); /** * * *
     * Optional. The maximum duration after which the job execution is expired.
     * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.DurationOrBuilder getMaxJobExecutionLifetimeOrBuilder(); /** * * *
     * Optional. The Cloud KMS key to use for encryption, of the form:
     * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
     * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKey. */ java.lang.String getKmsKey(); /** * * *
     * Optional. The Cloud KMS key to use for encryption, of the form:
     * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
     * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKey. */ com.google.protobuf.ByteString getKmsKeyBytes(); } /** * * *
   * Execution related settings, like retry and service_account.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.ExecutionSpec} */ public static final class ExecutionSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.ExecutionSpec) ExecutionSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ExecutionSpec.newBuilder() to construct. private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecutionSpec() { serviceAccount_ = ""; project_ = ""; kmsKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExecutionSpec(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetArgs(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.ExecutionSpec.class, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder.class); } private int bitField0_; public static final int ARGS_FIELD_NUMBER = 4; private static final class ArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionSpec_ArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField args_; private com.google.protobuf.MapField internalGetArgs() { if (args_ == null) { return com.google.protobuf.MapField.emptyMapField(ArgsDefaultEntryHolder.defaultEntry); } return args_; } public int getArgsCount() { return internalGetArgs().getMap().size(); } /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsArgs(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetArgs().getMap().containsKey(key); } /** Use {@link #getArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getArgs() { return getArgsMap(); } /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getArgsMap() { return internalGetArgs().getMap(); } /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getArgsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional. The arguments to pass to the task.
     * The args can use placeholders of the format ${placeholder} as
     * part of key/value string. These will be interpolated before passing the
     * args to the driver. Currently supported placeholders:
     * - ${task_id}
     * - ${job_time}
     * To pass positional args, set the key as TASK_ARGS. The value should be a
     * comma-separated string of all the positional arguments. To use a
     * delimiter other than comma, refer to
     * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
     * other keys being present in the args, then TASK_ARGS will be passed as
     * the last argument.
     * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getArgsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** * * *
     * Required. Service account to use to execute a task.
     * If not provided, the default Compute service account for the project is
     * used.
     * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The serviceAccount. */ @java.lang.Override public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; 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(); serviceAccount_ = s; return s; } } /** * * *
     * Required. Service account to use to execute a task.
     * If not provided, the default Compute service account for the project is
     * used.
     * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for serviceAccount. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** * * *
     * Optional. The project in which jobs are run. By default, the project
     * containing the Lake is used. If a project is provided, the
     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
     * must belong to this project.
     * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The project. */ @java.lang.Override public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; } } /** * * *
     * Optional. The project in which jobs are run. By default, the project
     * containing the Lake is used. If a project is provided, the
     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
     * must belong to this project.
     * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for project. */ @java.lang.Override public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_JOB_EXECUTION_LIFETIME_FIELD_NUMBER = 8; private com.google.protobuf.Duration maxJobExecutionLifetime_; /** * * *
     * Optional. The maximum duration after which the job execution is expired.
     * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the maxJobExecutionLifetime field is set. */ @java.lang.Override public boolean hasMaxJobExecutionLifetime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Optional. The maximum duration after which the job execution is expired.
     * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The maxJobExecutionLifetime. */ @java.lang.Override public com.google.protobuf.Duration getMaxJobExecutionLifetime() { return maxJobExecutionLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxJobExecutionLifetime_; } /** * * *
     * Optional. The maximum duration after which the job execution is expired.
     * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxJobExecutionLifetimeOrBuilder() { return maxJobExecutionLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxJobExecutionLifetime_; } public static final int KMS_KEY_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object kmsKey_ = ""; /** * * *
     * Optional. The Cloud KMS key to use for encryption, of the form:
     * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
     * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKey. */ @java.lang.Override public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; 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(); kmsKey_ = s; return s; } } /** * * *
     * Optional. The Cloud KMS key to use for encryption, of the form:
     * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
     * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKey. */ @java.lang.Override public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetArgs(), ArgsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, project_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getMaxJobExecutionLifetime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, kmsKey_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetArgs().getMap().entrySet()) { com.google.protobuf.MapEntry args__ = ArgsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, args__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, project_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMaxJobExecutionLifetime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, kmsKey_); } 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.ExecutionSpec)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.ExecutionSpec other = (com.google.cloud.dataplex.v1.Task.ExecutionSpec) obj; if (!internalGetArgs().equals(other.internalGetArgs())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getProject().equals(other.getProject())) return false; if (hasMaxJobExecutionLifetime() != other.hasMaxJobExecutionLifetime()) return false; if (hasMaxJobExecutionLifetime()) { if (!getMaxJobExecutionLifetime().equals(other.getMaxJobExecutionLifetime())) return false; } if (!getKmsKey().equals(other.getKmsKey())) 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(); if (!internalGetArgs().getMap().isEmpty()) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetArgs().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + PROJECT_FIELD_NUMBER; hash = (53 * hash) + getProject().hashCode(); if (hasMaxJobExecutionLifetime()) { hash = (37 * hash) + MAX_JOB_EXECUTION_LIFETIME_FIELD_NUMBER; hash = (53 * hash) + getMaxJobExecutionLifetime().hashCode(); } hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getKmsKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.ExecutionSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.ExecutionSpec 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.ExecutionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.ExecutionSpec 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.ExecutionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.ExecutionSpec 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.ExecutionSpec 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.ExecutionSpec 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.ExecutionSpec 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.ExecutionSpec 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.ExecutionSpec 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.ExecutionSpec 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.ExecutionSpec 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; } /** * * *
     * Execution related settings, like retry and service_account.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.ExecutionSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.ExecutionSpec) com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetArgs(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: return internalGetMutableArgs(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.ExecutionSpec.class, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Task.ExecutionSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMaxJobExecutionLifetimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableArgs().clear(); serviceAccount_ = ""; project_ = ""; maxJobExecutionLifetime_ = null; if (maxJobExecutionLifetimeBuilder_ != null) { maxJobExecutionLifetimeBuilder_.dispose(); maxJobExecutionLifetimeBuilder_ = null; } kmsKey_ = ""; 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_ExecutionSpec_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpec getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpec build() { com.google.cloud.dataplex.v1.Task.ExecutionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpec buildPartial() { com.google.cloud.dataplex.v1.Task.ExecutionSpec result = new com.google.cloud.dataplex.v1.Task.ExecutionSpec(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task.ExecutionSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.args_ = internalGetArgs(); result.args_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.serviceAccount_ = serviceAccount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.project_ = project_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.maxJobExecutionLifetime_ = maxJobExecutionLifetimeBuilder_ == null ? maxJobExecutionLifetime_ : maxJobExecutionLifetimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.kmsKey_ = kmsKey_; } result.bitField0_ |= to_bitField0_; } @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.ExecutionSpec) { return mergeFrom((com.google.cloud.dataplex.v1.Task.ExecutionSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.ExecutionSpec other) { if (other == com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance()) return this; internalGetMutableArgs().mergeFrom(other.internalGetArgs()); bitField0_ |= 0x00000001; if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getProject().isEmpty()) { project_ = other.project_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasMaxJobExecutionLifetime()) { mergeMaxJobExecutionLifetime(other.getMaxJobExecutionLifetime()); } if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; bitField0_ |= 0x00000010; 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 34: { com.google.protobuf.MapEntry args__ = input.readMessage( ArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableArgs().getMutableMap().put(args__.getKey(), args__.getValue()); bitField0_ |= 0x00000001; break; } // case 34 case 42: { serviceAccount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 42 case 58: { project_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 58 case 66: { input.readMessage( getMaxJobExecutionLifetimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 66 case 74: { kmsKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; 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) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField args_; private com.google.protobuf.MapField internalGetArgs() { if (args_ == null) { return com.google.protobuf.MapField.emptyMapField(ArgsDefaultEntryHolder.defaultEntry); } return args_; } private com.google.protobuf.MapField internalGetMutableArgs() { if (args_ == null) { args_ = com.google.protobuf.MapField.newMapField(ArgsDefaultEntryHolder.defaultEntry); } if (!args_.isMutable()) { args_ = args_.copy(); } bitField0_ |= 0x00000001; onChanged(); return args_; } public int getArgsCount() { return internalGetArgs().getMap().size(); } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsArgs(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetArgs().getMap().containsKey(key); } /** Use {@link #getArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getArgs() { return getArgsMap(); } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getArgsMap() { return internalGetArgs().getMap(); } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getArgsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getArgsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearArgs() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableArgs().getMutableMap().clear(); return this; } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeArgs(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableArgs().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableArgs() { bitField0_ |= 0x00000001; return internalGetMutableArgs().getMutableMap(); } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putArgs(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableArgs().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** * * *
       * Optional. The arguments to pass to the task.
       * The args can use placeholders of the format ${placeholder} as
       * part of key/value string. These will be interpolated before passing the
       * args to the driver. Currently supported placeholders:
       * - ${task_id}
       * - ${job_time}
       * To pass positional args, set the key as TASK_ARGS. The value should be a
       * comma-separated string of all the positional arguments. To use a
       * delimiter other than comma, refer to
       * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
       * other keys being present in the args, then TASK_ARGS will be passed as
       * the last argument.
       * 
* * map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllArgs(java.util.Map values) { internalGetMutableArgs().getMutableMap().putAll(values); bitField0_ |= 0x00000001; return this; } private java.lang.Object serviceAccount_ = ""; /** * * *
       * Required. Service account to use to execute a task.
       * If not provided, the default Compute service account for the project is
       * used.
       * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. Service account to use to execute a task.
       * If not provided, the default Compute service account for the project is
       * used.
       * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for serviceAccount. */ public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. Service account to use to execute a task.
       * If not provided, the default Compute service account for the project is
       * used.
       * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The serviceAccount to set. * @return This builder for chaining. */ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Required. Service account to use to execute a task.
       * If not provided, the default Compute service account for the project is
       * used.
       * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Required. Service account to use to execute a task.
       * If not provided, the default Compute service account for the project is
       * used.
       * 
* * string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object project_ = ""; /** * * *
       * Optional. The project in which jobs are run. By default, the project
       * containing the Lake is used. If a project is provided, the
       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
       * must belong to this project.
       * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional. The project in which jobs are run. By default, the project
       * containing the Lake is used. If a project is provided, the
       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
       * must belong to this project.
       * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional. The project in which jobs are run. By default, the project
       * containing the Lake is used. If a project is provided, the
       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
       * must belong to this project.
       * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The project to set. * @return This builder for chaining. */ public Builder setProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Optional. The project in which jobs are run. By default, the project
       * containing the Lake is used. If a project is provided, the
       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
       * must belong to this project.
       * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearProject() { project_ = getDefaultInstance().getProject(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Optional. The project in which jobs are run. By default, the project
       * containing the Lake is used. If a project is provided, the
       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
       * must belong to this project.
       * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for project to set. * @return This builder for chaining. */ public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.Duration maxJobExecutionLifetime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxJobExecutionLifetimeBuilder_; /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the maxJobExecutionLifetime field is set. */ public boolean hasMaxJobExecutionLifetime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The maxJobExecutionLifetime. */ public com.google.protobuf.Duration getMaxJobExecutionLifetime() { if (maxJobExecutionLifetimeBuilder_ == null) { return maxJobExecutionLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxJobExecutionLifetime_; } else { return maxJobExecutionLifetimeBuilder_.getMessage(); } } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setMaxJobExecutionLifetime(com.google.protobuf.Duration value) { if (maxJobExecutionLifetimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxJobExecutionLifetime_ = value; } else { maxJobExecutionLifetimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setMaxJobExecutionLifetime( com.google.protobuf.Duration.Builder builderForValue) { if (maxJobExecutionLifetimeBuilder_ == null) { maxJobExecutionLifetime_ = builderForValue.build(); } else { maxJobExecutionLifetimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeMaxJobExecutionLifetime(com.google.protobuf.Duration value) { if (maxJobExecutionLifetimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && maxJobExecutionLifetime_ != null && maxJobExecutionLifetime_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxJobExecutionLifetimeBuilder().mergeFrom(value); } else { maxJobExecutionLifetime_ = value; } } else { maxJobExecutionLifetimeBuilder_.mergeFrom(value); } if (maxJobExecutionLifetime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearMaxJobExecutionLifetime() { bitField0_ = (bitField0_ & ~0x00000008); maxJobExecutionLifetime_ = null; if (maxJobExecutionLifetimeBuilder_ != null) { maxJobExecutionLifetimeBuilder_.dispose(); maxJobExecutionLifetimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.Duration.Builder getMaxJobExecutionLifetimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMaxJobExecutionLifetimeFieldBuilder().getBuilder(); } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.DurationOrBuilder getMaxJobExecutionLifetimeOrBuilder() { if (maxJobExecutionLifetimeBuilder_ != null) { return maxJobExecutionLifetimeBuilder_.getMessageOrBuilder(); } else { return maxJobExecutionLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxJobExecutionLifetime_; } } /** * * *
       * Optional. The maximum duration after which the job execution is expired.
       * 
* * * .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxJobExecutionLifetimeFieldBuilder() { if (maxJobExecutionLifetimeBuilder_ == null) { maxJobExecutionLifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxJobExecutionLifetime(), getParentForChildren(), isClean()); maxJobExecutionLifetime_ = null; } return maxJobExecutionLifetimeBuilder_; } private java.lang.Object kmsKey_ = ""; /** * * *
       * Optional. The Cloud KMS key to use for encryption, of the form:
       * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
       * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional. The Cloud KMS key to use for encryption, of the form:
       * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
       * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKey. */ public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional. The Cloud KMS key to use for encryption, of the form:
       * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
       * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The kmsKey to set. * @return This builder for chaining. */ public Builder setKmsKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Optional. The Cloud KMS key to use for encryption, of the form:
       * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
       * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearKmsKey() { kmsKey_ = getDefaultInstance().getKmsKey(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * Optional. The Cloud KMS key to use for encryption, of the form:
       * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.
       * 
* * string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.ExecutionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.ExecutionSpec) private static final com.google.cloud.dataplex.v1.Task.ExecutionSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.ExecutionSpec(); } public static com.google.cloud.dataplex.v1.Task.ExecutionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecutionSpec 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.ExecutionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SparkTaskConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.SparkTaskConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * The Cloud Storage URI of the jar file that contains the main class.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_jar_file_uri = 100; * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** * * *
     * The Cloud Storage URI of the jar file that contains the main class.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_jar_file_uri = 100; * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** * * *
     * The Cloud Storage URI of the jar file that contains the main class.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_jar_file_uri = 100; * * @return The bytes for mainJarFileUri. */ com.google.protobuf.ByteString getMainJarFileUriBytes(); /** * * *
     * The name of the driver's main class. The jar file that contains the
     * class must be in the default CLASSPATH or specified in
     * `jar_file_uris`.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_class = 101; * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** * * *
     * The name of the driver's main class. The jar file that contains the
     * class must be in the default CLASSPATH or specified in
     * `jar_file_uris`.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_class = 101; * * @return The mainClass. */ java.lang.String getMainClass(); /** * * *
     * The name of the driver's main class. The jar file that contains the
     * class must be in the default CLASSPATH or specified in
     * `jar_file_uris`.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_class = 101; * * @return The bytes for mainClass. */ com.google.protobuf.ByteString getMainClassBytes(); /** * * *
     * The Gcloud Storage URI of the main Python file to use as the driver.
     * Must be a .py file. The execution args are passed in as a sequence of
     * named process arguments (`--key=value`).
     * 
* * string python_script_file = 102; * * @return Whether the pythonScriptFile field is set. */ boolean hasPythonScriptFile(); /** * * *
     * The Gcloud Storage URI of the main Python file to use as the driver.
     * Must be a .py file. The execution args are passed in as a sequence of
     * named process arguments (`--key=value`).
     * 
* * string python_script_file = 102; * * @return The pythonScriptFile. */ java.lang.String getPythonScriptFile(); /** * * *
     * The Gcloud Storage URI of the main Python file to use as the driver.
     * Must be a .py file. The execution args are passed in as a sequence of
     * named process arguments (`--key=value`).
     * 
* * string python_script_file = 102; * * @return The bytes for pythonScriptFile. */ com.google.protobuf.ByteString getPythonScriptFileBytes(); /** * * *
     * A reference to a query file. This can be the Cloud Storage URI of the
     * query file or it can the path to a SqlScript Content. The execution
     * args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script_file = 104; * * @return Whether the sqlScriptFile field is set. */ boolean hasSqlScriptFile(); /** * * *
     * A reference to a query file. This can be the Cloud Storage URI of the
     * query file or it can the path to a SqlScript Content. The execution
     * args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script_file = 104; * * @return The sqlScriptFile. */ java.lang.String getSqlScriptFile(); /** * * *
     * A reference to a query file. This can be the Cloud Storage URI of the
     * query file or it can the path to a SqlScript Content. The execution
     * args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script_file = 104; * * @return The bytes for sqlScriptFile. */ com.google.protobuf.ByteString getSqlScriptFileBytes(); /** * * *
     * The query text.
     * The execution args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script = 105; * * @return Whether the sqlScript field is set. */ boolean hasSqlScript(); /** * * *
     * The query text.
     * The execution args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script = 105; * * @return The sqlScript. */ java.lang.String getSqlScript(); /** * * *
     * The query text.
     * The execution args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script = 105; * * @return The bytes for sqlScript. */ com.google.protobuf.ByteString getSqlScriptBytes(); /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the fileUris. */ java.util.List getFileUrisList(); /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of fileUris. */ int getFileUrisCount(); /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ com.google.protobuf.ByteString getFileUrisBytes(int index); /** * * *
     * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the archiveUris. */ java.util.List getArchiveUrisList(); /** * * *
     * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** * * *
     * Optional. Cloud Storage 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 = 4 [(.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. Cloud Storage 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 = 4 [(.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); /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the infrastructureSpec field is set. */ boolean hasInfrastructureSpec(); /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The infrastructureSpec. */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec getInfrastructureSpec(); /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder getInfrastructureSpecOrBuilder(); com.google.cloud.dataplex.v1.Task.SparkTaskConfig.DriverCase getDriverCase(); } /** * * *
   * User-specified config for running a Spark task.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.SparkTaskConfig} */ public static final class SparkTaskConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.SparkTaskConfig) SparkTaskConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SparkTaskConfig.newBuilder() to construct. private SparkTaskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SparkTaskConfig() { fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SparkTaskConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_SparkTaskConfig_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_SparkTaskConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.SparkTaskConfig.class, com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder.class); } private int bitField0_; private int driverCase_ = 0; @SuppressWarnings("serial") private java.lang.Object driver_; public enum DriverCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAIN_JAR_FILE_URI(100), MAIN_CLASS(101), PYTHON_SCRIPT_FILE(102), SQL_SCRIPT_FILE(104), SQL_SCRIPT(105), DRIVER_NOT_SET(0); private final int value; private DriverCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DriverCase valueOf(int value) { return forNumber(value); } public static DriverCase forNumber(int value) { switch (value) { case 100: return MAIN_JAR_FILE_URI; case 101: return MAIN_CLASS; case 102: return PYTHON_SCRIPT_FILE; case 104: return SQL_SCRIPT_FILE; case 105: return SQL_SCRIPT; case 0: return DRIVER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DriverCase getDriverCase() { return DriverCase.forNumber(driverCase_); } public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 100; /** * * *
     * The Cloud Storage URI of the jar file that contains the main class.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_jar_file_uri = 100; * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 100; } /** * * *
     * The Cloud Storage URI of the jar file that contains the main class.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_jar_file_uri = 100; * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { java.lang.Object ref = ""; if (driverCase_ == 100) { ref = driver_; } 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(); if (driverCase_ == 100) { driver_ = s; } return s; } } /** * * *
     * The Cloud Storage URI of the jar file that contains the main class.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_jar_file_uri = 100; * * @return The bytes for mainJarFileUri. */ public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 100) { ref = driver_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 100) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAIN_CLASS_FIELD_NUMBER = 101; /** * * *
     * The name of the driver's main class. The jar file that contains the
     * class must be in the default CLASSPATH or specified in
     * `jar_file_uris`.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_class = 101; * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 101; } /** * * *
     * The name of the driver's main class. The jar file that contains the
     * class must be in the default CLASSPATH or specified in
     * `jar_file_uris`.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_class = 101; * * @return The mainClass. */ public java.lang.String getMainClass() { java.lang.Object ref = ""; if (driverCase_ == 101) { ref = driver_; } 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(); if (driverCase_ == 101) { driver_ = s; } return s; } } /** * * *
     * The name of the driver's main class. The jar file that contains the
     * class must be in the default CLASSPATH or specified in
     * `jar_file_uris`.
     * The execution args are passed in as a sequence of named process
     * arguments (`--key=value`).
     * 
* * string main_class = 101; * * @return The bytes for mainClass. */ public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 101) { ref = driver_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 101) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PYTHON_SCRIPT_FILE_FIELD_NUMBER = 102; /** * * *
     * The Gcloud Storage URI of the main Python file to use as the driver.
     * Must be a .py file. The execution args are passed in as a sequence of
     * named process arguments (`--key=value`).
     * 
* * string python_script_file = 102; * * @return Whether the pythonScriptFile field is set. */ public boolean hasPythonScriptFile() { return driverCase_ == 102; } /** * * *
     * The Gcloud Storage URI of the main Python file to use as the driver.
     * Must be a .py file. The execution args are passed in as a sequence of
     * named process arguments (`--key=value`).
     * 
* * string python_script_file = 102; * * @return The pythonScriptFile. */ public java.lang.String getPythonScriptFile() { java.lang.Object ref = ""; if (driverCase_ == 102) { ref = driver_; } 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(); if (driverCase_ == 102) { driver_ = s; } return s; } } /** * * *
     * The Gcloud Storage URI of the main Python file to use as the driver.
     * Must be a .py file. The execution args are passed in as a sequence of
     * named process arguments (`--key=value`).
     * 
* * string python_script_file = 102; * * @return The bytes for pythonScriptFile. */ public com.google.protobuf.ByteString getPythonScriptFileBytes() { java.lang.Object ref = ""; if (driverCase_ == 102) { ref = driver_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 102) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SQL_SCRIPT_FILE_FIELD_NUMBER = 104; /** * * *
     * A reference to a query file. This can be the Cloud Storage URI of the
     * query file or it can the path to a SqlScript Content. The execution
     * args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script_file = 104; * * @return Whether the sqlScriptFile field is set. */ public boolean hasSqlScriptFile() { return driverCase_ == 104; } /** * * *
     * A reference to a query file. This can be the Cloud Storage URI of the
     * query file or it can the path to a SqlScript Content. The execution
     * args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script_file = 104; * * @return The sqlScriptFile. */ public java.lang.String getSqlScriptFile() { java.lang.Object ref = ""; if (driverCase_ == 104) { ref = driver_; } 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(); if (driverCase_ == 104) { driver_ = s; } return s; } } /** * * *
     * A reference to a query file. This can be the Cloud Storage URI of the
     * query file or it can the path to a SqlScript Content. The execution
     * args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script_file = 104; * * @return The bytes for sqlScriptFile. */ public com.google.protobuf.ByteString getSqlScriptFileBytes() { java.lang.Object ref = ""; if (driverCase_ == 104) { ref = driver_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 104) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SQL_SCRIPT_FIELD_NUMBER = 105; /** * * *
     * The query text.
     * The execution args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script = 105; * * @return Whether the sqlScript field is set. */ public boolean hasSqlScript() { return driverCase_ == 105; } /** * * *
     * The query text.
     * The execution args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script = 105; * * @return The sqlScript. */ public java.lang.String getSqlScript() { java.lang.Object ref = ""; if (driverCase_ == 105) { ref = driver_; } 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(); if (driverCase_ == 105) { driver_ = s; } return s; } } /** * * *
     * The query text.
     * The execution args are used to declare a set of script variables
     * (`set key="value";`).
     * 
* * string sql_script = 105; * * @return The bytes for sqlScript. */ public com.google.protobuf.ByteString getSqlScriptBytes() { java.lang.Object ref = ""; if (driverCase_ == 105) { ref = driver_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 105) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILE_URIS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the fileUris. */ public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** * * *
     * Optional. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.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. Cloud Storage URIs of files to be placed in the working
     * directory of each executor.
     * 
* * repeated string file_uris = 3 [(.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 = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the archiveUris. */ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** * * *
     * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** * * *
     * Optional. Cloud Storage 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 = 4 [(.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. Cloud Storage 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 = 4 [(.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); } public static final int INFRASTRUCTURE_SPEC_FIELD_NUMBER = 6; private com.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructureSpec_; /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the infrastructureSpec field is set. */ @java.lang.Override public boolean hasInfrastructureSpec() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.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 = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder getInfrastructureSpecOrBuilder() { return infrastructureSpec_ == null ? com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance() : infrastructureSpec_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < fileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileUris_.getRaw(i)); } for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getInfrastructureSpec()); } if (driverCase_ == 100) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, driver_); } if (driverCase_ == 101) { com.google.protobuf.GeneratedMessageV3.writeString(output, 101, driver_); } if (driverCase_ == 102) { com.google.protobuf.GeneratedMessageV3.writeString(output, 102, driver_); } if (driverCase_ == 104) { com.google.protobuf.GeneratedMessageV3.writeString(output, 104, driver_); } if (driverCase_ == 105) { com.google.protobuf.GeneratedMessageV3.writeString(output, 105, driver_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { 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(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInfrastructureSpec()); } if (driverCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, driver_); } if (driverCase_ == 101) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, driver_); } if (driverCase_ == 102) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, driver_); } if (driverCase_ == 104) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, driver_); } if (driverCase_ == 105) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, driver_); } 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.SparkTaskConfig)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.SparkTaskConfig other = (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) obj; if (!getFileUrisList().equals(other.getFileUrisList())) return false; if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; if (hasInfrastructureSpec() != other.hasInfrastructureSpec()) return false; if (hasInfrastructureSpec()) { if (!getInfrastructureSpec().equals(other.getInfrastructureSpec())) return false; } if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 100: if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; break; case 101: if (!getMainClass().equals(other.getMainClass())) return false; break; case 102: if (!getPythonScriptFile().equals(other.getPythonScriptFile())) return false; break; case 104: if (!getSqlScriptFile().equals(other.getSqlScriptFile())) return false; break; case 105: if (!getSqlScript().equals(other.getSqlScript())) return false; break; case 0: default: } 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(); 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(); } if (hasInfrastructureSpec()) { hash = (37 * hash) + INFRASTRUCTURE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getInfrastructureSpec().hashCode(); } switch (driverCase_) { case 100: hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; hash = (53 * hash) + getMainJarFileUri().hashCode(); break; case 101: hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; hash = (53 * hash) + getMainClass().hashCode(); break; case 102: hash = (37 * hash) + PYTHON_SCRIPT_FILE_FIELD_NUMBER; hash = (53 * hash) + getPythonScriptFile().hashCode(); break; case 104: hash = (37 * hash) + SQL_SCRIPT_FILE_FIELD_NUMBER; hash = (53 * hash) + getSqlScriptFile().hashCode(); break; case 105: hash = (37 * hash) + SQL_SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getSqlScript().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.SparkTaskConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.SparkTaskConfig 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.SparkTaskConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.SparkTaskConfig 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.SparkTaskConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.SparkTaskConfig 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.SparkTaskConfig 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.SparkTaskConfig 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.SparkTaskConfig 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.SparkTaskConfig 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.SparkTaskConfig 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.SparkTaskConfig 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.SparkTaskConfig 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; } /** * * *
     * User-specified config for running a Spark task.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.SparkTaskConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.SparkTaskConfig) com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_SparkTaskConfig_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_SparkTaskConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.SparkTaskConfig.class, com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Task.SparkTaskConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInfrastructureSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); infrastructureSpec_ = null; if (infrastructureSpecBuilder_ != null) { infrastructureSpecBuilder_.dispose(); infrastructureSpecBuilder_ = null; } driverCase_ = 0; driver_ = null; 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_SparkTaskConfig_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfig getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfig build() { com.google.cloud.dataplex.v1.Task.SparkTaskConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfig buildPartial() { com.google.cloud.dataplex.v1.Task.SparkTaskConfig result = new com.google.cloud.dataplex.v1.Task.SparkTaskConfig(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task.SparkTaskConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000020) != 0)) { fileUris_.makeImmutable(); result.fileUris_ = fileUris_; } if (((from_bitField0_ & 0x00000040) != 0)) { archiveUris_.makeImmutable(); result.archiveUris_ = archiveUris_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.infrastructureSpec_ = infrastructureSpecBuilder_ == null ? infrastructureSpec_ : infrastructureSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataplex.v1.Task.SparkTaskConfig result) { result.driverCase_ = driverCase_; result.driver_ = this.driver_; } @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.SparkTaskConfig) { return mergeFrom((com.google.cloud.dataplex.v1.Task.SparkTaskConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.SparkTaskConfig other) { if (other == com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance()) return this; if (!other.fileUris_.isEmpty()) { if (fileUris_.isEmpty()) { fileUris_ = other.fileUris_; bitField0_ |= 0x00000020; } else { ensureFileUrisIsMutable(); fileUris_.addAll(other.fileUris_); } onChanged(); } if (!other.archiveUris_.isEmpty()) { if (archiveUris_.isEmpty()) { archiveUris_ = other.archiveUris_; bitField0_ |= 0x00000040; } else { ensureArchiveUrisIsMutable(); archiveUris_.addAll(other.archiveUris_); } onChanged(); } if (other.hasInfrastructureSpec()) { mergeInfrastructureSpec(other.getInfrastructureSpec()); } switch (other.getDriverCase()) { case MAIN_JAR_FILE_URI: { driverCase_ = 100; driver_ = other.driver_; onChanged(); break; } case MAIN_CLASS: { driverCase_ = 101; driver_ = other.driver_; onChanged(); break; } case PYTHON_SCRIPT_FILE: { driverCase_ = 102; driver_ = other.driver_; onChanged(); break; } case SQL_SCRIPT_FILE: { driverCase_ = 104; driver_ = other.driver_; onChanged(); break; } case SQL_SCRIPT: { driverCase_ = 105; driver_ = other.driver_; onChanged(); break; } case DRIVER_NOT_SET: { break; } } 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: { java.lang.String s = input.readStringRequireUtf8(); ensureFileUrisIsMutable(); fileUris_.add(s); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureArchiveUrisIsMutable(); archiveUris_.add(s); break; } // case 34 case 50: { input.readMessage( getInfrastructureSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 50 case 802: { java.lang.String s = input.readStringRequireUtf8(); driverCase_ = 100; driver_ = s; break; } // case 802 case 810: { java.lang.String s = input.readStringRequireUtf8(); driverCase_ = 101; driver_ = s; break; } // case 810 case 818: { java.lang.String s = input.readStringRequireUtf8(); driverCase_ = 102; driver_ = s; break; } // case 818 case 834: { java.lang.String s = input.readStringRequireUtf8(); driverCase_ = 104; driver_ = s; break; } // case 834 case 842: { java.lang.String s = input.readStringRequireUtf8(); driverCase_ = 105; driver_ = s; 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) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int driverCase_ = 0; private java.lang.Object driver_; public DriverCase getDriverCase() { return DriverCase.forNumber(driverCase_); } public Builder clearDriver() { driverCase_ = 0; driver_ = null; onChanged(); return this; } private int bitField0_; /** * * *
       * The Cloud Storage URI of the jar file that contains the main class.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_jar_file_uri = 100; * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override public boolean hasMainJarFileUri() { return driverCase_ == 100; } /** * * *
       * The Cloud Storage URI of the jar file that contains the main class.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_jar_file_uri = 100; * * @return The mainJarFileUri. */ @java.lang.Override public java.lang.String getMainJarFileUri() { java.lang.Object ref = ""; if (driverCase_ == 100) { ref = driver_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (driverCase_ == 100) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Cloud Storage URI of the jar file that contains the main class.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_jar_file_uri = 100; * * @return The bytes for mainJarFileUri. */ @java.lang.Override public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 100) { ref = driver_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 100) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Cloud Storage URI of the jar file that contains the main class.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_jar_file_uri = 100; * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ public Builder setMainJarFileUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } driverCase_ = 100; driver_ = value; onChanged(); return this; } /** * * *
       * The Cloud Storage URI of the jar file that contains the main class.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_jar_file_uri = 100; * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { if (driverCase_ == 100) { driverCase_ = 0; driver_ = null; onChanged(); } return this; } /** * * *
       * The Cloud Storage URI of the jar file that contains the main class.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_jar_file_uri = 100; * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); driverCase_ = 100; driver_ = value; onChanged(); return this; } /** * * *
       * The name of the driver's main class. The jar file that contains the
       * class must be in the default CLASSPATH or specified in
       * `jar_file_uris`.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_class = 101; * * @return Whether the mainClass field is set. */ @java.lang.Override public boolean hasMainClass() { return driverCase_ == 101; } /** * * *
       * The name of the driver's main class. The jar file that contains the
       * class must be in the default CLASSPATH or specified in
       * `jar_file_uris`.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_class = 101; * * @return The mainClass. */ @java.lang.Override public java.lang.String getMainClass() { java.lang.Object ref = ""; if (driverCase_ == 101) { ref = driver_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (driverCase_ == 101) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the driver's main class. The jar file that contains the
       * class must be in the default CLASSPATH or specified in
       * `jar_file_uris`.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_class = 101; * * @return The bytes for mainClass. */ @java.lang.Override public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 101) { ref = driver_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 101) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the driver's main class. The jar file that contains the
       * class must be in the default CLASSPATH or specified in
       * `jar_file_uris`.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_class = 101; * * @param value The mainClass to set. * @return This builder for chaining. */ public Builder setMainClass(java.lang.String value) { if (value == null) { throw new NullPointerException(); } driverCase_ = 101; driver_ = value; onChanged(); return this; } /** * * *
       * The name of the driver's main class. The jar file that contains the
       * class must be in the default CLASSPATH or specified in
       * `jar_file_uris`.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_class = 101; * * @return This builder for chaining. */ public Builder clearMainClass() { if (driverCase_ == 101) { driverCase_ = 0; driver_ = null; onChanged(); } return this; } /** * * *
       * The name of the driver's main class. The jar file that contains the
       * class must be in the default CLASSPATH or specified in
       * `jar_file_uris`.
       * The execution args are passed in as a sequence of named process
       * arguments (`--key=value`).
       * 
* * string main_class = 101; * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ public Builder setMainClassBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); driverCase_ = 101; driver_ = value; onChanged(); return this; } /** * * *
       * The Gcloud Storage URI of the main Python file to use as the driver.
       * Must be a .py file. The execution args are passed in as a sequence of
       * named process arguments (`--key=value`).
       * 
* * string python_script_file = 102; * * @return Whether the pythonScriptFile field is set. */ @java.lang.Override public boolean hasPythonScriptFile() { return driverCase_ == 102; } /** * * *
       * The Gcloud Storage URI of the main Python file to use as the driver.
       * Must be a .py file. The execution args are passed in as a sequence of
       * named process arguments (`--key=value`).
       * 
* * string python_script_file = 102; * * @return The pythonScriptFile. */ @java.lang.Override public java.lang.String getPythonScriptFile() { java.lang.Object ref = ""; if (driverCase_ == 102) { ref = driver_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (driverCase_ == 102) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Gcloud Storage URI of the main Python file to use as the driver.
       * Must be a .py file. The execution args are passed in as a sequence of
       * named process arguments (`--key=value`).
       * 
* * string python_script_file = 102; * * @return The bytes for pythonScriptFile. */ @java.lang.Override public com.google.protobuf.ByteString getPythonScriptFileBytes() { java.lang.Object ref = ""; if (driverCase_ == 102) { ref = driver_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 102) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Gcloud Storage URI of the main Python file to use as the driver.
       * Must be a .py file. The execution args are passed in as a sequence of
       * named process arguments (`--key=value`).
       * 
* * string python_script_file = 102; * * @param value The pythonScriptFile to set. * @return This builder for chaining. */ public Builder setPythonScriptFile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } driverCase_ = 102; driver_ = value; onChanged(); return this; } /** * * *
       * The Gcloud Storage URI of the main Python file to use as the driver.
       * Must be a .py file. The execution args are passed in as a sequence of
       * named process arguments (`--key=value`).
       * 
* * string python_script_file = 102; * * @return This builder for chaining. */ public Builder clearPythonScriptFile() { if (driverCase_ == 102) { driverCase_ = 0; driver_ = null; onChanged(); } return this; } /** * * *
       * The Gcloud Storage URI of the main Python file to use as the driver.
       * Must be a .py file. The execution args are passed in as a sequence of
       * named process arguments (`--key=value`).
       * 
* * string python_script_file = 102; * * @param value The bytes for pythonScriptFile to set. * @return This builder for chaining. */ public Builder setPythonScriptFileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); driverCase_ = 102; driver_ = value; onChanged(); return this; } /** * * *
       * A reference to a query file. This can be the Cloud Storage URI of the
       * query file or it can the path to a SqlScript Content. The execution
       * args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script_file = 104; * * @return Whether the sqlScriptFile field is set. */ @java.lang.Override public boolean hasSqlScriptFile() { return driverCase_ == 104; } /** * * *
       * A reference to a query file. This can be the Cloud Storage URI of the
       * query file or it can the path to a SqlScript Content. The execution
       * args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script_file = 104; * * @return The sqlScriptFile. */ @java.lang.Override public java.lang.String getSqlScriptFile() { java.lang.Object ref = ""; if (driverCase_ == 104) { ref = driver_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (driverCase_ == 104) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * A reference to a query file. This can be the Cloud Storage URI of the
       * query file or it can the path to a SqlScript Content. The execution
       * args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script_file = 104; * * @return The bytes for sqlScriptFile. */ @java.lang.Override public com.google.protobuf.ByteString getSqlScriptFileBytes() { java.lang.Object ref = ""; if (driverCase_ == 104) { ref = driver_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 104) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * A reference to a query file. This can be the Cloud Storage URI of the
       * query file or it can the path to a SqlScript Content. The execution
       * args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script_file = 104; * * @param value The sqlScriptFile to set. * @return This builder for chaining. */ public Builder setSqlScriptFile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } driverCase_ = 104; driver_ = value; onChanged(); return this; } /** * * *
       * A reference to a query file. This can be the Cloud Storage URI of the
       * query file or it can the path to a SqlScript Content. The execution
       * args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script_file = 104; * * @return This builder for chaining. */ public Builder clearSqlScriptFile() { if (driverCase_ == 104) { driverCase_ = 0; driver_ = null; onChanged(); } return this; } /** * * *
       * A reference to a query file. This can be the Cloud Storage URI of the
       * query file or it can the path to a SqlScript Content. The execution
       * args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script_file = 104; * * @param value The bytes for sqlScriptFile to set. * @return This builder for chaining. */ public Builder setSqlScriptFileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); driverCase_ = 104; driver_ = value; onChanged(); return this; } /** * * *
       * The query text.
       * The execution args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script = 105; * * @return Whether the sqlScript field is set. */ @java.lang.Override public boolean hasSqlScript() { return driverCase_ == 105; } /** * * *
       * The query text.
       * The execution args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script = 105; * * @return The sqlScript. */ @java.lang.Override public java.lang.String getSqlScript() { java.lang.Object ref = ""; if (driverCase_ == 105) { ref = driver_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (driverCase_ == 105) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The query text.
       * The execution args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script = 105; * * @return The bytes for sqlScript. */ @java.lang.Override public com.google.protobuf.ByteString getSqlScriptBytes() { java.lang.Object ref = ""; if (driverCase_ == 105) { ref = driver_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (driverCase_ == 105) { driver_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The query text.
       * The execution args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script = 105; * * @param value The sqlScript to set. * @return This builder for chaining. */ public Builder setSqlScript(java.lang.String value) { if (value == null) { throw new NullPointerException(); } driverCase_ = 105; driver_ = value; onChanged(); return this; } /** * * *
       * The query text.
       * The execution args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script = 105; * * @return This builder for chaining. */ public Builder clearSqlScript() { if (driverCase_ == 105) { driverCase_ = 0; driver_ = null; onChanged(); } return this; } /** * * *
       * The query text.
       * The execution args are used to declare a set of script variables
       * (`set key="value";`).
       * 
* * string sql_script = 105; * * @param value The bytes for sqlScript to set. * @return This builder for chaining. */ public Builder setSqlScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); driverCase_ = 105; driver_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFileUrisIsMutable() { if (!fileUris_.isModifiable()) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); } bitField0_ |= 0x00000020; } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the fileUris. */ public com.google.protobuf.ProtocolStringList getFileUrisList() { fileUris_.makeImmutable(); return fileUris_; } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.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. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.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. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.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); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.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); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.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_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearFileUris() { fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); ; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage URIs of files to be placed in the working
       * directory of each executor.
       * 
* * repeated string file_uris = 3 [(.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); bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureArchiveUrisIsMutable() { if (!archiveUris_.isModifiable()) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); } bitField0_ |= 0x00000040; } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the archiveUris. */ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { archiveUris_.makeImmutable(); return archiveUris_; } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.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. Cloud Storage 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 = 4 [(.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. Cloud Storage 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 = 4 [(.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); bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.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); bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.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_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearArchiveUris() { archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); ; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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 = 4 [(.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); bitField0_ |= 0x00000040; 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 = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the infrastructureSpec field is set. */ public boolean hasInfrastructureSpec() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
       * Optional. Infrastructure specification for the execution.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.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 = 6 [(.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; } else { infrastructureSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * Optional. Infrastructure specification for the execution.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setInfrastructureSpec( com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder builderForValue) { if (infrastructureSpecBuilder_ == null) { infrastructureSpec_ = builderForValue.build(); } else { infrastructureSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * Optional. Infrastructure specification for the execution.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeInfrastructureSpec( com.google.cloud.dataplex.v1.Task.InfrastructureSpec value) { if (infrastructureSpecBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && infrastructureSpec_ != null && infrastructureSpec_ != com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance()) { getInfrastructureSpecBuilder().mergeFrom(value); } else { infrastructureSpec_ = value; } } else { infrastructureSpecBuilder_.mergeFrom(value); } if (infrastructureSpec_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
       * Optional. Infrastructure specification for the execution.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearInfrastructureSpec() { bitField0_ = (bitField0_ & ~0x00000080); infrastructureSpec_ = null; if (infrastructureSpecBuilder_ != null) { infrastructureSpecBuilder_.dispose(); infrastructureSpecBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. Infrastructure specification for the execution.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder getInfrastructureSpecBuilder() { bitField0_ |= 0x00000080; onChanged(); return getInfrastructureSpecFieldBuilder().getBuilder(); } /** * * *
       * Optional. Infrastructure specification for the execution.
       * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.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 = 6 [(.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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.SparkTaskConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.SparkTaskConfig) private static final com.google.cloud.dataplex.v1.Task.SparkTaskConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.SparkTaskConfig(); } public static com.google.cloud.dataplex.v1.Task.SparkTaskConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SparkTaskConfig 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.SparkTaskConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NotebookTaskConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.NotebookTaskConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. Path to input notebook. This can be the Cloud Storage 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.String getNotebook(); /** * * *
     * Required. Path to input notebook. This can be the Cloud Storage 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. */ com.google.protobuf.ByteString getNotebookBytes(); /** * * *
     * 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. */ boolean hasInfrastructureSpec(); /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The infrastructureSpec. */ com.google.cloud.dataplex.v1.Task.InfrastructureSpec getInfrastructureSpec(); /** * * *
     * Optional. Infrastructure specification for the execution.
     * 
* * * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder getInfrastructureSpecOrBuilder(); /** * * *
     * Optional. Cloud Storage 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. */ java.util.List getFileUrisList(); /** * * *
     * Optional. Cloud Storage 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. */ int getFileUrisCount(); /** * * *
     * Optional. Cloud Storage 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. */ java.lang.String getFileUris(int index); /** * * *
     * Optional. Cloud Storage 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. */ com.google.protobuf.ByteString getFileUrisBytes(int index); /** * * *
     * Optional. Cloud Storage 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. */ java.util.List getArchiveUrisList(); /** * * *
     * Optional. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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); } /** * * *
   * Config for running scheduled notebooks.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.NotebookTaskConfig} */ public static final class NotebookTaskConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.NotebookTaskConfig) NotebookTaskConfigOrBuilder { private static final long serialVersionUID = 0L; // Use NotebookTaskConfig.newBuilder() to construct. private NotebookTaskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NotebookTaskConfig() { notebook_ = ""; fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NotebookTaskConfig(); } 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); } private int bitField0_; public static final int NOTEBOOK_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object notebook_ = ""; /** * * *
     * Required. Path to input notebook. This can be the Cloud Storage 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 Cloud Storage 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 ((bitField0_ & 0x00000001) != 0); } /** * * *
     * 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 infrastructureSpec_ == null ? com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance() : infrastructureSpec_; } public static final int FILE_URIS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Optional. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Optional. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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 (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000001) != 0)) { 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() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInfrastructureSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; notebook_ = ""; infrastructureSpec_ = null; if (infrastructureSpecBuilder_ != null) { infrastructureSpecBuilder_.dispose(); infrastructureSpecBuilder_ = null; } fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task.NotebookTaskConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.notebook_ = notebook_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.infrastructureSpec_ = infrastructureSpecBuilder_ == null ? infrastructureSpec_ : infrastructureSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { fileUris_.makeImmutable(); result.fileUris_ = fileUris_; } if (((from_bitField0_ & 0x00000008) != 0)) { archiveUris_.makeImmutable(); result.archiveUris_ = archiveUris_; } result.bitField0_ |= to_bitField0_; } @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_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasInfrastructureSpec()) { mergeInfrastructureSpec(other.getInfrastructureSpec()); } if (!other.fileUris_.isEmpty()) { if (fileUris_.isEmpty()) { fileUris_ = other.fileUris_; bitField0_ |= 0x00000004; } else { ensureFileUrisIsMutable(); fileUris_.addAll(other.fileUris_); } onChanged(); } if (!other.archiveUris_.isEmpty()) { if (archiveUris_.isEmpty()) { archiveUris_ = other.archiveUris_; bitField0_ |= 0x00000008; } 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); bitField0_ |= 0x00000002; break; } // case 26 case 34: { notebook_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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 Cloud Storage 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 Cloud Storage 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 Cloud Storage 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Required. Path to input notebook. This can be the Cloud Storage 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(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Required. Path to input notebook. This can be the Cloud Storage 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; bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * * *
       * 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; } else { infrastructureSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { infrastructureSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && infrastructureSpec_ != null && infrastructureSpec_ != com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance()) { getInfrastructureSpecBuilder().mergeFrom(value); } else { infrastructureSpec_ = value; } } else { infrastructureSpecBuilder_.mergeFrom(value); } if (infrastructureSpec_ != null) { bitField0_ |= 0x00000002; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000002); infrastructureSpec_ = null; if (infrastructureSpecBuilder_ != null) { infrastructureSpecBuilder_.dispose(); infrastructureSpecBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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.LazyStringArrayList fileUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFileUrisIsMutable() { if (!fileUris_.isModifiable()) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); } bitField0_ |= 0x00000004; } /** * * *
       * Optional. Cloud Storage 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() { fileUris_.makeImmutable(); return fileUris_; } /** * * *
       * Optional. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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); bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList archiveUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureArchiveUrisIsMutable() { if (!archiveUris_.isModifiable()) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); } bitField0_ |= 0x00000008; } /** * * *
       * Optional. Cloud Storage 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() { archiveUris_.makeImmutable(); return archiveUris_; } /** * * *
       * Optional. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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. Cloud Storage 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); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; } /** * * *
       * Optional. Cloud Storage 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); bitField0_ |= 0x00000008; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_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_ExecutionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.ExecutionStatus.class, com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder.class); } private int bitField0_; public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** * * *
     * 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. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Output only. Last update time of the status.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
     * Output only. Last update time of the status.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LATEST_JOB_FIELD_NUMBER = 9; private com.google.cloud.dataplex.v1.Job latestJob_; /** * * *
     * 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. */ @java.lang.Override public boolean hasLatestJob() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. latest job execution
     * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The latestJob. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job getLatestJob() { return latestJob_ == null ? com.google.cloud.dataplex.v1.Job.getDefaultInstance() : latestJob_; } /** * * *
     * Output only. latest job execution
     * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.JobOrBuilder getLatestJobOrBuilder() { return latestJob_ == null ? com.google.cloud.dataplex.v1.Job.getDefaultInstance() : latestJob_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getUpdateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getLatestJob()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getLatestJob()); } 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.ExecutionStatus)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task.ExecutionStatus other = (com.google.cloud.dataplex.v1.Task.ExecutionStatus) obj; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasLatestJob() != other.hasLatestJob()) return false; if (hasLatestJob()) { if (!getLatestJob().equals(other.getLatestJob())) 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(); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (hasLatestJob()) { hash = (37 * hash) + LATEST_JOB_FIELD_NUMBER; hash = (53 * hash) + getLatestJob().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task.ExecutionStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.ExecutionStatus 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.ExecutionStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.ExecutionStatus 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.ExecutionStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task.ExecutionStatus 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.ExecutionStatus 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.ExecutionStatus 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.ExecutionStatus 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.ExecutionStatus 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.ExecutionStatus 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.ExecutionStatus 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.ExecutionStatus 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; } /** * * *
     * Status of the task execution (e.g. Jobs).
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task.ExecutionStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.ExecutionStatus) com.google.cloud.dataplex.v1.Task.ExecutionStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_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_ExecutionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.ExecutionStatus.class, com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Task.ExecutionStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUpdateTimeFieldBuilder(); getLatestJobFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } latestJob_ = null; if (latestJobBuilder_ != null) { latestJobBuilder_.dispose(); latestJobBuilder_ = null; } 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_ExecutionStatus_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionStatus getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionStatus build() { com.google.cloud.dataplex.v1.Task.ExecutionStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionStatus buildPartial() { com.google.cloud.dataplex.v1.Task.ExecutionStatus result = new com.google.cloud.dataplex.v1.Task.ExecutionStatus(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task.ExecutionStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.latestJob_ = latestJobBuilder_ == null ? latestJob_ : latestJobBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.ExecutionStatus) { return mergeFrom((com.google.cloud.dataplex.v1.Task.ExecutionStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.ExecutionStatus other) { if (other == com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance()) return this; if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (other.hasLatestJob()) { mergeLatestJob(other.getLatestJob()); } 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(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 26 case 74: { input.readMessage(getLatestJobFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; 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) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
       * 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. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000001); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
       * Output only. Last update time of the status.
       * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private com.google.cloud.dataplex.v1.Job latestJob_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Job, com.google.cloud.dataplex.v1.Job.Builder, com.google.cloud.dataplex.v1.JobOrBuilder> latestJobBuilder_; /** * * *
       * 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. */ public boolean hasLatestJob() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The latestJob. */ public com.google.cloud.dataplex.v1.Job getLatestJob() { if (latestJobBuilder_ == null) { return latestJob_ == null ? com.google.cloud.dataplex.v1.Job.getDefaultInstance() : latestJob_; } else { return latestJobBuilder_.getMessage(); } } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setLatestJob(com.google.cloud.dataplex.v1.Job value) { if (latestJobBuilder_ == null) { if (value == null) { throw new NullPointerException(); } latestJob_ = value; } else { latestJobBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setLatestJob(com.google.cloud.dataplex.v1.Job.Builder builderForValue) { if (latestJobBuilder_ == null) { latestJob_ = builderForValue.build(); } else { latestJobBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeLatestJob(com.google.cloud.dataplex.v1.Job value) { if (latestJobBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && latestJob_ != null && latestJob_ != com.google.cloud.dataplex.v1.Job.getDefaultInstance()) { getLatestJobBuilder().mergeFrom(value); } else { latestJob_ = value; } } else { latestJobBuilder_.mergeFrom(value); } if (latestJob_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearLatestJob() { bitField0_ = (bitField0_ & ~0x00000002); latestJob_ = null; if (latestJobBuilder_ != null) { latestJobBuilder_.dispose(); latestJobBuilder_ = null; } onChanged(); return this; } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Job.Builder getLatestJobBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLatestJobFieldBuilder().getBuilder(); } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.JobOrBuilder getLatestJobOrBuilder() { if (latestJobBuilder_ != null) { return latestJobBuilder_.getMessageOrBuilder(); } else { return latestJob_ == null ? com.google.cloud.dataplex.v1.Job.getDefaultInstance() : latestJob_; } } /** * * *
       * Output only. latest job execution
       * 
* * * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Job, com.google.cloud.dataplex.v1.Job.Builder, com.google.cloud.dataplex.v1.JobOrBuilder> getLatestJobFieldBuilder() { if (latestJobBuilder_ == null) { latestJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Job, com.google.cloud.dataplex.v1.Job.Builder, com.google.cloud.dataplex.v1.JobOrBuilder>( getLatestJob(), getParentForChildren(), isClean()); latestJob_ = null; } return latestJobBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.ExecutionStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.ExecutionStatus) private static final com.google.cloud.dataplex.v1.Task.ExecutionStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.ExecutionStatus(); } public static com.google.cloud.dataplex.v1.Task.ExecutionStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecutionStatus 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.ExecutionStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int configCase_ = 0; @SuppressWarnings("serial") private java.lang.Object config_; public enum ConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPARK(300), NOTEBOOK(302), CONFIG_NOT_SET(0); private final int value; private ConfigCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConfigCase valueOf(int value) { return forNumber(value); } public static ConfigCase forNumber(int value) { switch (value) { case 300: return SPARK; case 302: return NOTEBOOK; case 0: return CONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ConfigCase getConfigCase() { return ConfigCase.forNumber(configCase_); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. The relative resource name of the task, of the form:
   * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
   * tasks/{task_id}.
   * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Output only. The relative resource name of the task, of the form:
   * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
   * tasks/{task_id}.
   * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** * * *
   * Output only. System generated globally unique ID for the task. This ID will
   * be different if the task is deleted and re-created with the same name.
   * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ @java.lang.Override public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; } } /** * * *
   * Output only. System generated globally unique ID for the task. This ID will
   * be different if the task is deleted and re-created with the same name.
   * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uid. */ @java.lang.Override public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. The time when the task was created.
   * 
* * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. The time when the task was created.
   * 
* * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. The time when the task was created.
   * 
* * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The time when the task was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The time when the task was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. The time when the task was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DESCRIPTION_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Optional. Description of the task.
   * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * Optional. Description of the task.
   * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
   * Optional. User friendly display name.
   * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
   * Optional. User friendly display name.
   * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 7; private int state_ = 0; /** * * *
   * Output only. Current state of the task.
   * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. Current state of the task.
   * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.dataplex.v1.State getState() { com.google.cloud.dataplex.v1.State result = com.google.cloud.dataplex.v1.State.forNumber(state_); return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 8; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Optional. User-defined labels for the task.
   * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Optional. User-defined labels for the task.
   * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Optional. User-defined labels for the task.
   * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Optional. User-defined labels for the task.
   * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TRIGGER_SPEC_FIELD_NUMBER = 100; private com.google.cloud.dataplex.v1.Task.TriggerSpec triggerSpec_; /** * * *
   * Required. Spec related to how often and when a task should be triggered.
   * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the triggerSpec field is set. */ @java.lang.Override public boolean hasTriggerSpec() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Required. Spec related to how often and when a task should be triggered.
   * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * * * @return The triggerSpec. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpec getTriggerSpec() { return triggerSpec_ == null ? com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance() : triggerSpec_; } /** * * *
   * Required. Spec related to how often and when a task should be triggered.
   * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.TriggerSpecOrBuilder getTriggerSpecOrBuilder() { return triggerSpec_ == null ? com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance() : triggerSpec_; } public static final int EXECUTION_SPEC_FIELD_NUMBER = 101; private com.google.cloud.dataplex.v1.Task.ExecutionSpec executionSpec_; /** * * *
   * Required. Spec related to how a task is executed.
   * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the executionSpec field is set. */ @java.lang.Override public boolean hasExecutionSpec() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Required. Spec related to how a task is executed.
   * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * * * @return The executionSpec. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpec getExecutionSpec() { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } /** * * *
   * Required. Spec related to how a task is executed.
   * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder getExecutionSpecOrBuilder() { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } public static final int EXECUTION_STATUS_FIELD_NUMBER = 201; private com.google.cloud.dataplex.v1.Task.ExecutionStatus executionStatus_; /** * * *
   * Output only. Status of the latest task executions.
   * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the executionStatus field is set. */ @java.lang.Override public boolean hasExecutionStatus() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Output only. Status of the latest task executions.
   * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The executionStatus. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionStatus getExecutionStatus() { return executionStatus_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance() : executionStatus_; } /** * * *
   * Output only. Status of the latest task executions.
   * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionStatusOrBuilder getExecutionStatusOrBuilder() { return executionStatus_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance() : executionStatus_; } public static final int SPARK_FIELD_NUMBER = 300; /** * * *
   * Config related to running custom Spark tasks.
   * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; * * @return Whether the spark field is set. */ @java.lang.Override public boolean hasSpark() { return configCase_ == 300; } /** * * *
   * Config related to running custom Spark tasks.
   * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; * * @return The spark. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfig getSpark() { if (configCase_ == 300) { return (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_; } return com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance(); } /** * * *
   * Config related to running custom Spark tasks.
   * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder getSparkOrBuilder() { if (configCase_ == 300) { return (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_; } 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 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); } if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(100, getTriggerSpec()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(101, getExecutionSpec()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(201, getExecutionStatus()); } if (configCase_ == 300) { output.writeMessage(300, (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_); } if (configCase_ == 302) { output.writeMessage(302, (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); } if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getTriggerSpec()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(101, getExecutionSpec()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(201, getExecutionStatus()); } if (configCase_ == 300) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 300, (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_); } 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; } @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)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Task other = (com.google.cloud.dataplex.v1.Task) obj; if (!getName().equals(other.getName())) return false; if (!getUid().equals(other.getUid())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getDescription().equals(other.getDescription())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasTriggerSpec() != other.hasTriggerSpec()) return false; if (hasTriggerSpec()) { if (!getTriggerSpec().equals(other.getTriggerSpec())) return false; } if (hasExecutionSpec() != other.hasExecutionSpec()) return false; if (hasExecutionSpec()) { if (!getExecutionSpec().equals(other.getExecutionSpec())) return false; } if (hasExecutionStatus() != other.hasExecutionStatus()) return false; if (hasExecutionStatus()) { if (!getExecutionStatus().equals(other.getExecutionStatus())) return false; } if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 300: if (!getSpark().equals(other.getSpark())) return false; break; case 302: if (!getNotebook().equals(other.getNotebook())) return false; break; case 0: default: } 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasTriggerSpec()) { hash = (37 * hash) + TRIGGER_SPEC_FIELD_NUMBER; hash = (53 * hash) + getTriggerSpec().hashCode(); } if (hasExecutionSpec()) { hash = (37 * hash) + EXECUTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getExecutionSpec().hashCode(); } if (hasExecutionStatus()) { hash = (37 * hash) + EXECUTION_STATUS_FIELD_NUMBER; hash = (53 * hash) + getExecutionStatus().hashCode(); } switch (configCase_) { case 300: 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Task parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task 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 parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Task 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 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 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 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 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 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 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 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A task represents a user-visible job.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Task} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task) com.google.cloud.dataplex.v1.TaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 8: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 8: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Task.class, com.google.cloud.dataplex.v1.Task.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Task.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getTriggerSpecFieldBuilder(); getExecutionSpecFieldBuilder(); getExecutionStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; uid_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } description_ = ""; displayName_ = ""; state_ = 0; internalGetMutableLabels().clear(); triggerSpec_ = null; if (triggerSpecBuilder_ != null) { triggerSpecBuilder_.dispose(); triggerSpecBuilder_ = null; } executionSpec_ = null; if (executionSpecBuilder_ != null) { executionSpecBuilder_.dispose(); executionSpecBuilder_ = null; } executionStatus_ = null; if (executionStatusBuilder_ != null) { executionStatusBuilder_.dispose(); executionStatusBuilder_ = null; } if (sparkBuilder_ != null) { sparkBuilder_.clear(); } if (notebookBuilder_ != null) { notebookBuilder_.clear(); } configCase_ = 0; config_ = null; 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_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Task getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Task.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Task build() { com.google.cloud.dataplex.v1.Task result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Task buildPartial() { com.google.cloud.dataplex.v1.Task result = new com.google.cloud.dataplex.v1.Task(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Task result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.uid_ = uid_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.triggerSpec_ = triggerSpecBuilder_ == null ? triggerSpec_ : triggerSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { result.executionSpec_ = executionSpecBuilder_ == null ? executionSpec_ : executionSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000400) != 0)) { result.executionStatus_ = executionStatusBuilder_ == null ? executionStatus_ : executionStatusBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataplex.v1.Task result) { result.configCase_ = configCase_; result.config_ = this.config_; if (configCase_ == 300 && sparkBuilder_ != null) { result.config_ = sparkBuilder_.build(); } if (configCase_ == 302 && notebookBuilder_ != null) { result.config_ = notebookBuilder_.build(); } } @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) { return mergeFrom((com.google.cloud.dataplex.v1.Task) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Task other) { if (other == com.google.cloud.dataplex.v1.Task.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000020; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; if (other.hasTriggerSpec()) { mergeTriggerSpec(other.getTriggerSpec()); } if (other.hasExecutionSpec()) { mergeExecutionSpec(other.getExecutionSpec()); } if (other.hasExecutionStatus()) { mergeExecutionStatus(other.getExecutionStatus()); } switch (other.getConfigCase()) { case SPARK: { mergeSpark(other.getSpark()); break; } case NOTEBOOK: { mergeNotebook(other.getNotebook()); break; } case CONFIG_NOT_SET: { break; } } 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 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { uid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { state_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000080; break; } // case 66 case 802: { input.readMessage(getTriggerSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 802 case 810: { input.readMessage(getExecutionSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 810 case 1610: { input.readMessage(getExecutionStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; 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) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int configCase_ = 0; private java.lang.Object config_; public ConfigCase getConfigCase() { return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { configCase_ = 0; config_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Output only. The relative resource name of the task, of the form:
     * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
     * tasks/{task_id}.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The relative resource name of the task, of the form:
     * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
     * tasks/{task_id}.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The relative resource name of the task, of the form:
     * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
     * tasks/{task_id}.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. The relative resource name of the task, of the form:
     * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
     * tasks/{task_id}.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The relative resource name of the task, of the form:
     * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
     * tasks/{task_id}.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object uid_ = ""; /** * * *
     * Output only. System generated globally unique ID for the task. This ID will
     * be different if the task is deleted and re-created with the same name.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. System generated globally unique ID for the task. This ID will
     * be different if the task is deleted and re-created with the same name.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uid. */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. System generated globally unique ID for the task. This ID will
     * be different if the task is deleted and re-created with the same name.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The uid to set. * @return This builder for chaining. */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. System generated globally unique ID for the task. This ID will
     * be different if the task is deleted and re-created with the same name.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Output only. System generated globally unique ID for the task. This ID will
     * be different if the task is deleted and re-created with the same name.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for uid to set. * @return This builder for chaining. */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. The time when the task was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. The time when the task was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private java.lang.Object description_ = ""; /** * * *
     * Optional. Description of the task.
     * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Description of the task.
     * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Description of the task.
     * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Description of the task.
     * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Optional. Description of the task.
     * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int state_ = 0; /** * * *
     * Output only. Current state of the task.
     * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. Current state of the task.
     * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. Current state of the task.
     * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.dataplex.v1.State getState() { com.google.cloud.dataplex.v1.State result = com.google.cloud.dataplex.v1.State.forNumber(state_); return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result; } /** * * *
     * Output only. Current state of the task.
     * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.dataplex.v1.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Current state of the task.
     * 
* * .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; onChanged(); return this; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000080; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** * * *
     * Optional. User-defined labels for the task.
     * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } private com.google.cloud.dataplex.v1.Task.TriggerSpec triggerSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.TriggerSpec, com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder, com.google.cloud.dataplex.v1.Task.TriggerSpecOrBuilder> triggerSpecBuilder_; /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the triggerSpec field is set. */ public boolean hasTriggerSpec() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * * * @return The triggerSpec. */ public com.google.cloud.dataplex.v1.Task.TriggerSpec getTriggerSpec() { if (triggerSpecBuilder_ == null) { return triggerSpec_ == null ? com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance() : triggerSpec_; } else { return triggerSpecBuilder_.getMessage(); } } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setTriggerSpec(com.google.cloud.dataplex.v1.Task.TriggerSpec value) { if (triggerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } triggerSpec_ = value; } else { triggerSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setTriggerSpec( com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder builderForValue) { if (triggerSpecBuilder_ == null) { triggerSpec_ = builderForValue.build(); } else { triggerSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeTriggerSpec(com.google.cloud.dataplex.v1.Task.TriggerSpec value) { if (triggerSpecBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && triggerSpec_ != null && triggerSpec_ != com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance()) { getTriggerSpecBuilder().mergeFrom(value); } else { triggerSpec_ = value; } } else { triggerSpecBuilder_.mergeFrom(value); } if (triggerSpec_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearTriggerSpec() { bitField0_ = (bitField0_ & ~0x00000100); triggerSpec_ = null; if (triggerSpecBuilder_ != null) { triggerSpecBuilder_.dispose(); triggerSpecBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder getTriggerSpecBuilder() { bitField0_ |= 0x00000100; onChanged(); return getTriggerSpecFieldBuilder().getBuilder(); } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Task.TriggerSpecOrBuilder getTriggerSpecOrBuilder() { if (triggerSpecBuilder_ != null) { return triggerSpecBuilder_.getMessageOrBuilder(); } else { return triggerSpec_ == null ? com.google.cloud.dataplex.v1.Task.TriggerSpec.getDefaultInstance() : triggerSpec_; } } /** * * *
     * Required. Spec related to how often and when a task should be triggered.
     * 
* * * .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.TriggerSpec, com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder, com.google.cloud.dataplex.v1.Task.TriggerSpecOrBuilder> getTriggerSpecFieldBuilder() { if (triggerSpecBuilder_ == null) { triggerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.TriggerSpec, com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder, com.google.cloud.dataplex.v1.Task.TriggerSpecOrBuilder>( getTriggerSpec(), getParentForChildren(), isClean()); triggerSpec_ = null; } return triggerSpecBuilder_; } private com.google.cloud.dataplex.v1.Task.ExecutionSpec executionSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionSpec, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder, com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder> executionSpecBuilder_; /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the executionSpec field is set. */ public boolean hasExecutionSpec() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * * * @return The executionSpec. */ public com.google.cloud.dataplex.v1.Task.ExecutionSpec getExecutionSpec() { if (executionSpecBuilder_ == null) { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } else { return executionSpecBuilder_.getMessage(); } } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setExecutionSpec(com.google.cloud.dataplex.v1.Task.ExecutionSpec value) { if (executionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionSpec_ = value; } else { executionSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setExecutionSpec( com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder builderForValue) { if (executionSpecBuilder_ == null) { executionSpec_ = builderForValue.build(); } else { executionSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeExecutionSpec(com.google.cloud.dataplex.v1.Task.ExecutionSpec value) { if (executionSpecBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && executionSpec_ != null && executionSpec_ != com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance()) { getExecutionSpecBuilder().mergeFrom(value); } else { executionSpec_ = value; } } else { executionSpecBuilder_.mergeFrom(value); } if (executionSpec_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearExecutionSpec() { bitField0_ = (bitField0_ & ~0x00000200); executionSpec_ = null; if (executionSpecBuilder_ != null) { executionSpecBuilder_.dispose(); executionSpecBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder getExecutionSpecBuilder() { bitField0_ |= 0x00000200; onChanged(); return getExecutionSpecFieldBuilder().getBuilder(); } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder getExecutionSpecOrBuilder() { if (executionSpecBuilder_ != null) { return executionSpecBuilder_.getMessageOrBuilder(); } else { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } } /** * * *
     * Required. Spec related to how a task is executed.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionSpec, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder, com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder> getExecutionSpecFieldBuilder() { if (executionSpecBuilder_ == null) { executionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionSpec, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder, com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder>( getExecutionSpec(), getParentForChildren(), isClean()); executionSpec_ = null; } return executionSpecBuilder_; } private com.google.cloud.dataplex.v1.Task.ExecutionStatus executionStatus_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionStatus, com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder, com.google.cloud.dataplex.v1.Task.ExecutionStatusOrBuilder> executionStatusBuilder_; /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the executionStatus field is set. */ public boolean hasExecutionStatus() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The executionStatus. */ public com.google.cloud.dataplex.v1.Task.ExecutionStatus getExecutionStatus() { if (executionStatusBuilder_ == null) { return executionStatus_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance() : executionStatus_; } else { return executionStatusBuilder_.getMessage(); } } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setExecutionStatus(com.google.cloud.dataplex.v1.Task.ExecutionStatus value) { if (executionStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionStatus_ = value; } else { executionStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setExecutionStatus( com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder builderForValue) { if (executionStatusBuilder_ == null) { executionStatus_ = builderForValue.build(); } else { executionStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeExecutionStatus(com.google.cloud.dataplex.v1.Task.ExecutionStatus value) { if (executionStatusBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && executionStatus_ != null && executionStatus_ != com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance()) { getExecutionStatusBuilder().mergeFrom(value); } else { executionStatus_ = value; } } else { executionStatusBuilder_.mergeFrom(value); } if (executionStatus_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearExecutionStatus() { bitField0_ = (bitField0_ & ~0x00000400); executionStatus_ = null; if (executionStatusBuilder_ != null) { executionStatusBuilder_.dispose(); executionStatusBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder getExecutionStatusBuilder() { bitField0_ |= 0x00000400; onChanged(); return getExecutionStatusFieldBuilder().getBuilder(); } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Task.ExecutionStatusOrBuilder getExecutionStatusOrBuilder() { if (executionStatusBuilder_ != null) { return executionStatusBuilder_.getMessageOrBuilder(); } else { return executionStatus_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionStatus.getDefaultInstance() : executionStatus_; } } /** * * *
     * Output only. Status of the latest task executions.
     * 
* * * .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionStatus, com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder, com.google.cloud.dataplex.v1.Task.ExecutionStatusOrBuilder> getExecutionStatusFieldBuilder() { if (executionStatusBuilder_ == null) { executionStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionStatus, com.google.cloud.dataplex.v1.Task.ExecutionStatus.Builder, com.google.cloud.dataplex.v1.Task.ExecutionStatusOrBuilder>( getExecutionStatus(), getParentForChildren(), isClean()); executionStatus_ = null; } return executionStatusBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.SparkTaskConfig, com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder, com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder> sparkBuilder_; /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; * * @return Whether the spark field is set. */ @java.lang.Override public boolean hasSpark() { return configCase_ == 300; } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; * * @return The spark. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfig getSpark() { if (sparkBuilder_ == null) { if (configCase_ == 300) { return (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_; } return com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance(); } else { if (configCase_ == 300) { return sparkBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance(); } } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ public Builder setSpark(com.google.cloud.dataplex.v1.Task.SparkTaskConfig value) { if (sparkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { sparkBuilder_.setMessage(value); } configCase_ = 300; return this; } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ public Builder setSpark( com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder builderForValue) { if (sparkBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { sparkBuilder_.setMessage(builderForValue.build()); } configCase_ = 300; return this; } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ public Builder mergeSpark(com.google.cloud.dataplex.v1.Task.SparkTaskConfig value) { if (sparkBuilder_ == null) { if (configCase_ == 300 && config_ != com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance()) { config_ = com.google.cloud.dataplex.v1.Task.SparkTaskConfig.newBuilder( (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_) .mergeFrom(value) .buildPartial(); } else { config_ = value; } onChanged(); } else { if (configCase_ == 300) { sparkBuilder_.mergeFrom(value); } else { sparkBuilder_.setMessage(value); } } configCase_ = 300; return this; } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ public Builder clearSpark() { if (sparkBuilder_ == null) { if (configCase_ == 300) { configCase_ = 0; config_ = null; onChanged(); } } else { if (configCase_ == 300) { configCase_ = 0; config_ = null; } sparkBuilder_.clear(); } return this; } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ public com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder getSparkBuilder() { return getSparkFieldBuilder().getBuilder(); } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder getSparkOrBuilder() { if ((configCase_ == 300) && (sparkBuilder_ != null)) { return sparkBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 300) { return (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_; } return com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance(); } } /** * * *
     * Config related to running custom Spark tasks.
     * 
* * .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.SparkTaskConfig, com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder, com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder> getSparkFieldBuilder() { if (sparkBuilder_ == null) { if (!(configCase_ == 300)) { config_ = com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance(); } sparkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.SparkTaskConfig, com.google.cloud.dataplex.v1.Task.SparkTaskConfig.Builder, com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder>( (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_, getParentForChildren(), isClean()); config_ = null; } configCase_ = 300; onChanged(); 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); } @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) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task) private static final com.google.cloud.dataplex.v1.Task DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task(); } public static com.google.cloud.dataplex.v1.Task getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Task 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy