Please wait. This can take some minutes ...
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.
com.google.cloud.dataplex.v1.SearchEntriesResult Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/catalog.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.dataplex.v1;
/**
*
*
*
* A single result of a SearchEntries request.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.SearchEntriesResult}
*/
public final class SearchEntriesResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.SearchEntriesResult)
SearchEntriesResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchEntriesResult.newBuilder() to construct.
private SearchEntriesResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchEntriesResult() {
linkedResource_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SearchEntriesResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.SearchEntriesResult.class,
com.google.cloud.dataplex.v1.SearchEntriesResult.Builder.class);
}
public interface SnippetsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.SearchEntriesResult.Snippets)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*
* @return Whether the dataplexEntry field is set.
*/
boolean hasDataplexEntry();
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*
* @return The dataplexEntry.
*/
com.google.cloud.dataplex.v1.Entry getDataplexEntry();
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder();
}
/**
*
*
*
* Snippets for the entry, contains HTML-style highlighting for
* matched tokens, will be used in UI.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.SearchEntriesResult.Snippets}
*/
public static final class Snippets extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.SearchEntriesResult.Snippets)
SnippetsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Snippets.newBuilder() to construct.
private Snippets(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Snippets() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Snippets();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_Snippets_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_Snippets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.class,
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder.class);
}
private int bitField0_;
public static final int DATAPLEX_ENTRY_FIELD_NUMBER = 1;
private com.google.cloud.dataplex.v1.Entry dataplexEntry_;
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*
* @return Whether the dataplexEntry field is set.
*/
@java.lang.Override
public boolean hasDataplexEntry() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*
* @return The dataplexEntry.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Entry getDataplexEntry() {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDataplexEntry());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataplexEntry());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets other =
(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets) obj;
if (hasDataplexEntry() != other.hasDataplexEntry()) return false;
if (hasDataplexEntry()) {
if (!getDataplexEntry().equals(other.getDataplexEntry())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDataplexEntry()) {
hash = (37 * hash) + DATAPLEX_ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getDataplexEntry().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets 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;
}
/**
*
*
*
* Snippets for the entry, contains HTML-style highlighting for
* matched tokens, will be used in UI.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.SearchEntriesResult.Snippets}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.SearchEntriesResult.Snippets)
com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_Snippets_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_Snippets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.class,
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDataplexEntryFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
dataplexEntry_ = null;
if (dataplexEntryBuilder_ != null) {
dataplexEntryBuilder_.dispose();
dataplexEntryBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_Snippets_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets build() {
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets buildPartial() {
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets result =
new com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.dataplexEntry_ =
dataplexEntryBuilder_ == null ? dataplexEntry_ : dataplexEntryBuilder_.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.dataplex.v1.SearchEntriesResult.Snippets) {
return mergeFrom((com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets other) {
if (other == com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance())
return this;
if (other.hasDataplexEntry()) {
mergeDataplexEntry(other.getDataplexEntry());
}
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:
{
input.readMessage(getDataplexEntryFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.dataplex.v1.Entry dataplexEntry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>
dataplexEntryBuilder_;
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*
* @return Whether the dataplexEntry field is set.
*/
public boolean hasDataplexEntry() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*
* @return The dataplexEntry.
*/
public com.google.cloud.dataplex.v1.Entry getDataplexEntry() {
if (dataplexEntryBuilder_ == null) {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
} else {
return dataplexEntryBuilder_.getMessage();
}
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry value) {
if (dataplexEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataplexEntry_ = value;
} else {
dataplexEntryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry.Builder builderForValue) {
if (dataplexEntryBuilder_ == null) {
dataplexEntry_ = builderForValue.build();
} else {
dataplexEntryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
public Builder mergeDataplexEntry(com.google.cloud.dataplex.v1.Entry value) {
if (dataplexEntryBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& dataplexEntry_ != null
&& dataplexEntry_ != com.google.cloud.dataplex.v1.Entry.getDefaultInstance()) {
getDataplexEntryBuilder().mergeFrom(value);
} else {
dataplexEntry_ = value;
}
} else {
dataplexEntryBuilder_.mergeFrom(value);
}
if (dataplexEntry_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
public Builder clearDataplexEntry() {
bitField0_ = (bitField0_ & ~0x00000001);
dataplexEntry_ = null;
if (dataplexEntryBuilder_ != null) {
dataplexEntryBuilder_.dispose();
dataplexEntryBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
public com.google.cloud.dataplex.v1.Entry.Builder getDataplexEntryBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDataplexEntryFieldBuilder().getBuilder();
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() {
if (dataplexEntryBuilder_ != null) {
return dataplexEntryBuilder_.getMessageOrBuilder();
} else {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
}
}
/**
*
*
*
* Entry
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>
getDataplexEntryFieldBuilder() {
if (dataplexEntryBuilder_ == null) {
dataplexEntryBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>(
getDataplexEntry(), getParentForChildren(), isClean());
dataplexEntry_ = null;
}
return dataplexEntryBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.SearchEntriesResult.Snippets)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.SearchEntriesResult.Snippets)
private static final com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets();
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Snippets parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int LINKED_RESOURCE_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object linkedResource_ = "";
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @return The linkedResource.
*/
@java.lang.Override
public java.lang.String getLinkedResource() {
java.lang.Object ref = linkedResource_;
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();
linkedResource_ = s;
return s;
}
}
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @return The bytes for linkedResource.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLinkedResourceBytes() {
java.lang.Object ref = linkedResource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
linkedResource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATAPLEX_ENTRY_FIELD_NUMBER = 9;
private com.google.cloud.dataplex.v1.Entry dataplexEntry_;
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*
* @return Whether the dataplexEntry field is set.
*/
@java.lang.Override
public boolean hasDataplexEntry() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*
* @return The dataplexEntry.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Entry getDataplexEntry() {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
}
public static final int SNIPPETS_FIELD_NUMBER = 12;
private com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets_;
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*
* @return Whether the snippets field is set.
*/
@java.lang.Override
public boolean hasSnippets() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*
* @return The snippets.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets() {
return snippets_ == null
? com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance()
: snippets_;
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder getSnippetsOrBuilder() {
return snippets_ == null
? com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance()
: snippets_;
}
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(linkedResource_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, linkedResource_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(9, getDataplexEntry());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(12, getSnippets());
}
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(linkedResource_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, linkedResource_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDataplexEntry());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSnippets());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.SearchEntriesResult)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.SearchEntriesResult other =
(com.google.cloud.dataplex.v1.SearchEntriesResult) obj;
if (!getLinkedResource().equals(other.getLinkedResource())) return false;
if (hasDataplexEntry() != other.hasDataplexEntry()) return false;
if (hasDataplexEntry()) {
if (!getDataplexEntry().equals(other.getDataplexEntry())) return false;
}
if (hasSnippets() != other.hasSnippets()) return false;
if (hasSnippets()) {
if (!getSnippets().equals(other.getSnippets())) 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) + LINKED_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getLinkedResource().hashCode();
if (hasDataplexEntry()) {
hash = (37 * hash) + DATAPLEX_ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getDataplexEntry().hashCode();
}
if (hasSnippets()) {
hash = (37 * hash) + SNIPPETS_FIELD_NUMBER;
hash = (53 * hash) + getSnippets().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.dataplex.v1.SearchEntriesResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A single result of a SearchEntries request.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.SearchEntriesResult}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.SearchEntriesResult)
com.google.cloud.dataplex.v1.SearchEntriesResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.SearchEntriesResult.class,
com.google.cloud.dataplex.v1.SearchEntriesResult.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.SearchEntriesResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDataplexEntryFieldBuilder();
getSnippetsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
linkedResource_ = "";
dataplexEntry_ = null;
if (dataplexEntryBuilder_ != null) {
dataplexEntryBuilder_.dispose();
dataplexEntryBuilder_ = null;
}
snippets_ = null;
if (snippetsBuilder_ != null) {
snippetsBuilder_.dispose();
snippetsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_SearchEntriesResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.SearchEntriesResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult build() {
com.google.cloud.dataplex.v1.SearchEntriesResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult buildPartial() {
com.google.cloud.dataplex.v1.SearchEntriesResult result =
new com.google.cloud.dataplex.v1.SearchEntriesResult(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.SearchEntriesResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.linkedResource_ = linkedResource_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dataplexEntry_ =
dataplexEntryBuilder_ == null ? dataplexEntry_ : dataplexEntryBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.snippets_ = snippetsBuilder_ == null ? snippets_ : snippetsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.SearchEntriesResult) {
return mergeFrom((com.google.cloud.dataplex.v1.SearchEntriesResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.SearchEntriesResult other) {
if (other == com.google.cloud.dataplex.v1.SearchEntriesResult.getDefaultInstance())
return this;
if (!other.getLinkedResource().isEmpty()) {
linkedResource_ = other.linkedResource_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDataplexEntry()) {
mergeDataplexEntry(other.getDataplexEntry());
}
if (other.hasSnippets()) {
mergeSnippets(other.getSnippets());
}
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 66:
{
linkedResource_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 66
case 74:
{
input.readMessage(getDataplexEntryFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 74
case 98:
{
input.readMessage(getSnippetsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 98
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 linkedResource_ = "";
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @return The linkedResource.
*/
public java.lang.String getLinkedResource() {
java.lang.Object ref = linkedResource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
linkedResource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @return The bytes for linkedResource.
*/
public com.google.protobuf.ByteString getLinkedResourceBytes() {
java.lang.Object ref = linkedResource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
linkedResource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @param value The linkedResource to set.
* @return This builder for chaining.
*/
public Builder setLinkedResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
linkedResource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @return This builder for chaining.
*/
public Builder clearLinkedResource() {
linkedResource_ = getDefaultInstance().getLinkedResource();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Linked resource name.
*
*
* string linked_resource = 8;
*
* @param value The bytes for linkedResource to set.
* @return This builder for chaining.
*/
public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
linkedResource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.Entry dataplexEntry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>
dataplexEntryBuilder_;
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*
* @return Whether the dataplexEntry field is set.
*/
public boolean hasDataplexEntry() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*
* @return The dataplexEntry.
*/
public com.google.cloud.dataplex.v1.Entry getDataplexEntry() {
if (dataplexEntryBuilder_ == null) {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
} else {
return dataplexEntryBuilder_.getMessage();
}
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry value) {
if (dataplexEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataplexEntry_ = value;
} else {
dataplexEntryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry.Builder builderForValue) {
if (dataplexEntryBuilder_ == null) {
dataplexEntry_ = builderForValue.build();
} else {
dataplexEntryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
public Builder mergeDataplexEntry(com.google.cloud.dataplex.v1.Entry value) {
if (dataplexEntryBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& dataplexEntry_ != null
&& dataplexEntry_ != com.google.cloud.dataplex.v1.Entry.getDefaultInstance()) {
getDataplexEntryBuilder().mergeFrom(value);
} else {
dataplexEntry_ = value;
}
} else {
dataplexEntryBuilder_.mergeFrom(value);
}
if (dataplexEntry_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
public Builder clearDataplexEntry() {
bitField0_ = (bitField0_ & ~0x00000002);
dataplexEntry_ = null;
if (dataplexEntryBuilder_ != null) {
dataplexEntryBuilder_.dispose();
dataplexEntryBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
public com.google.cloud.dataplex.v1.Entry.Builder getDataplexEntryBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDataplexEntryFieldBuilder().getBuilder();
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() {
if (dataplexEntryBuilder_ != null) {
return dataplexEntryBuilder_.getMessageOrBuilder();
} else {
return dataplexEntry_ == null
? com.google.cloud.dataplex.v1.Entry.getDefaultInstance()
: dataplexEntry_;
}
}
/**
*
*
*
* Entry format of the result.
*
*
* .google.cloud.dataplex.v1.Entry dataplex_entry = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>
getDataplexEntryFieldBuilder() {
if (dataplexEntryBuilder_ == null) {
dataplexEntryBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Entry,
com.google.cloud.dataplex.v1.Entry.Builder,
com.google.cloud.dataplex.v1.EntryOrBuilder>(
getDataplexEntry(), getParentForChildren(), isClean());
dataplexEntry_ = null;
}
return dataplexEntryBuilder_;
}
private com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets,
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder,
com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder>
snippetsBuilder_;
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*
* @return Whether the snippets field is set.
*/
public boolean hasSnippets() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*
* @return The snippets.
*/
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets() {
if (snippetsBuilder_ == null) {
return snippets_ == null
? com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance()
: snippets_;
} else {
return snippetsBuilder_.getMessage();
}
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
public Builder setSnippets(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets value) {
if (snippetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
snippets_ = value;
} else {
snippetsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
public Builder setSnippets(
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder builderForValue) {
if (snippetsBuilder_ == null) {
snippets_ = builderForValue.build();
} else {
snippetsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
public Builder mergeSnippets(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets value) {
if (snippetsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& snippets_ != null
&& snippets_
!= com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance()) {
getSnippetsBuilder().mergeFrom(value);
} else {
snippets_ = value;
}
} else {
snippetsBuilder_.mergeFrom(value);
}
if (snippets_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
public Builder clearSnippets() {
bitField0_ = (bitField0_ & ~0x00000004);
snippets_ = null;
if (snippetsBuilder_ != null) {
snippetsBuilder_.dispose();
snippetsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder getSnippetsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSnippetsFieldBuilder().getBuilder();
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
public com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder
getSnippetsOrBuilder() {
if (snippetsBuilder_ != null) {
return snippetsBuilder_.getMessageOrBuilder();
} else {
return snippets_ == null
? com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance()
: snippets_;
}
}
/**
*
*
*
* Snippets.
*
*
* .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets,
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder,
com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder>
getSnippetsFieldBuilder() {
if (snippetsBuilder_ == null) {
snippetsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets,
com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder,
com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder>(
getSnippets(), getParentForChildren(), isClean());
snippets_ = null;
}
return snippetsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.SearchEntriesResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.SearchEntriesResult)
private static final com.google.cloud.dataplex.v1.SearchEntriesResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.SearchEntriesResult();
}
public static com.google.cloud.dataplex.v1.SearchEntriesResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchEntriesResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.SearchEntriesResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}