Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/service.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* Create zone request.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.CreateZoneRequest}
*/
public final class CreateZoneRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.CreateZoneRequest)
CreateZoneRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateZoneRequest.newBuilder() to construct.
private CreateZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateZoneRequest() {
parent_ = "";
zoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CreateZoneRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_CreateZoneRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_CreateZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.CreateZoneRequest.class,
com.google.cloud.dataplex.v1.CreateZoneRequest.Builder.class);
}
private int bitField0_;
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object parent_ = "";
/**
*
*
*
* Required. The resource name of the parent lake:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
* Required. The resource name of the parent lake:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for parent.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object zoneId_ = "";
/**
*
*
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
*
* string zone_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for zoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_FIELD_NUMBER = 3;
private com.google.cloud.dataplex.v1.Zone zone_;
/**
*
*
*
* Required. Zone resource.
*
*
* .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
*
* @return Whether the zone field is set.
*/
@java.lang.Override
public boolean hasZone() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The resource name of the parent lake:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for parent to set.
* @return This builder for chaining.
*/
public Builder setParentBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object zoneId_ = "";
/**
*
*
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
*
* string zone_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zoneId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
* Required. Zone identifier.
* This ID will be used to generate names such as database and dataset names
* when publishing metadata to Hive Metastore and BigQuery.
* * Must contain only lowercase letters, numbers and hyphens.
* * Must start with a letter.
* * Must end with a number or a letter.
* * Must be between 1-63 characters.
* * Must be unique across all lakes from all locations in a project.
* * Must not be one of the reserved IDs (i.e. "default", "global-temp")
*
*
* string zone_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zoneId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.Zone zone_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Zone,
com.google.cloud.dataplex.v1.Zone.Builder,
com.google.cloud.dataplex.v1.ZoneOrBuilder>
zoneBuilder_;
/**
*
*
*
* Required. Zone resource.
*
*
* .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the zone field is set.
*/
public boolean hasZone() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*