All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.metastore.v1beta.MetadataManagementActivity Maven / Gradle / Ivy

There is a newer version: 0.59.0
Show 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/metastore/v1beta/metastore.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.metastore.v1beta;

/**
 *
 *
 * 
 * The metadata management activities of the metastore service.
 * 
* * Protobuf type {@code google.cloud.metastore.v1beta.MetadataManagementActivity} */ public final class MetadataManagementActivity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.MetadataManagementActivity) MetadataManagementActivityOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataManagementActivity.newBuilder() to construct. private MetadataManagementActivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataManagementActivity() { metadataExports_ = java.util.Collections.emptyList(); restores_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetadataManagementActivity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataManagementActivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataManagementActivity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.metastore.v1beta.MetadataManagementActivity.class, com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder.class); } public static final int METADATA_EXPORTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List metadataExports_; /** * * *
   * Output only. The latest metadata exports of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getMetadataExportsList() { return metadataExports_; } /** * * *
   * Output only. The latest metadata exports of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getMetadataExportsOrBuilderList() { return metadataExports_; } /** * * *
   * Output only. The latest metadata exports of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getMetadataExportsCount() { return metadataExports_.size(); } /** * * *
   * Output only. The latest metadata exports of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataExport getMetadataExports(int index) { return metadataExports_.get(index); } /** * * *
   * Output only. The latest metadata exports of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataExportOrBuilder getMetadataExportsOrBuilder( int index) { return metadataExports_.get(index); } public static final int RESTORES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List restores_; /** * * *
   * Output only. The latest restores of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getRestoresList() { return restores_; } /** * * *
   * Output only. The latest restores of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getRestoresOrBuilderList() { return restores_; } /** * * *
   * Output only. The latest restores of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getRestoresCount() { return restores_.size(); } /** * * *
   * Output only. The latest restores of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.metastore.v1beta.Restore getRestores(int index) { return restores_.get(index); } /** * * *
   * Output only. The latest restores of the metastore service.
   * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.metastore.v1beta.RestoreOrBuilder getRestoresOrBuilder(int index) { return restores_.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 { for (int i = 0; i < metadataExports_.size(); i++) { output.writeMessage(1, metadataExports_.get(i)); } for (int i = 0; i < restores_.size(); i++) { output.writeMessage(2, restores_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < metadataExports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadataExports_.get(i)); } for (int i = 0; i < restores_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, restores_.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.metastore.v1beta.MetadataManagementActivity)) { return super.equals(obj); } com.google.cloud.metastore.v1beta.MetadataManagementActivity other = (com.google.cloud.metastore.v1beta.MetadataManagementActivity) obj; if (!getMetadataExportsList().equals(other.getMetadataExportsList())) return false; if (!getRestoresList().equals(other.getRestoresList())) 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 (getMetadataExportsCount() > 0) { hash = (37 * hash) + METADATA_EXPORTS_FIELD_NUMBER; hash = (53 * hash) + getMetadataExportsList().hashCode(); } if (getRestoresCount() > 0) { hash = (37 * hash) + RESTORES_FIELD_NUMBER; hash = (53 * hash) + getRestoresList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity 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.metastore.v1beta.MetadataManagementActivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity 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.metastore.v1beta.MetadataManagementActivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity 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.metastore.v1beta.MetadataManagementActivity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity 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.metastore.v1beta.MetadataManagementActivity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity 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.metastore.v1beta.MetadataManagementActivity 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; } /** * * *
   * The metadata management activities of the metastore service.
   * 
* * Protobuf type {@code google.cloud.metastore.v1beta.MetadataManagementActivity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.metastore.v1beta.MetadataManagementActivity) com.google.cloud.metastore.v1beta.MetadataManagementActivityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataManagementActivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataManagementActivity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.metastore.v1beta.MetadataManagementActivity.class, com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder.class); } // Construct using com.google.cloud.metastore.v1beta.MetadataManagementActivity.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (metadataExportsBuilder_ == null) { metadataExports_ = java.util.Collections.emptyList(); } else { metadataExports_ = null; metadataExportsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (restoresBuilder_ == null) { restores_ = java.util.Collections.emptyList(); } else { restores_ = null; restoresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataManagementActivity_descriptor; } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataManagementActivity getDefaultInstanceForType() { return com.google.cloud.metastore.v1beta.MetadataManagementActivity.getDefaultInstance(); } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataManagementActivity build() { com.google.cloud.metastore.v1beta.MetadataManagementActivity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataManagementActivity buildPartial() { com.google.cloud.metastore.v1beta.MetadataManagementActivity result = new com.google.cloud.metastore.v1beta.MetadataManagementActivity(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.metastore.v1beta.MetadataManagementActivity result) { if (metadataExportsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metadataExports_ = java.util.Collections.unmodifiableList(metadataExports_); bitField0_ = (bitField0_ & ~0x00000001); } result.metadataExports_ = metadataExports_; } else { result.metadataExports_ = metadataExportsBuilder_.build(); } if (restoresBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { restores_ = java.util.Collections.unmodifiableList(restores_); bitField0_ = (bitField0_ & ~0x00000002); } result.restores_ = restores_; } else { result.restores_ = restoresBuilder_.build(); } } private void buildPartial0( com.google.cloud.metastore.v1beta.MetadataManagementActivity result) { int from_bitField0_ = 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.metastore.v1beta.MetadataManagementActivity) { return mergeFrom((com.google.cloud.metastore.v1beta.MetadataManagementActivity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.metastore.v1beta.MetadataManagementActivity other) { if (other == com.google.cloud.metastore.v1beta.MetadataManagementActivity.getDefaultInstance()) return this; if (metadataExportsBuilder_ == null) { if (!other.metadataExports_.isEmpty()) { if (metadataExports_.isEmpty()) { metadataExports_ = other.metadataExports_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMetadataExportsIsMutable(); metadataExports_.addAll(other.metadataExports_); } onChanged(); } } else { if (!other.metadataExports_.isEmpty()) { if (metadataExportsBuilder_.isEmpty()) { metadataExportsBuilder_.dispose(); metadataExportsBuilder_ = null; metadataExports_ = other.metadataExports_; bitField0_ = (bitField0_ & ~0x00000001); metadataExportsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetadataExportsFieldBuilder() : null; } else { metadataExportsBuilder_.addAllMessages(other.metadataExports_); } } } if (restoresBuilder_ == null) { if (!other.restores_.isEmpty()) { if (restores_.isEmpty()) { restores_ = other.restores_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRestoresIsMutable(); restores_.addAll(other.restores_); } onChanged(); } } else { if (!other.restores_.isEmpty()) { if (restoresBuilder_.isEmpty()) { restoresBuilder_.dispose(); restoresBuilder_ = null; restores_ = other.restores_; bitField0_ = (bitField0_ & ~0x00000002); restoresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRestoresFieldBuilder() : null; } else { restoresBuilder_.addAllMessages(other.restores_); } } } 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: { com.google.cloud.metastore.v1beta.MetadataExport m = input.readMessage( com.google.cloud.metastore.v1beta.MetadataExport.parser(), extensionRegistry); if (metadataExportsBuilder_ == null) { ensureMetadataExportsIsMutable(); metadataExports_.add(m); } else { metadataExportsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.cloud.metastore.v1beta.Restore m = input.readMessage( com.google.cloud.metastore.v1beta.Restore.parser(), extensionRegistry); if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.add(m); } else { restoresBuilder_.addMessage(m); } break; } // case 18 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.util.List metadataExports_ = java.util.Collections.emptyList(); private void ensureMetadataExportsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { metadataExports_ = new java.util.ArrayList( metadataExports_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.metastore.v1beta.MetadataExport, com.google.cloud.metastore.v1beta.MetadataExport.Builder, com.google.cloud.metastore.v1beta.MetadataExportOrBuilder> metadataExportsBuilder_; /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getMetadataExportsList() { if (metadataExportsBuilder_ == null) { return java.util.Collections.unmodifiableList(metadataExports_); } else { return metadataExportsBuilder_.getMessageList(); } } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getMetadataExportsCount() { if (metadataExportsBuilder_ == null) { return metadataExports_.size(); } else { return metadataExportsBuilder_.getCount(); } } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.MetadataExport getMetadataExports(int index) { if (metadataExportsBuilder_ == null) { return metadataExports_.get(index); } else { return metadataExportsBuilder_.getMessage(index); } } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setMetadataExports( int index, com.google.cloud.metastore.v1beta.MetadataExport value) { if (metadataExportsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataExportsIsMutable(); metadataExports_.set(index, value); onChanged(); } else { metadataExportsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setMetadataExports( int index, com.google.cloud.metastore.v1beta.MetadataExport.Builder builderForValue) { if (metadataExportsBuilder_ == null) { ensureMetadataExportsIsMutable(); metadataExports_.set(index, builderForValue.build()); onChanged(); } else { metadataExportsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMetadataExports(com.google.cloud.metastore.v1beta.MetadataExport value) { if (metadataExportsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataExportsIsMutable(); metadataExports_.add(value); onChanged(); } else { metadataExportsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMetadataExports( int index, com.google.cloud.metastore.v1beta.MetadataExport value) { if (metadataExportsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataExportsIsMutable(); metadataExports_.add(index, value); onChanged(); } else { metadataExportsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMetadataExports( com.google.cloud.metastore.v1beta.MetadataExport.Builder builderForValue) { if (metadataExportsBuilder_ == null) { ensureMetadataExportsIsMutable(); metadataExports_.add(builderForValue.build()); onChanged(); } else { metadataExportsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMetadataExports( int index, com.google.cloud.metastore.v1beta.MetadataExport.Builder builderForValue) { if (metadataExportsBuilder_ == null) { ensureMetadataExportsIsMutable(); metadataExports_.add(index, builderForValue.build()); onChanged(); } else { metadataExportsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllMetadataExports( java.lang.Iterable values) { if (metadataExportsBuilder_ == null) { ensureMetadataExportsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataExports_); onChanged(); } else { metadataExportsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearMetadataExports() { if (metadataExportsBuilder_ == null) { metadataExports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { metadataExportsBuilder_.clear(); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeMetadataExports(int index) { if (metadataExportsBuilder_ == null) { ensureMetadataExportsIsMutable(); metadataExports_.remove(index); onChanged(); } else { metadataExportsBuilder_.remove(index); } return this; } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.MetadataExport.Builder getMetadataExportsBuilder( int index) { return getMetadataExportsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.MetadataExportOrBuilder getMetadataExportsOrBuilder( int index) { if (metadataExportsBuilder_ == null) { return metadataExports_.get(index); } else { return metadataExportsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getMetadataExportsOrBuilderList() { if (metadataExportsBuilder_ != null) { return metadataExportsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metadataExports_); } } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.MetadataExport.Builder addMetadataExportsBuilder() { return getMetadataExportsFieldBuilder() .addBuilder(com.google.cloud.metastore.v1beta.MetadataExport.getDefaultInstance()); } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.MetadataExport.Builder addMetadataExportsBuilder( int index) { return getMetadataExportsFieldBuilder() .addBuilder(index, com.google.cloud.metastore.v1beta.MetadataExport.getDefaultInstance()); } /** * * *
     * Output only. The latest metadata exports of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getMetadataExportsBuilderList() { return getMetadataExportsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.metastore.v1beta.MetadataExport, com.google.cloud.metastore.v1beta.MetadataExport.Builder, com.google.cloud.metastore.v1beta.MetadataExportOrBuilder> getMetadataExportsFieldBuilder() { if (metadataExportsBuilder_ == null) { metadataExportsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.metastore.v1beta.MetadataExport, com.google.cloud.metastore.v1beta.MetadataExport.Builder, com.google.cloud.metastore.v1beta.MetadataExportOrBuilder>( metadataExports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); metadataExports_ = null; } return metadataExportsBuilder_; } private java.util.List restores_ = java.util.Collections.emptyList(); private void ensureRestoresIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { restores_ = new java.util.ArrayList(restores_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.metastore.v1beta.Restore, com.google.cloud.metastore.v1beta.Restore.Builder, com.google.cloud.metastore.v1beta.RestoreOrBuilder> restoresBuilder_; /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getRestoresList() { if (restoresBuilder_ == null) { return java.util.Collections.unmodifiableList(restores_); } else { return restoresBuilder_.getMessageList(); } } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getRestoresCount() { if (restoresBuilder_ == null) { return restores_.size(); } else { return restoresBuilder_.getCount(); } } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.Restore getRestores(int index) { if (restoresBuilder_ == null) { return restores_.get(index); } else { return restoresBuilder_.getMessage(index); } } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRestores(int index, com.google.cloud.metastore.v1beta.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestoresIsMutable(); restores_.set(index, value); onChanged(); } else { restoresBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRestores( int index, com.google.cloud.metastore.v1beta.Restore.Builder builderForValue) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.set(index, builderForValue.build()); onChanged(); } else { restoresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRestores(com.google.cloud.metastore.v1beta.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestoresIsMutable(); restores_.add(value); onChanged(); } else { restoresBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRestores(int index, com.google.cloud.metastore.v1beta.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestoresIsMutable(); restores_.add(index, value); onChanged(); } else { restoresBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRestores(com.google.cloud.metastore.v1beta.Restore.Builder builderForValue) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.add(builderForValue.build()); onChanged(); } else { restoresBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRestores( int index, com.google.cloud.metastore.v1beta.Restore.Builder builderForValue) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.add(index, builderForValue.build()); onChanged(); } else { restoresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllRestores( java.lang.Iterable values) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restores_); onChanged(); } else { restoresBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearRestores() { if (restoresBuilder_ == null) { restores_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { restoresBuilder_.clear(); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeRestores(int index) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.remove(index); onChanged(); } else { restoresBuilder_.remove(index); } return this; } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.Restore.Builder getRestoresBuilder(int index) { return getRestoresFieldBuilder().getBuilder(index); } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.RestoreOrBuilder getRestoresOrBuilder(int index) { if (restoresBuilder_ == null) { return restores_.get(index); } else { return restoresBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getRestoresOrBuilderList() { if (restoresBuilder_ != null) { return restoresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(restores_); } } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.Restore.Builder addRestoresBuilder() { return getRestoresFieldBuilder() .addBuilder(com.google.cloud.metastore.v1beta.Restore.getDefaultInstance()); } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.metastore.v1beta.Restore.Builder addRestoresBuilder(int index) { return getRestoresFieldBuilder() .addBuilder(index, com.google.cloud.metastore.v1beta.Restore.getDefaultInstance()); } /** * * *
     * Output only. The latest restores of the metastore service.
     * 
* * * repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getRestoresBuilderList() { return getRestoresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.metastore.v1beta.Restore, com.google.cloud.metastore.v1beta.Restore.Builder, com.google.cloud.metastore.v1beta.RestoreOrBuilder> getRestoresFieldBuilder() { if (restoresBuilder_ == null) { restoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.metastore.v1beta.Restore, com.google.cloud.metastore.v1beta.Restore.Builder, com.google.cloud.metastore.v1beta.RestoreOrBuilder>( restores_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); restores_ = null; } return restoresBuilder_; } @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.metastore.v1beta.MetadataManagementActivity) } // @@protoc_insertion_point(class_scope:google.cloud.metastore.v1beta.MetadataManagementActivity) private static final com.google.cloud.metastore.v1beta.MetadataManagementActivity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.metastore.v1beta.MetadataManagementActivity(); } public static com.google.cloud.metastore.v1beta.MetadataManagementActivity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataManagementActivity 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.metastore.v1beta.MetadataManagementActivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy