Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.
*
* 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]
*
* 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. 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
*
* 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).
*
* 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).
*
* 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_ = "";
/**
*
*
*
*
* 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
*
* 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
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
*
* .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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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}`.
*
* 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}`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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}`.
*
* 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}`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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}`.
*
* 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}`.
*
* 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}`.
*
* 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`).
*
* 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`).
*
* 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`).
*
* 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";`).
*
* 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";`).
*
* 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.
*
* 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`).
*
* 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`).
*
* 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`).
*
* 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";`).
*
* 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";`).
*
* 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.
*
* 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`).
*
* 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`).
*
* 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`).
*
* 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";`).
*
* 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";`).
*
* 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.
*
* 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.
*
* 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.
*
* 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`).
*
* 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`).
*
* 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`).
*
* 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.
*
* 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`).
*
* 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`).
*
* 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`).
*
* 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.
*
* 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.
*
* 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.
*
* 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();
/**
*
*
*
*
*
* .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}.
*
* 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.
*
* 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.
*
*
* 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();
}
/**
*
*
*
* 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}.
*
* 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}.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
*
* 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();
}
/**
*
*
*