com.google.cloud.dataform.v1alpha2.CompilationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dataform-v1alpha2 Show documentation
Show all versions of proto-google-cloud-dataform-v1alpha2 Show documentation
Proto library for google-cloud-dataform
The newest version!
/*
* 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/dataform/v1alpha2/dataform.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.dataform.v1alpha2;
/**
*
*
*
* Represents the result of compiling a Dataform project.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult}
*/
public final class CompilationResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResult)
CompilationResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompilationResult.newBuilder() to construct.
private CompilationResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompilationResult() {
name_ = "";
dataformCoreVersion_ = "";
compilationErrors_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CompilationResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.CompilationResult.class,
com.google.cloud.dataform.v1alpha2.CompilationResult.Builder.class);
}
public interface CodeCompilationConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultDatabase.
*/
java.lang.String getDefaultDatabase();
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultDatabase.
*/
com.google.protobuf.ByteString getDefaultDatabaseBytes();
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultSchema.
*/
java.lang.String getDefaultSchema();
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultSchema.
*/
com.google.protobuf.ByteString getDefaultSchemaBytes();
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultLocation.
*/
java.lang.String getDefaultLocation();
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultLocation.
*/
com.google.protobuf.ByteString getDefaultLocationBytes();
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The assertionSchema.
*/
java.lang.String getAssertionSchema();
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for assertionSchema.
*/
com.google.protobuf.ByteString getAssertionSchemaBytes();
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
int getVarsCount();
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
boolean containsVars(java.lang.String key);
/** Use {@link #getVarsMap()} instead. */
@java.lang.Deprecated
java.util.Map getVars();
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.Map getVarsMap();
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
/* nullable */
java.lang.String getVarsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
java.lang.String getVarsOrThrow(java.lang.String key);
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The databaseSuffix.
*/
java.lang.String getDatabaseSuffix();
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for databaseSuffix.
*/
com.google.protobuf.ByteString getDatabaseSuffixBytes();
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The schemaSuffix.
*/
java.lang.String getSchemaSuffix();
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for schemaSuffix.
*/
com.google.protobuf.ByteString getSchemaSuffixBytes();
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The tablePrefix.
*/
java.lang.String getTablePrefix();
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for tablePrefix.
*/
com.google.protobuf.ByteString getTablePrefixBytes();
}
/**
*
*
*
* Configures various aspects of Dataform code compilation.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig}
*/
public static final class CodeCompilationConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig)
CodeCompilationConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use CodeCompilationConfig.newBuilder() to construct.
private CodeCompilationConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CodeCompilationConfig() {
defaultDatabase_ = "";
defaultSchema_ = "";
defaultLocation_ = "";
assertionSchema_ = "";
databaseSuffix_ = "";
schemaSuffix_ = "";
tablePrefix_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CodeCompilationConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetVars();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.class,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder
.class);
}
public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultDatabase_ = "";
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultDatabase.
*/
@java.lang.Override
public java.lang.String getDefaultDatabase() {
java.lang.Object ref = defaultDatabase_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultDatabase_ = s;
return s;
}
}
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultDatabase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultDatabaseBytes() {
java.lang.Object ref = defaultDatabase_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultDatabase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_SCHEMA_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultSchema_ = "";
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultSchema.
*/
@java.lang.Override
public java.lang.String getDefaultSchema() {
java.lang.Object ref = defaultSchema_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultSchema_ = s;
return s;
}
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultSchema.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultSchemaBytes() {
java.lang.Object ref = defaultSchema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_LOCATION_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultLocation_ = "";
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultLocation.
*/
@java.lang.Override
public java.lang.String getDefaultLocation() {
java.lang.Object ref = defaultLocation_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultLocation_ = s;
return s;
}
}
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultLocationBytes() {
java.lang.Object ref = defaultLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSERTION_SCHEMA_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object assertionSchema_ = "";
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The assertionSchema.
*/
@java.lang.Override
public java.lang.String getAssertionSchema() {
java.lang.Object ref = assertionSchema_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
assertionSchema_ = s;
return s;
}
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for assertionSchema.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAssertionSchemaBytes() {
java.lang.Object ref = assertionSchema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
assertionSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VARS_FIELD_NUMBER = 4;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField vars_;
private com.google.protobuf.MapField internalGetVars() {
if (vars_ == null) {
return com.google.protobuf.MapField.emptyMapField(VarsDefaultEntryHolder.defaultEntry);
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().getMap().size();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public boolean containsVars(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetVars().getMap().containsKey(key);
}
/** Use {@link #getVarsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVars() {
return getVarsMap();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.Map getVarsMap() {
return internalGetVars().getMap();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public /* nullable */ java.lang.String getVarsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetVars().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.lang.String getVarsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetVars().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DATABASE_SUFFIX_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object databaseSuffix_ = "";
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The databaseSuffix.
*/
@java.lang.Override
public java.lang.String getDatabaseSuffix() {
java.lang.Object ref = databaseSuffix_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
databaseSuffix_ = s;
return s;
}
}
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for databaseSuffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDatabaseSuffixBytes() {
java.lang.Object ref = databaseSuffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
databaseSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEMA_SUFFIX_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object schemaSuffix_ = "";
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The schemaSuffix.
*/
@java.lang.Override
public java.lang.String getSchemaSuffix() {
java.lang.Object ref = schemaSuffix_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schemaSuffix_ = s;
return s;
}
}
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for schemaSuffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSchemaSuffixBytes() {
java.lang.Object ref = schemaSuffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
schemaSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLE_PREFIX_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object tablePrefix_ = "";
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The tablePrefix.
*/
@java.lang.Override
public java.lang.String getTablePrefix() {
java.lang.Object ref = tablePrefix_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tablePrefix_ = s;
return s;
}
}
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for tablePrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTablePrefixBytes() {
java.lang.Object ref = tablePrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
tablePrefix_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultDatabase_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultSchema_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assertionSchema_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assertionSchema_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetVars(), VarsDefaultEntryHolder.defaultEntry, 4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseSuffix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseSuffix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, schemaSuffix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tablePrefix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, defaultLocation_);
}
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(defaultDatabase_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultDatabase_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultSchema_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assertionSchema_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assertionSchema_);
}
for (java.util.Map.Entry entry :
internalGetVars().getMap().entrySet()) {
com.google.protobuf.MapEntry vars__ =
VarsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, vars__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseSuffix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseSuffix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, schemaSuffix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tablePrefix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, defaultLocation_);
}
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig other =
(com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig) obj;
if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false;
if (!getDefaultSchema().equals(other.getDefaultSchema())) return false;
if (!getDefaultLocation().equals(other.getDefaultLocation())) return false;
if (!getAssertionSchema().equals(other.getAssertionSchema())) return false;
if (!internalGetVars().equals(other.internalGetVars())) return false;
if (!getDatabaseSuffix().equals(other.getDatabaseSuffix())) return false;
if (!getSchemaSuffix().equals(other.getSchemaSuffix())) return false;
if (!getTablePrefix().equals(other.getTablePrefix())) 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) + DEFAULT_DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultDatabase().hashCode();
hash = (37 * hash) + DEFAULT_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSchema().hashCode();
hash = (37 * hash) + DEFAULT_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getDefaultLocation().hashCode();
hash = (37 * hash) + ASSERTION_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getAssertionSchema().hashCode();
if (!internalGetVars().getMap().isEmpty()) {
hash = (37 * hash) + VARS_FIELD_NUMBER;
hash = (53 * hash) + internalGetVars().hashCode();
}
hash = (37 * hash) + DATABASE_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseSuffix().hashCode();
hash = (37 * hash) + SCHEMA_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getSchemaSuffix().hashCode();
hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getTablePrefix().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig 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;
}
/**
*
*
*
* Configures various aspects of Dataform code compilation.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig)
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetVars();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableVars();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.class,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder
.class);
}
// Construct using
// com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
defaultDatabase_ = "";
defaultSchema_ = "";
defaultLocation_ = "";
assertionSchema_ = "";
internalGetMutableVars().clear();
databaseSuffix_ = "";
schemaSuffix_ = "";
tablePrefix_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig build() {
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
buildPartial() {
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig result =
new com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.defaultDatabase_ = defaultDatabase_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.defaultSchema_ = defaultSchema_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.defaultLocation_ = defaultLocation_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.assertionSchema_ = assertionSchema_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.vars_ = internalGetVars();
result.vars_.makeImmutable();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.databaseSuffix_ = databaseSuffix_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.schemaSuffix_ = schemaSuffix_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.tablePrefix_ = tablePrefix_;
}
}
@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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig) {
return mergeFrom(
(com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig other) {
if (other
== com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance()) return this;
if (!other.getDefaultDatabase().isEmpty()) {
defaultDatabase_ = other.defaultDatabase_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDefaultSchema().isEmpty()) {
defaultSchema_ = other.defaultSchema_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDefaultLocation().isEmpty()) {
defaultLocation_ = other.defaultLocation_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getAssertionSchema().isEmpty()) {
assertionSchema_ = other.assertionSchema_;
bitField0_ |= 0x00000008;
onChanged();
}
internalGetMutableVars().mergeFrom(other.internalGetVars());
bitField0_ |= 0x00000010;
if (!other.getDatabaseSuffix().isEmpty()) {
databaseSuffix_ = other.databaseSuffix_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getSchemaSuffix().isEmpty()) {
schemaSuffix_ = other.schemaSuffix_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getTablePrefix().isEmpty()) {
tablePrefix_ = other.tablePrefix_;
bitField0_ |= 0x00000080;
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 10:
{
defaultDatabase_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
defaultSchema_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
assertionSchema_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry vars__ =
input.readMessage(
VarsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableVars().getMutableMap().put(vars__.getKey(), vars__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 34
case 42:
{
databaseSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 42
case 50:
{
schemaSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 50
case 58:
{
tablePrefix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 58
case 66:
{
defaultLocation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 66
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 defaultDatabase_ = "";
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultDatabase.
*/
public java.lang.String getDefaultDatabase() {
java.lang.Object ref = defaultDatabase_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultDatabase_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultDatabase.
*/
public com.google.protobuf.ByteString getDefaultDatabaseBytes() {
java.lang.Object ref = defaultDatabase_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultDatabase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The defaultDatabase to set.
* @return This builder for chaining.
*/
public Builder setDefaultDatabase(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultDatabase_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDefaultDatabase() {
defaultDatabase_ = getDefaultInstance().getDefaultDatabase();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. The default database (Google Cloud project ID).
*
*
* string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for defaultDatabase to set.
* @return This builder for chaining.
*/
public Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultDatabase_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object defaultSchema_ = "";
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultSchema.
*/
public java.lang.String getDefaultSchema() {
java.lang.Object ref = defaultSchema_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultSchema_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultSchema.
*/
public com.google.protobuf.ByteString getDefaultSchemaBytes() {
java.lang.Object ref = defaultSchema_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The defaultSchema to set.
* @return This builder for chaining.
*/
public Builder setDefaultSchema(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultSchema_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDefaultSchema() {
defaultSchema_ = getDefaultInstance().getDefaultSchema();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID).
*
*
* string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for defaultSchema to set.
* @return This builder for chaining.
*/
public Builder setDefaultSchemaBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultSchema_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object defaultLocation_ = "";
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The defaultLocation.
*/
public java.lang.String getDefaultLocation() {
java.lang.Object ref = defaultLocation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultLocation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for defaultLocation.
*/
public com.google.protobuf.ByteString getDefaultLocationBytes() {
java.lang.Object ref = defaultLocation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The defaultLocation to set.
* @return This builder for chaining.
*/
public Builder setDefaultLocation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultLocation_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDefaultLocation() {
defaultLocation_ = getDefaultInstance().getDefaultLocation();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Optional. The default BigQuery location to use. Defaults to "US".
* See the BigQuery docs for a full list of locations:
* https://cloud.google.com/bigquery/docs/locations.
*
*
* string default_location = 8 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for defaultLocation to set.
* @return This builder for chaining.
*/
public Builder setDefaultLocationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultLocation_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object assertionSchema_ = "";
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The assertionSchema.
*/
public java.lang.String getAssertionSchema() {
java.lang.Object ref = assertionSchema_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
assertionSchema_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for assertionSchema.
*/
public com.google.protobuf.ByteString getAssertionSchemaBytes() {
java.lang.Object ref = assertionSchema_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
assertionSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The assertionSchema to set.
* @return This builder for chaining.
*/
public Builder setAssertionSchema(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
assertionSchema_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearAssertionSchema() {
assertionSchema_ = getDefaultInstance().getAssertionSchema();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Optional. The default schema (BigQuery dataset ID) for assertions.
*
*
* string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for assertionSchema to set.
* @return This builder for chaining.
*/
public Builder setAssertionSchemaBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
assertionSchema_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.MapField vars_;
private com.google.protobuf.MapField internalGetVars() {
if (vars_ == null) {
return com.google.protobuf.MapField.emptyMapField(VarsDefaultEntryHolder.defaultEntry);
}
return vars_;
}
private com.google.protobuf.MapField
internalGetMutableVars() {
if (vars_ == null) {
vars_ = com.google.protobuf.MapField.newMapField(VarsDefaultEntryHolder.defaultEntry);
}
if (!vars_.isMutable()) {
vars_ = vars_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return vars_;
}
public int getVarsCount() {
return internalGetVars().getMap().size();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public boolean containsVars(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetVars().getMap().containsKey(key);
}
/** Use {@link #getVarsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVars() {
return getVarsMap();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.Map getVarsMap() {
return internalGetVars().getMap();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public /* nullable */ java.lang.String getVarsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetVars().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.lang.String getVarsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetVars().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearVars() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableVars().getMutableMap().clear();
return this;
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeVars(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableVars().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableVars() {
bitField0_ |= 0x00000010;
return internalGetMutableVars().getMutableMap();
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder putVars(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableVars().getMutableMap().put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* Optional. User-defined variables that are made available to project code during
* compilation.
*
*
* map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder putAllVars(java.util.Map values) {
internalGetMutableVars().getMutableMap().putAll(values);
bitField0_ |= 0x00000010;
return this;
}
private java.lang.Object databaseSuffix_ = "";
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The databaseSuffix.
*/
public java.lang.String getDatabaseSuffix() {
java.lang.Object ref = databaseSuffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
databaseSuffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for databaseSuffix.
*/
public com.google.protobuf.ByteString getDatabaseSuffixBytes() {
java.lang.Object ref = databaseSuffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
databaseSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The databaseSuffix to set.
* @return This builder for chaining.
*/
public Builder setDatabaseSuffix(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
databaseSuffix_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDatabaseSuffix() {
databaseSuffix_ = getDefaultInstance().getDatabaseSuffix();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Optional. The suffix that should be appended to all database (Google Cloud project
* ID) names.
*
*
* string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for databaseSuffix to set.
* @return This builder for chaining.
*/
public Builder setDatabaseSuffixBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
databaseSuffix_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object schemaSuffix_ = "";
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The schemaSuffix.
*/
public java.lang.String getSchemaSuffix() {
java.lang.Object ref = schemaSuffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schemaSuffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for schemaSuffix.
*/
public com.google.protobuf.ByteString getSchemaSuffixBytes() {
java.lang.Object ref = schemaSuffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
schemaSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The schemaSuffix to set.
* @return This builder for chaining.
*/
public Builder setSchemaSuffix(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
schemaSuffix_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearSchemaSuffix() {
schemaSuffix_ = getDefaultInstance().getSchemaSuffix();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*
*
* Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
* names.
*
*
* string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for schemaSuffix to set.
* @return This builder for chaining.
*/
public Builder setSchemaSuffixBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
schemaSuffix_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object tablePrefix_ = "";
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The tablePrefix.
*/
public java.lang.String getTablePrefix() {
java.lang.Object ref = tablePrefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tablePrefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for tablePrefix.
*/
public com.google.protobuf.ByteString getTablePrefixBytes() {
java.lang.Object ref = tablePrefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
tablePrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The tablePrefix to set.
* @return This builder for chaining.
*/
public Builder setTablePrefix(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tablePrefix_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearTablePrefix() {
tablePrefix_ = getDefaultInstance().getTablePrefix();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*
*
* Optional. The prefix that should be prepended to all table names.
*
*
* string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for tablePrefix to set.
* @return This builder for chaining.
*/
public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tablePrefix_ = value;
bitField0_ |= 0x00000080;
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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig)
private static final com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig();
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CodeCompilationConfig 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.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompilationErrorOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The message.
*/
java.lang.String getMessage();
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for message.
*/
com.google.protobuf.ByteString getMessageBytes();
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The stack.
*/
java.lang.String getStack();
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for stack.
*/
com.google.protobuf.ByteString getStackBytes();
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The path.
*/
java.lang.String getPath();
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for path.
*/
com.google.protobuf.ByteString getPathBytes();
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the actionTarget field is set.
*/
boolean hasActionTarget();
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The actionTarget.
*/
com.google.cloud.dataform.v1alpha2.Target getActionTarget();
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
com.google.cloud.dataform.v1alpha2.TargetOrBuilder getActionTargetOrBuilder();
}
/**
*
*
*
* An error encountered when attempting to compile a Dataform project.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult.CompilationError}
*/
public static final class CompilationError extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError)
CompilationErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompilationError.newBuilder() to construct.
private CompilationError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompilationError() {
message_ = "";
stack_ = "";
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CompilationError();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.class,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder.class);
}
private int bitField0_;
public static final int MESSAGE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STACK_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object stack_ = "";
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The stack.
*/
@java.lang.Override
public java.lang.String getStack() {
java.lang.Object ref = stack_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stack_ = s;
return s;
}
}
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for stack.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStackBytes() {
java.lang.Object ref = stack_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stack_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTION_TARGET_FIELD_NUMBER = 4;
private com.google.cloud.dataform.v1alpha2.Target actionTarget_;
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the actionTarget field is set.
*/
@java.lang.Override
public boolean hasActionTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The actionTarget.
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.Target getActionTarget() {
return actionTarget_ == null
? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()
: actionTarget_;
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getActionTargetOrBuilder() {
return actionTarget_ == null
? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()
: actionTarget_;
}
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(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stack_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stack_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getActionTarget());
}
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(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stack_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stack_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getActionTarget());
}
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.dataform.v1alpha2.CompilationResult.CompilationError)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError other =
(com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) obj;
if (!getMessage().equals(other.getMessage())) return false;
if (!getStack().equals(other.getStack())) return false;
if (!getPath().equals(other.getPath())) return false;
if (hasActionTarget() != other.hasActionTarget()) return false;
if (hasActionTarget()) {
if (!getActionTarget().equals(other.getActionTarget())) 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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + STACK_FIELD_NUMBER;
hash = (53 * hash) + getStack().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (hasActionTarget()) {
hash = (37 * hash) + ACTION_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getActionTarget().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.dataform.v1alpha2.CompilationResult.CompilationError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.dataform.v1alpha2.CompilationResult.CompilationError parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.dataform.v1alpha2.CompilationResult.CompilationError
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
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.dataform.v1alpha2.CompilationResult.CompilationError parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.dataform.v1alpha2.CompilationResult.CompilationError prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* An error encountered when attempting to compile a Dataform project.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult.CompilationError}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError)
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.class,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
.class);
}
// Construct using
// com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getActionTargetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
message_ = "";
stack_ = "";
path_ = "";
actionTarget_ = null;
if (actionTargetBuilder_ != null) {
actionTargetBuilder_.dispose();
actionTargetBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError build() {
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError buildPartial() {
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError result =
new com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.message_ = message_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.stack_ = stack_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.path_ = path_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.actionTarget_ =
actionTargetBuilder_ == null ? actionTarget_ : actionTargetBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.dataform.v1alpha2.CompilationResult.CompilationError) {
return mergeFrom(
(com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError other) {
if (other
== com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getStack().isEmpty()) {
stack_ = other.stack_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasActionTarget()) {
mergeActionTarget(other.getActionTarget());
}
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:
{
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
stack_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
path_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getActionTargetFieldBuilder().getBuilder(), extensionRegistry);
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 message_ = "";
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for message.
*/
public com.google.protobuf.ByteString getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The error's top level message.
*
*
* string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object stack_ = "";
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The stack.
*/
public java.lang.String getStack() {
java.lang.Object ref = stack_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stack_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for stack.
*/
public com.google.protobuf.ByteString getStackBytes() {
java.lang.Object ref = stack_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stack_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The stack to set.
* @return This builder for chaining.
*/
public Builder setStack(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stack_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearStack() {
stack_ = getDefaultInstance().getStack();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. The error's full stack trace.
*
*
* string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for stack to set.
* @return This builder for chaining.
*/
public Builder setStackBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stack_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for path.
*/
public com.google.protobuf.ByteString getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Output only. The path of the file where this error occurred, if available, relative to
* the project root.
*
*
* string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.dataform.v1alpha2.Target actionTarget_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.Target,
com.google.cloud.dataform.v1alpha2.Target.Builder,
com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
actionTargetBuilder_;
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the actionTarget field is set.
*/
public boolean hasActionTarget() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The actionTarget.
*/
public com.google.cloud.dataform.v1alpha2.Target getActionTarget() {
if (actionTargetBuilder_ == null) {
return actionTarget_ == null
? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()
: actionTarget_;
} else {
return actionTargetBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setActionTarget(com.google.cloud.dataform.v1alpha2.Target value) {
if (actionTargetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
actionTarget_ = value;
} else {
actionTargetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setActionTarget(
com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) {
if (actionTargetBuilder_ == null) {
actionTarget_ = builderForValue.build();
} else {
actionTargetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeActionTarget(com.google.cloud.dataform.v1alpha2.Target value) {
if (actionTargetBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& actionTarget_ != null
&& actionTarget_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) {
getActionTargetBuilder().mergeFrom(value);
} else {
actionTarget_ = value;
}
} else {
actionTargetBuilder_.mergeFrom(value);
}
if (actionTarget_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearActionTarget() {
bitField0_ = (bitField0_ & ~0x00000008);
actionTarget_ = null;
if (actionTargetBuilder_ != null) {
actionTargetBuilder_.dispose();
actionTargetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.Target.Builder getActionTargetBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getActionTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getActionTargetOrBuilder() {
if (actionTargetBuilder_ != null) {
return actionTargetBuilder_.getMessageOrBuilder();
} else {
return actionTarget_ == null
? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()
: actionTarget_;
}
}
/**
*
*
*
* Output only. The identifier of the action where this error occurred, if available.
*
*
*
* .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.Target,
com.google.cloud.dataform.v1alpha2.Target.Builder,
com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
getActionTargetFieldBuilder() {
if (actionTargetBuilder_ == null) {
actionTargetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.Target,
com.google.cloud.dataform.v1alpha2.Target.Builder,
com.google.cloud.dataform.v1alpha2.TargetOrBuilder>(
getActionTarget(), getParentForChildren(), isClean());
actionTarget_ = null;
}
return actionTargetBuilder_;
}
@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.dataform.v1alpha2.CompilationResult.CompilationError)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError)
private static final com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError();
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompilationError 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.dataform.v1alpha2.CompilationResult.CompilationError
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int sourceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object source_;
public enum SourceCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GIT_COMMITISH(2),
WORKSPACE(3),
SOURCE_NOT_SET(0);
private final int value;
private SourceCase(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 SourceCase valueOf(int value) {
return forNumber(value);
}
public static SourceCase forNumber(int value) {
switch (value) {
case 2:
return GIT_COMMITISH;
case 3:
return WORKSPACE;
case 0:
return SOURCE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public SourceCase getSourceCase() {
return SourceCase.forNumber(sourceCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* Output only. The compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 GIT_COMMITISH_FIELD_NUMBER = 2;
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return Whether the gitCommitish field is set.
*/
public boolean hasGitCommitish() {
return sourceCase_ == 2;
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The gitCommitish.
*/
public java.lang.String getGitCommitish() {
java.lang.Object ref = "";
if (sourceCase_ == 2) {
ref = source_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sourceCase_ == 2) {
source_ = s;
}
return s;
}
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for gitCommitish.
*/
public com.google.protobuf.ByteString getGitCommitishBytes() {
java.lang.Object ref = "";
if (sourceCase_ == 2) {
ref = source_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (sourceCase_ == 2) {
source_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKSPACE_FIELD_NUMBER = 3;
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the workspace field is set.
*/
public boolean hasWorkspace() {
return sourceCase_ == 3;
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The workspace.
*/
public java.lang.String getWorkspace() {
java.lang.Object ref = "";
if (sourceCase_ == 3) {
ref = source_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sourceCase_ == 3) {
source_ = s;
}
return s;
}
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for workspace.
*/
public com.google.protobuf.ByteString getWorkspaceBytes() {
java.lang.Object ref = "";
if (sourceCase_ == 3) {
ref = source_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (sourceCase_ == 3) {
source_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CODE_COMPILATION_CONFIG_FIELD_NUMBER = 4;
private com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
codeCompilationConfig_;
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the codeCompilationConfig field is set.
*/
@java.lang.Override
public boolean hasCodeCompilationConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The codeCompilationConfig.
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
getCodeCompilationConfig() {
return codeCompilationConfig_ == null
? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance()
: codeCompilationConfig_;
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder
getCodeCompilationConfigOrBuilder() {
return codeCompilationConfig_ == null
? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance()
: codeCompilationConfig_;
}
public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object dataformCoreVersion_ = "";
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The dataformCoreVersion.
*/
@java.lang.Override
public java.lang.String getDataformCoreVersion() {
java.lang.Object ref = dataformCoreVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataformCoreVersion_ = s;
return s;
}
}
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for dataformCoreVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDataformCoreVersionBytes() {
java.lang.Object ref = dataformCoreVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dataformCoreVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPILATION_ERRORS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List
compilationErrors_;
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List
getCompilationErrorsList() {
return compilationErrors_;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>
getCompilationErrorsOrBuilderList() {
return compilationErrors_;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public int getCompilationErrorsCount() {
return compilationErrors_.size();
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError getCompilationErrors(
int index) {
return compilationErrors_.get(index);
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder
getCompilationErrorsOrBuilder(int index) {
return compilationErrors_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (sourceCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
}
if (sourceCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getCodeCompilationConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataformCoreVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataformCoreVersion_);
}
for (int i = 0; i < compilationErrors_.size(); i++) {
output.writeMessage(6, compilationErrors_.get(i));
}
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 (sourceCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
}
if (sourceCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCodeCompilationConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataformCoreVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataformCoreVersion_);
}
for (int i = 0; i < compilationErrors_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(6, compilationErrors_.get(i));
}
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.dataform.v1alpha2.CompilationResult)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1alpha2.CompilationResult other =
(com.google.cloud.dataform.v1alpha2.CompilationResult) obj;
if (!getName().equals(other.getName())) return false;
if (hasCodeCompilationConfig() != other.hasCodeCompilationConfig()) return false;
if (hasCodeCompilationConfig()) {
if (!getCodeCompilationConfig().equals(other.getCodeCompilationConfig())) return false;
}
if (!getDataformCoreVersion().equals(other.getDataformCoreVersion())) return false;
if (!getCompilationErrorsList().equals(other.getCompilationErrorsList())) return false;
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 2:
if (!getGitCommitish().equals(other.getGitCommitish())) return false;
break;
case 3:
if (!getWorkspace().equals(other.getWorkspace())) 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();
if (hasCodeCompilationConfig()) {
hash = (37 * hash) + CODE_COMPILATION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getCodeCompilationConfig().hashCode();
}
hash = (37 * hash) + DATAFORM_CORE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getDataformCoreVersion().hashCode();
if (getCompilationErrorsCount() > 0) {
hash = (37 * hash) + COMPILATION_ERRORS_FIELD_NUMBER;
hash = (53 * hash) + getCompilationErrorsList().hashCode();
}
switch (sourceCase_) {
case 2:
hash = (37 * hash) + GIT_COMMITISH_FIELD_NUMBER;
hash = (53 * hash) + getGitCommitish().hashCode();
break;
case 3:
hash = (37 * hash) + WORKSPACE_FIELD_NUMBER;
hash = (53 * hash) + getWorkspace().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.dataform.v1alpha2.CompilationResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.dataform.v1alpha2.CompilationResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.dataform.v1alpha2.CompilationResult parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.dataform.v1alpha2.CompilationResult parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.dataform.v1alpha2.CompilationResult 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;
}
/**
*
*
*
* Represents the result of compiling a Dataform project.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResult)
com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.CompilationResult.class,
com.google.cloud.dataform.v1alpha2.CompilationResult.Builder.class);
}
// Construct using com.google.cloud.dataform.v1alpha2.CompilationResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCodeCompilationConfigFieldBuilder();
getCompilationErrorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
codeCompilationConfig_ = null;
if (codeCompilationConfigBuilder_ != null) {
codeCompilationConfigBuilder_.dispose();
codeCompilationConfigBuilder_ = null;
}
dataformCoreVersion_ = "";
if (compilationErrorsBuilder_ == null) {
compilationErrors_ = java.util.Collections.emptyList();
} else {
compilationErrors_ = null;
compilationErrorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
sourceCase_ = 0;
source_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult getDefaultInstanceForType() {
return com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult build() {
com.google.cloud.dataform.v1alpha2.CompilationResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.CompilationResult buildPartial() {
com.google.cloud.dataform.v1alpha2.CompilationResult result =
new com.google.cloud.dataform.v1alpha2.CompilationResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataform.v1alpha2.CompilationResult result) {
if (compilationErrorsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
compilationErrors_ = java.util.Collections.unmodifiableList(compilationErrors_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.compilationErrors_ = compilationErrors_;
} else {
result.compilationErrors_ = compilationErrorsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.dataform.v1alpha2.CompilationResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.codeCompilationConfig_ =
codeCompilationConfigBuilder_ == null
? codeCompilationConfig_
: codeCompilationConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.dataformCoreVersion_ = dataformCoreVersion_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataform.v1alpha2.CompilationResult result) {
result.sourceCase_ = sourceCase_;
result.source_ = this.source_;
}
@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.dataform.v1alpha2.CompilationResult) {
return mergeFrom((com.google.cloud.dataform.v1alpha2.CompilationResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.CompilationResult other) {
if (other == com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCodeCompilationConfig()) {
mergeCodeCompilationConfig(other.getCodeCompilationConfig());
}
if (!other.getDataformCoreVersion().isEmpty()) {
dataformCoreVersion_ = other.dataformCoreVersion_;
bitField0_ |= 0x00000010;
onChanged();
}
if (compilationErrorsBuilder_ == null) {
if (!other.compilationErrors_.isEmpty()) {
if (compilationErrors_.isEmpty()) {
compilationErrors_ = other.compilationErrors_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCompilationErrorsIsMutable();
compilationErrors_.addAll(other.compilationErrors_);
}
onChanged();
}
} else {
if (!other.compilationErrors_.isEmpty()) {
if (compilationErrorsBuilder_.isEmpty()) {
compilationErrorsBuilder_.dispose();
compilationErrorsBuilder_ = null;
compilationErrors_ = other.compilationErrors_;
bitField0_ = (bitField0_ & ~0x00000020);
compilationErrorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getCompilationErrorsFieldBuilder()
: null;
} else {
compilationErrorsBuilder_.addAllMessages(other.compilationErrors_);
}
}
}
switch (other.getSourceCase()) {
case GIT_COMMITISH:
{
sourceCase_ = 2;
source_ = other.source_;
onChanged();
break;
}
case WORKSPACE:
{
sourceCase_ = 3;
source_ = other.source_;
onChanged();
break;
}
case SOURCE_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:
{
java.lang.String s = input.readStringRequireUtf8();
sourceCase_ = 2;
source_ = s;
break;
} // case 18
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
sourceCase_ = 3;
source_ = s;
break;
} // case 26
case 34:
{
input.readMessage(
getCodeCompilationConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
dataformCoreVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError m =
input.readMessage(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
.parser(),
extensionRegistry);
if (compilationErrorsBuilder_ == null) {
ensureCompilationErrorsIsMutable();
compilationErrors_.add(m);
} else {
compilationErrorsBuilder_.addMessage(m);
}
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 sourceCase_ = 0;
private java.lang.Object source_;
public SourceCase getSourceCase() {
return SourceCase.forNumber(sourceCase_);
}
public Builder clearSource() {
sourceCase_ = 0;
source_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Output only. The compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The compilation result's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return Whether the gitCommitish field is set.
*/
@java.lang.Override
public boolean hasGitCommitish() {
return sourceCase_ == 2;
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The gitCommitish.
*/
@java.lang.Override
public java.lang.String getGitCommitish() {
java.lang.Object ref = "";
if (sourceCase_ == 2) {
ref = source_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sourceCase_ == 2) {
source_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for gitCommitish.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGitCommitishBytes() {
java.lang.Object ref = "";
if (sourceCase_ == 2) {
ref = source_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (sourceCase_ == 2) {
source_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The gitCommitish to set.
* @return This builder for chaining.
*/
public Builder setGitCommitish(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceCase_ = 2;
source_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return This builder for chaining.
*/
public Builder clearGitCommitish() {
if (sourceCase_ == 2) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. Git commit/tag/branch name at which the repository should be compiled.
* Must exist in the remote repository.
* Examples:
* - a commit SHA: `12ade345`
* - a tag: `tag1`
* - a branch name: `branch1`
*
*
* string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The bytes for gitCommitish to set.
* @return This builder for chaining.
*/
public Builder setGitCommitishBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceCase_ = 2;
source_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the workspace field is set.
*/
@java.lang.Override
public boolean hasWorkspace() {
return sourceCase_ == 3;
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The workspace.
*/
@java.lang.Override
public java.lang.String getWorkspace() {
java.lang.Object ref = "";
if (sourceCase_ == 3) {
ref = source_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sourceCase_ == 3) {
source_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for workspace.
*/
@java.lang.Override
public com.google.protobuf.ByteString getWorkspaceBytes() {
java.lang.Object ref = "";
if (sourceCase_ == 3) {
ref = source_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (sourceCase_ == 3) {
source_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The workspace to set.
* @return This builder for chaining.
*/
public Builder setWorkspace(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceCase_ = 3;
source_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearWorkspace() {
if (sourceCase_ == 3) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. The name of the workspace to compile. Must be in the format
* `projects/*/locations/*/repositories/*/workspaces/*`.
*
*
*
* string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for workspace to set.
* @return This builder for chaining.
*/
public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceCase_ = 3;
source_ = value;
onChanged();
return this;
}
private com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
codeCompilationConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder>
codeCompilationConfigBuilder_;
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the codeCompilationConfig field is set.
*/
public boolean hasCodeCompilationConfig() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The codeCompilationConfig.
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
getCodeCompilationConfig() {
if (codeCompilationConfigBuilder_ == null) {
return codeCompilationConfig_ == null
? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance()
: codeCompilationConfig_;
} else {
return codeCompilationConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setCodeCompilationConfig(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig value) {
if (codeCompilationConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
codeCompilationConfig_ = value;
} else {
codeCompilationConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setCodeCompilationConfig(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder
builderForValue) {
if (codeCompilationConfigBuilder_ == null) {
codeCompilationConfig_ = builderForValue.build();
} else {
codeCompilationConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder mergeCodeCompilationConfig(
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig value) {
if (codeCompilationConfigBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& codeCompilationConfig_ != null
&& codeCompilationConfig_
!= com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance()) {
getCodeCompilationConfigBuilder().mergeFrom(value);
} else {
codeCompilationConfig_ = value;
}
} else {
codeCompilationConfigBuilder_.mergeFrom(value);
}
if (codeCompilationConfig_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder clearCodeCompilationConfig() {
bitField0_ = (bitField0_ & ~0x00000008);
codeCompilationConfig_ = null;
if (codeCompilationConfigBuilder_ != null) {
codeCompilationConfigBuilder_.dispose();
codeCompilationConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder
getCodeCompilationConfigBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCodeCompilationConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder
getCodeCompilationConfigOrBuilder() {
if (codeCompilationConfigBuilder_ != null) {
return codeCompilationConfigBuilder_.getMessageOrBuilder();
} else {
return codeCompilationConfig_ == null
? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig
.getDefaultInstance()
: codeCompilationConfig_;
}
}
/**
*
*
*
* Immutable. If set, fields of `code_compilation_overrides` override the default
* compilation settings that are specified in dataform.json.
*
*
*
* .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder>
getCodeCompilationConfigFieldBuilder() {
if (codeCompilationConfigBuilder_ == null) {
codeCompilationConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig,
com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder,
com.google.cloud.dataform.v1alpha2.CompilationResult
.CodeCompilationConfigOrBuilder>(
getCodeCompilationConfig(), getParentForChildren(), isClean());
codeCompilationConfig_ = null;
}
return codeCompilationConfigBuilder_;
}
private java.lang.Object dataformCoreVersion_ = "";
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The dataformCoreVersion.
*/
public java.lang.String getDataformCoreVersion() {
java.lang.Object ref = dataformCoreVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataformCoreVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for dataformCoreVersion.
*/
public com.google.protobuf.ByteString getDataformCoreVersionBytes() {
java.lang.Object ref = dataformCoreVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dataformCoreVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The dataformCoreVersion to set.
* @return This builder for chaining.
*/
public Builder setDataformCoreVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataformCoreVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearDataformCoreVersion() {
dataformCoreVersion_ = getDefaultInstance().getDataformCoreVersion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Output only. The version of `@dataform/core` that was used for compilation.
*
*
* string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for dataformCoreVersion to set.
* @return This builder for chaining.
*/
public Builder setDataformCoreVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataformCoreVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List
compilationErrors_ = java.util.Collections.emptyList();
private void ensureCompilationErrorsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
compilationErrors_ =
new java.util.ArrayList<
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError>(
compilationErrors_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>
compilationErrorsBuilder_;
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getCompilationErrorsList() {
if (compilationErrorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(compilationErrors_);
} else {
return compilationErrorsBuilder_.getMessageList();
}
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getCompilationErrorsCount() {
if (compilationErrorsBuilder_ == null) {
return compilationErrors_.size();
} else {
return compilationErrorsBuilder_.getCount();
}
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
getCompilationErrors(int index) {
if (compilationErrorsBuilder_ == null) {
return compilationErrors_.get(index);
} else {
return compilationErrorsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCompilationErrors(
int index, com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError value) {
if (compilationErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompilationErrorsIsMutable();
compilationErrors_.set(index, value);
onChanged();
} else {
compilationErrorsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCompilationErrors(
int index,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
builderForValue) {
if (compilationErrorsBuilder_ == null) {
ensureCompilationErrorsIsMutable();
compilationErrors_.set(index, builderForValue.build());
onChanged();
} else {
compilationErrorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCompilationErrors(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError value) {
if (compilationErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompilationErrorsIsMutable();
compilationErrors_.add(value);
onChanged();
} else {
compilationErrorsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCompilationErrors(
int index, com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError value) {
if (compilationErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompilationErrorsIsMutable();
compilationErrors_.add(index, value);
onChanged();
} else {
compilationErrorsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCompilationErrors(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
builderForValue) {
if (compilationErrorsBuilder_ == null) {
ensureCompilationErrorsIsMutable();
compilationErrors_.add(builderForValue.build());
onChanged();
} else {
compilationErrorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCompilationErrors(
int index,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
builderForValue) {
if (compilationErrorsBuilder_ == null) {
ensureCompilationErrorsIsMutable();
compilationErrors_.add(index, builderForValue.build());
onChanged();
} else {
compilationErrorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllCompilationErrors(
java.lang.Iterable<
? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError>
values) {
if (compilationErrorsBuilder_ == null) {
ensureCompilationErrorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compilationErrors_);
onChanged();
} else {
compilationErrorsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCompilationErrors() {
if (compilationErrorsBuilder_ == null) {
compilationErrors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
compilationErrorsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeCompilationErrors(int index) {
if (compilationErrorsBuilder_ == null) {
ensureCompilationErrorsIsMutable();
compilationErrors_.remove(index);
onChanged();
} else {
compilationErrorsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
getCompilationErrorsBuilder(int index) {
return getCompilationErrorsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder
getCompilationErrorsOrBuilder(int index) {
if (compilationErrorsBuilder_ == null) {
return compilationErrors_.get(index);
} else {
return compilationErrorsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List<
? extends
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>
getCompilationErrorsOrBuilderList() {
if (compilationErrorsBuilder_ != null) {
return compilationErrorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(compilationErrors_);
}
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
addCompilationErrorsBuilder() {
return getCompilationErrorsFieldBuilder()
.addBuilder(
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
.getDefaultInstance());
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder
addCompilationErrorsBuilder(int index) {
return getCompilationErrorsFieldBuilder()
.addBuilder(
index,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError
.getDefaultInstance());
}
/**
*
*
*
* Output only. Errors encountered during project compilation.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List<
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder>
getCompilationErrorsBuilderList() {
return getCompilationErrorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>
getCompilationErrorsFieldBuilder() {
if (compilationErrorsBuilder_ == null) {
compilationErrorsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder,
com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>(
compilationErrors_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
compilationErrors_ = null;
}
return compilationErrorsBuilder_;
}
@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.dataform.v1alpha2.CompilationResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResult)
private static final com.google.cloud.dataform.v1alpha2.CompilationResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CompilationResult();
}
public static com.google.cloud.dataform.v1alpha2.CompilationResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompilationResult 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.dataform.v1alpha2.CompilationResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}