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/catalog.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/** Protobuf type {@code google.cloud.dataplex.v1.CreateEntryRequest} */
public final class CreateEntryRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.CreateEntryRequest)
CreateEntryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateEntryRequest.newBuilder() to construct.
private CreateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateEntryRequest() {
parent_ = "";
entryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CreateEntryRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_CreateEntryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_CreateEntryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.CreateEntryRequest.class,
com.google.cloud.dataplex.v1.CreateEntryRequest.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 Entry Group:
* `projects/{project}/locations/{location}/entryGroups/{entry_group}`.
*
* Required. The resource name of the parent Entry Group:
* `projects/{project}/locations/{location}/entryGroups/{entry_group}`.
*
*
*
* 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 ENTRY_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object entryId_ = "";
/**
*
*
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
*
* string entry_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for entryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEntryIdBytes() {
java.lang.Object ref = entryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
entryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENTRY_FIELD_NUMBER = 3;
private com.google.cloud.dataplex.v1.Entry entry_;
/**
*
*
*
* Required. Entry resource.
*
*
* .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the entry field is set.
*/
@java.lang.Override
public boolean hasEntry() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The resource name of the parent Entry Group:
* `projects/{project}/locations/{location}/entryGroups/{entry_group}`.
*
*
*
* 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 entryId_ = "";
/**
*
*
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
*
* string entry_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The entryId to set.
* @return This builder for chaining.
*/
public Builder setEntryId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
entryId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
* Required. Entry identifier. It has to be unique within an Entry Group.
*
* Entries corresponding to Google Cloud resources use Entry ID format based
* on Full Resource Names
* (https://cloud.google.com/apis/design/resource_names#full_resource_name).
* The format is a Full Resource Name of the resource without the
* prefix double slashes in the API Service Name part of Full Resource Name.
* This allows retrieval of entries using their associated resource name.
*
* For example if the Full Resource Name of a resource is
* `//library.googleapis.com/shelves/shelf1/books/book2`,
* then the suggested entry_id is
* `library.googleapis.com/shelves/shelf1/books/book2`.
*
* It is also suggested to follow the same convention for entries
* corresponding to resources from other providers or systems than Google
* Cloud.
*
* The maximum size of the field is 4000 characters.
*
*
* string entry_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for entryId to set.
* @return This builder for chaining.
*/
public Builder setEntryIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
entryId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.Entry entry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>
entryBuilder_;
/**
*
*
*
* Required. Entry resource.
*
*
* .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the entry field is set.
*/
public boolean hasEntry() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*