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

org.apache.rocketmq.shaded.com.google.api.Logging Maven / Gradle / Ivy

There is a newer version: 5.0.7
Show newest version
/*
 * Copyright 2020 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/api/logging.proto

package org.apache.rocketmq.shaded.com.google.api;

/**
 *
 *
 * 
 * Logging configuration of the service.
 * The following example shows how to configure logs to be sent to the
 * producer and consumer projects. In the example, the `activity_history`
 * log is sent to both the producer and consumer projects, whereas the
 * `purchase_history` log is only sent to the producer project.
 *     monitored_resources:
 *     - type: library.googleapis.com/branch
 *       labels:
 *       - key: /city
 *         description: The city where the library branch is located in.
 *       - key: /name
 *         description: The name of the branch.
 *     logs:
 *     - name: activity_history
 *       labels:
 *       - key: /customer_id
 *     - name: purchase_history
 *     logging:
 *       producer_destinations:
 *       - monitored_resource: library.googleapis.com/branch
 *         logs:
 *         - activity_history
 *         - purchase_history
 *       consumer_destinations:
 *       - monitored_resource: library.googleapis.com/branch
 *         logs:
 *         - activity_history
 * 
* * Protobuf type {@code google.api.Logging} */ public final class Logging extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.Logging) LoggingOrBuilder { private static final long serialVersionUID = 0L; // Use Logging.newBuilder() to construct. private Logging(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Logging() { producerDestinations_ = java.util.Collections.emptyList(); consumerDestinations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Logging(); } @java.lang.Override public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Logging( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { producerDestinations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } producerDestinations_.add( input.readMessage( org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { consumerDestinations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } consumerDestinations_.add( input.readMessage( org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor; } @java.lang.Override protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto.internal_static_google_api_Logging_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.rocketmq.shaded.com.google.api.Logging.class, org.apache.rocketmq.shaded.com.google.api.Logging.Builder.class); } public interface LoggingDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.Logging.LoggingDestination) org.apache.rocketmq.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * The monitored resource type. The type must be defined in the
     * [Service.monitored_resources][google.api.Service.monitored_resources] section.
     * 
* * string monitored_resource = 3; * * @return The monitoredResource. */ java.lang.String getMonitoredResource(); /** * * *
     * The monitored resource type. The type must be defined in the
     * [Service.monitored_resources][google.api.Service.monitored_resources] section.
     * 
* * string monitored_resource = 3; * * @return The bytes for monitoredResource. */ org.apache.rocketmq.shaded.com.google.protobuf.ByteString getMonitoredResourceBytes(); /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @return A list containing the logs. */ java.util.List getLogsList(); /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @return The count of logs. */ int getLogsCount(); /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @param index The index of the element to return. * @return The logs at the given index. */ java.lang.String getLogs(int index); /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @param index The index of the value to return. * @return The bytes of the logs at the given index. */ org.apache.rocketmq.shaded.com.google.protobuf.ByteString getLogsBytes(int index); } /** * * *
   * Configuration of a specific logging destination (the producer project
   * or the consumer project).
   * 
* * Protobuf type {@code google.api.Logging.LoggingDestination} */ public static final class LoggingDestination extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.Logging.LoggingDestination) LoggingDestinationOrBuilder { private static final long serialVersionUID = 0L; // Use LoggingDestination.newBuilder() to construct. private LoggingDestination(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoggingDestination() { monitoredResource_ = ""; logs_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LoggingDestination(); } @java.lang.Override public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoggingDestination( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { logs_ = new org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } logs_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); monitoredResource_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { logs_ = logs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto .internal_static_google_api_Logging_LoggingDestination_descriptor; } @java.lang.Override protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto .internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.class, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder.class); } public static final int MONITORED_RESOURCE_FIELD_NUMBER = 3; private volatile java.lang.Object monitoredResource_; /** * * *
     * The monitored resource type. The type must be defined in the
     * [Service.monitored_resources][google.api.Service.monitored_resources] section.
     * 
* * string monitored_resource = 3; * * @return The monitoredResource. */ @java.lang.Override public java.lang.String getMonitoredResource() { java.lang.Object ref = monitoredResource_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs = (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } } /** * * *
     * The monitored resource type. The type must be defined in the
     * [Service.monitored_resources][google.api.Service.monitored_resources] section.
     * 
* * string monitored_resource = 3; * * @return The bytes for monitoredResource. */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getMonitoredResourceBytes() { java.lang.Object ref = monitoredResource_; if (ref instanceof java.lang.String) { org.apache.rocketmq.shaded.com.google.protobuf.ByteString b = org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref; } } public static final int LOGS_FIELD_NUMBER = 1; private org.apache.rocketmq.shaded.com.google.protobuf.LazyStringList logs_; /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @return A list containing the logs. */ public org.apache.rocketmq.shaded.com.google.protobuf.ProtocolStringList getLogsList() { return logs_; } /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @return The count of logs. */ public int getLogsCount() { return logs_.size(); } /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @param index The index of the element to return. * @return The logs at the given index. */ public java.lang.String getLogs(int index) { return logs_.get(index); } /** * * *
     * Names of the logs to be sent to this destination. Each name must
     * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
     * not a domain scoped name, it will be automatically prefixed with
     * the service name followed by "/".
     * 
* * repeated string logs = 1; * * @param index The index of the value to return. * @return The bytes of the logs at the given index. */ public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getLogsBytes(int index) { return logs_.getByteString(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(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < logs_.size(); i++) { org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logs_.getRaw(i)); } if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoredResource_)) { org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoredResource_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < logs_.size(); i++) { dataSize += computeStringSizeNoTag(logs_.getRaw(i)); } size += dataSize; size += 1 * getLogsList().size(); } if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoredResource_)) { size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, monitoredResource_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination)) { return super.equals(obj); } org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination other = (org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination) obj; if (!getMonitoredResource().equals(other.getMonitoredResource())) return false; if (!getLogsList().equals(other.getLogsList())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + MONITORED_RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getMonitoredResource().hashCode(); if (getLogsCount() > 0) { hash = (37 * hash) + LOGS_FIELD_NUMBER; hash = (53 * hash) + getLogsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom(java.nio.ByteBuffer data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.ByteString data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.ByteString data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom(byte[] data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom(java.io.InputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseDelimitedFrom( java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.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(org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination 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( org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Configuration of a specific logging destination (the producer project
     * or the consumer project).
     * 
* * Protobuf type {@code google.api.Logging.LoggingDestination} */ public static final class Builder extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.Logging.LoggingDestination) org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder { public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto .internal_static_google_api_Logging_LoggingDestination_descriptor; } @java.lang.Override protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto .internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.class, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder.class); } // Construct using org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); monitoredResource_ = ""; logs_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto .internal_static_google_api_Logging_LoggingDestination_descriptor; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getDefaultInstanceForType() { return org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.getDefaultInstance(); } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination build() { org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination buildPartial() { org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination result = new org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination(this); int from_bitField0_ = bitField0_; result.monitoredResource_ = monitoredResource_; if (((bitField0_ & 0x00000001) != 0)) { logs_ = logs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.logs_ = logs_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) { if (other instanceof org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination) { return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination other) { if (other == org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.getDefaultInstance()) return this; if (!other.getMonitoredResource().isEmpty()) { monitoredResource_ = other.monitoredResource_; onChanged(); } if (!other.logs_.isEmpty()) { if (logs_.isEmpty()) { logs_ = other.logs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLogsIsMutable(); logs_.addAll(other.logs_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object monitoredResource_ = ""; /** * * *
       * The monitored resource type. The type must be defined in the
       * [Service.monitored_resources][google.api.Service.monitored_resources] section.
       * 
* * string monitored_resource = 3; * * @return The monitoredResource. */ public java.lang.String getMonitoredResource() { java.lang.Object ref = monitoredResource_; if (!(ref instanceof java.lang.String)) { org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs = (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The monitored resource type. The type must be defined in the
       * [Service.monitored_resources][google.api.Service.monitored_resources] section.
       * 
* * string monitored_resource = 3; * * @return The bytes for monitoredResource. */ public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getMonitoredResourceBytes() { java.lang.Object ref = monitoredResource_; if (ref instanceof String) { org.apache.rocketmq.shaded.com.google.protobuf.ByteString b = org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The monitored resource type. The type must be defined in the
       * [Service.monitored_resources][google.api.Service.monitored_resources] section.
       * 
* * string monitored_resource = 3; * * @param value The monitoredResource to set. * @return This builder for chaining. */ public Builder setMonitoredResource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } monitoredResource_ = value; onChanged(); return this; } /** * * *
       * The monitored resource type. The type must be defined in the
       * [Service.monitored_resources][google.api.Service.monitored_resources] section.
       * 
* * string monitored_resource = 3; * * @return This builder for chaining. */ public Builder clearMonitoredResource() { monitoredResource_ = getDefaultInstance().getMonitoredResource(); onChanged(); return this; } /** * * *
       * The monitored resource type. The type must be defined in the
       * [Service.monitored_resources][google.api.Service.monitored_resources] section.
       * 
* * string monitored_resource = 3; * * @param value The bytes for monitoredResource to set. * @return This builder for chaining. */ public Builder setMonitoredResourceBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); monitoredResource_ = value; onChanged(); return this; } private org.apache.rocketmq.shaded.com.google.protobuf.LazyStringList logs_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLogsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logs_ = new org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList(logs_); bitField0_ |= 0x00000001; } } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @return A list containing the logs. */ public org.apache.rocketmq.shaded.com.google.protobuf.ProtocolStringList getLogsList() { return logs_.getUnmodifiableView(); } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @return The count of logs. */ public int getLogsCount() { return logs_.size(); } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @param index The index of the element to return. * @return The logs at the given index. */ public java.lang.String getLogs(int index) { return logs_.get(index); } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @param index The index of the value to return. * @return The bytes of the logs at the given index. */ public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getLogsBytes(int index) { return logs_.getByteString(index); } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @param index The index to set the value at. * @param value The logs to set. * @return This builder for chaining. */ public Builder setLogs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.set(index, value); onChanged(); return this; } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @param value The logs to add. * @return This builder for chaining. */ public Builder addLogs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.add(value); onChanged(); return this; } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @param values The logs to add. * @return This builder for chaining. */ public Builder addAllLogs(java.lang.Iterable values) { ensureLogsIsMutable(); org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); onChanged(); return this; } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @return This builder for chaining. */ public Builder clearLogs() { logs_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Names of the logs to be sent to this destination. Each name must
       * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
       * not a domain scoped name, it will be automatically prefixed with
       * the service name followed by "/".
       * 
* * repeated string logs = 1; * * @param value The bytes of the logs to add. * @return This builder for chaining. */ public Builder addLogsBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLogsIsMutable(); logs_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.Logging.LoggingDestination) } // @@protoc_insertion_point(class_scope:google.api.Logging.LoggingDestination) private static final org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination(); } public static org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER = new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public LoggingDestination parsePartialFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return new LoggingDestination(input, extensionRegistry); } }; public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER = 1; private java.util.List producerDestinations_; /** * * *
   * Logging configurations for sending logs to the producer project.
   * There can be multiple producer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one producer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ @java.lang.Override public java.util.List getProducerDestinationsList() { return producerDestinations_; } /** * * *
   * Logging configurations for sending logs to the producer project.
   * There can be multiple producer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one producer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ @java.lang.Override public java.util.List getProducerDestinationsOrBuilderList() { return producerDestinations_; } /** * * *
   * Logging configurations for sending logs to the producer project.
   * There can be multiple producer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one producer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ @java.lang.Override public int getProducerDestinationsCount() { return producerDestinations_.size(); } /** * * *
   * Logging configurations for sending logs to the producer project.
   * There can be multiple producer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one producer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getProducerDestinations(int index) { return producerDestinations_.get(index); } /** * * *
   * Logging configurations for sending logs to the producer project.
   * There can be multiple producer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one producer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder( int index) { return producerDestinations_.get(index); } public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 2; private java.util.List consumerDestinations_; /** * * *
   * Logging configurations for sending logs to the consumer project.
   * There can be multiple consumer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one consumer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ @java.lang.Override public java.util.List getConsumerDestinationsList() { return consumerDestinations_; } /** * * *
   * Logging configurations for sending logs to the consumer project.
   * There can be multiple consumer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one consumer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ @java.lang.Override public java.util.List getConsumerDestinationsOrBuilderList() { return consumerDestinations_; } /** * * *
   * Logging configurations for sending logs to the consumer project.
   * There can be multiple consumer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one consumer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ @java.lang.Override public int getConsumerDestinationsCount() { return consumerDestinations_.size(); } /** * * *
   * Logging configurations for sending logs to the consumer project.
   * There can be multiple consumer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one consumer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getConsumerDestinations(int index) { return consumerDestinations_.get(index); } /** * * *
   * Logging configurations for sending logs to the consumer project.
   * There can be multiple consumer destinations, each one must have a
   * different monitored resource type. A log can be used in at most
   * one consumer destination.
   * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder( int index) { return consumerDestinations_.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(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < producerDestinations_.size(); i++) { output.writeMessage(1, producerDestinations_.get(i)); } for (int i = 0; i < consumerDestinations_.size(); i++) { output.writeMessage(2, consumerDestinations_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < producerDestinations_.size(); i++) { size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(1, producerDestinations_.get(i)); } for (int i = 0; i < consumerDestinations_.size(); i++) { size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(2, consumerDestinations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Logging)) { return super.equals(obj); } org.apache.rocketmq.shaded.com.google.api.Logging other = (org.apache.rocketmq.shaded.com.google.api.Logging) obj; if (!getProducerDestinationsList().equals(other.getProducerDestinationsList())) return false; if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getProducerDestinationsCount() > 0) { hash = (37 * hash) + PRODUCER_DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getProducerDestinationsList().hashCode(); } if (getConsumerDestinationsCount() > 0) { hash = (37 * hash) + CONSUMER_DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getConsumerDestinationsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom(java.nio.ByteBuffer data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom( java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom(org.apache.rocketmq.shaded.com.google.protobuf.ByteString data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.ByteString data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom(byte[] data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom( byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom(java.io.InputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom( java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseDelimitedFrom( java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom(org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.api.Logging parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.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(org.apache.rocketmq.shaded.com.google.api.Logging 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(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Logging configuration of the service.
   * The following example shows how to configure logs to be sent to the
   * producer and consumer projects. In the example, the `activity_history`
   * log is sent to both the producer and consumer projects, whereas the
   * `purchase_history` log is only sent to the producer project.
   *     monitored_resources:
   *     - type: library.googleapis.com/branch
   *       labels:
   *       - key: /city
   *         description: The city where the library branch is located in.
   *       - key: /name
   *         description: The name of the branch.
   *     logs:
   *     - name: activity_history
   *       labels:
   *       - key: /customer_id
   *     - name: purchase_history
   *     logging:
   *       producer_destinations:
   *       - monitored_resource: library.googleapis.com/branch
   *         logs:
   *         - activity_history
   *         - purchase_history
   *       consumer_destinations:
   *       - monitored_resource: library.googleapis.com/branch
   *         logs:
   *         - activity_history
   * 
* * Protobuf type {@code google.api.Logging} */ public static final class Builder extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.Logging) org.apache.rocketmq.shaded.com.google.api.LoggingOrBuilder { public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor; } @java.lang.Override protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto.internal_static_google_api_Logging_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.rocketmq.shaded.com.google.api.Logging.class, org.apache.rocketmq.shaded.com.google.api.Logging.Builder.class); } // Construct using org.apache.rocketmq.shaded.com.google.api.Logging.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProducerDestinationsFieldBuilder(); getConsumerDestinationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (producerDestinationsBuilder_ == null) { producerDestinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { producerDestinationsBuilder_.clear(); } if (consumerDestinationsBuilder_ == null) { consumerDestinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { consumerDestinationsBuilder_.clear(); } return this; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.rocketmq.shaded.com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging getDefaultInstanceForType() { return org.apache.rocketmq.shaded.com.google.api.Logging.getDefaultInstance(); } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging build() { org.apache.rocketmq.shaded.com.google.api.Logging result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging buildPartial() { org.apache.rocketmq.shaded.com.google.api.Logging result = new org.apache.rocketmq.shaded.com.google.api.Logging(this); int from_bitField0_ = bitField0_; if (producerDestinationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_); bitField0_ = (bitField0_ & ~0x00000001); } result.producerDestinations_ = producerDestinations_; } else { result.producerDestinations_ = producerDestinationsBuilder_.build(); } if (consumerDestinationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_); bitField0_ = (bitField0_ & ~0x00000002); } result.consumerDestinations_ = consumerDestinations_; } else { result.consumerDestinations_ = consumerDestinationsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) { if (other instanceof org.apache.rocketmq.shaded.com.google.api.Logging) { return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Logging) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Logging other) { if (other == org.apache.rocketmq.shaded.com.google.api.Logging.getDefaultInstance()) return this; if (producerDestinationsBuilder_ == null) { if (!other.producerDestinations_.isEmpty()) { if (producerDestinations_.isEmpty()) { producerDestinations_ = other.producerDestinations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureProducerDestinationsIsMutable(); producerDestinations_.addAll(other.producerDestinations_); } onChanged(); } } else { if (!other.producerDestinations_.isEmpty()) { if (producerDestinationsBuilder_.isEmpty()) { producerDestinationsBuilder_.dispose(); producerDestinationsBuilder_ = null; producerDestinations_ = other.producerDestinations_; bitField0_ = (bitField0_ & ~0x00000001); producerDestinationsBuilder_ = org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProducerDestinationsFieldBuilder() : null; } else { producerDestinationsBuilder_.addAllMessages(other.producerDestinations_); } } } if (consumerDestinationsBuilder_ == null) { if (!other.consumerDestinations_.isEmpty()) { if (consumerDestinations_.isEmpty()) { consumerDestinations_ = other.consumerDestinations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConsumerDestinationsIsMutable(); consumerDestinations_.addAll(other.consumerDestinations_); } onChanged(); } } else { if (!other.consumerDestinations_.isEmpty()) { if (consumerDestinationsBuilder_.isEmpty()) { consumerDestinationsBuilder_.dispose(); consumerDestinationsBuilder_ = null; consumerDestinations_ = other.consumerDestinations_; bitField0_ = (bitField0_ & ~0x00000002); consumerDestinationsBuilder_ = org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConsumerDestinationsFieldBuilder() : null; } else { consumerDestinationsBuilder_.addAllMessages(other.consumerDestinations_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.rocketmq.shaded.com.google.api.Logging parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.rocketmq.shaded.com.google.api.Logging) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List producerDestinations_ = java.util.Collections.emptyList(); private void ensureProducerDestinationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { producerDestinations_ = new java.util.ArrayList( producerDestinations_); bitField0_ |= 0x00000001; } } private org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3< org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder> producerDestinationsBuilder_; /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public java.util.List getProducerDestinationsList() { if (producerDestinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(producerDestinations_); } else { return producerDestinationsBuilder_.getMessageList(); } } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public int getProducerDestinationsCount() { if (producerDestinationsBuilder_ == null) { return producerDestinations_.size(); } else { return producerDestinationsBuilder_.getCount(); } } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getProducerDestinations(int index) { if (producerDestinationsBuilder_ == null) { return producerDestinations_.get(index); } else { return producerDestinationsBuilder_.getMessage(index); } } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder setProducerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination value) { if (producerDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProducerDestinationsIsMutable(); producerDestinations_.set(index, value); onChanged(); } else { producerDestinationsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder setProducerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder builderForValue) { if (producerDestinationsBuilder_ == null) { ensureProducerDestinationsIsMutable(); producerDestinations_.set(index, builderForValue.build()); onChanged(); } else { producerDestinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder addProducerDestinations(org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination value) { if (producerDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProducerDestinationsIsMutable(); producerDestinations_.add(value); onChanged(); } else { producerDestinationsBuilder_.addMessage(value); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder addProducerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination value) { if (producerDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProducerDestinationsIsMutable(); producerDestinations_.add(index, value); onChanged(); } else { producerDestinationsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder addProducerDestinations( org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder builderForValue) { if (producerDestinationsBuilder_ == null) { ensureProducerDestinationsIsMutable(); producerDestinations_.add(builderForValue.build()); onChanged(); } else { producerDestinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder addProducerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder builderForValue) { if (producerDestinationsBuilder_ == null) { ensureProducerDestinationsIsMutable(); producerDestinations_.add(index, builderForValue.build()); onChanged(); } else { producerDestinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder addAllProducerDestinations( java.lang.Iterable values) { if (producerDestinationsBuilder_ == null) { ensureProducerDestinationsIsMutable(); org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, producerDestinations_); onChanged(); } else { producerDestinationsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder clearProducerDestinations() { if (producerDestinationsBuilder_ == null) { producerDestinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { producerDestinationsBuilder_.clear(); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public Builder removeProducerDestinations(int index) { if (producerDestinationsBuilder_ == null) { ensureProducerDestinationsIsMutable(); producerDestinations_.remove(index); onChanged(); } else { producerDestinationsBuilder_.remove(index); } return this; } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder getProducerDestinationsBuilder( int index) { return getProducerDestinationsFieldBuilder().getBuilder(index); } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder( int index) { if (producerDestinationsBuilder_ == null) { return producerDestinations_.get(index); } else { return producerDestinationsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public java.util.List getProducerDestinationsOrBuilderList() { if (producerDestinationsBuilder_ != null) { return producerDestinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(producerDestinations_); } } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder addProducerDestinationsBuilder() { return getProducerDestinationsFieldBuilder() .addBuilder(org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.getDefaultInstance()); } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder addProducerDestinationsBuilder( int index) { return getProducerDestinationsFieldBuilder() .addBuilder(index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.getDefaultInstance()); } /** * * *
     * Logging configurations for sending logs to the producer project.
     * There can be multiple producer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one producer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ public java.util.List getProducerDestinationsBuilderList() { return getProducerDestinationsFieldBuilder().getBuilderList(); } private org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3< org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder> getProducerDestinationsFieldBuilder() { if (producerDestinationsBuilder_ == null) { producerDestinationsBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3< org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder>( producerDestinations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); producerDestinations_ = null; } return producerDestinationsBuilder_; } private java.util.List consumerDestinations_ = java.util.Collections.emptyList(); private void ensureConsumerDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { consumerDestinations_ = new java.util.ArrayList( consumerDestinations_); bitField0_ |= 0x00000002; } } private org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3< org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder> consumerDestinationsBuilder_; /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public java.util.List getConsumerDestinationsList() { if (consumerDestinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(consumerDestinations_); } else { return consumerDestinationsBuilder_.getMessageList(); } } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public int getConsumerDestinationsCount() { if (consumerDestinationsBuilder_ == null) { return consumerDestinations_.size(); } else { return consumerDestinationsBuilder_.getCount(); } } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination getConsumerDestinations(int index) { if (consumerDestinationsBuilder_ == null) { return consumerDestinations_.get(index); } else { return consumerDestinationsBuilder_.getMessage(index); } } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder setConsumerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination value) { if (consumerDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumerDestinationsIsMutable(); consumerDestinations_.set(index, value); onChanged(); } else { consumerDestinationsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder setConsumerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder builderForValue) { if (consumerDestinationsBuilder_ == null) { ensureConsumerDestinationsIsMutable(); consumerDestinations_.set(index, builderForValue.build()); onChanged(); } else { consumerDestinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder addConsumerDestinations(org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination value) { if (consumerDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumerDestinationsIsMutable(); consumerDestinations_.add(value); onChanged(); } else { consumerDestinationsBuilder_.addMessage(value); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder addConsumerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination value) { if (consumerDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumerDestinationsIsMutable(); consumerDestinations_.add(index, value); onChanged(); } else { consumerDestinationsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder addConsumerDestinations( org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder builderForValue) { if (consumerDestinationsBuilder_ == null) { ensureConsumerDestinationsIsMutable(); consumerDestinations_.add(builderForValue.build()); onChanged(); } else { consumerDestinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder addConsumerDestinations( int index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder builderForValue) { if (consumerDestinationsBuilder_ == null) { ensureConsumerDestinationsIsMutable(); consumerDestinations_.add(index, builderForValue.build()); onChanged(); } else { consumerDestinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder addAllConsumerDestinations( java.lang.Iterable values) { if (consumerDestinationsBuilder_ == null) { ensureConsumerDestinationsIsMutable(); org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, consumerDestinations_); onChanged(); } else { consumerDestinationsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder clearConsumerDestinations() { if (consumerDestinationsBuilder_ == null) { consumerDestinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { consumerDestinationsBuilder_.clear(); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public Builder removeConsumerDestinations(int index) { if (consumerDestinationsBuilder_ == null) { ensureConsumerDestinationsIsMutable(); consumerDestinations_.remove(index); onChanged(); } else { consumerDestinationsBuilder_.remove(index); } return this; } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder getConsumerDestinationsBuilder( int index) { return getConsumerDestinationsFieldBuilder().getBuilder(index); } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder( int index) { if (consumerDestinationsBuilder_ == null) { return consumerDestinations_.get(index); } else { return consumerDestinationsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public java.util.List getConsumerDestinationsOrBuilderList() { if (consumerDestinationsBuilder_ != null) { return consumerDestinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(consumerDestinations_); } } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder addConsumerDestinationsBuilder() { return getConsumerDestinationsFieldBuilder() .addBuilder(org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.getDefaultInstance()); } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder addConsumerDestinationsBuilder( int index) { return getConsumerDestinationsFieldBuilder() .addBuilder(index, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.getDefaultInstance()); } /** * * *
     * Logging configurations for sending logs to the consumer project.
     * There can be multiple consumer destinations, each one must have a
     * different monitored resource type. A log can be used in at most
     * one consumer destination.
     * 
* * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ public java.util.List getConsumerDestinationsBuilderList() { return getConsumerDestinationsFieldBuilder().getBuilderList(); } private org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3< org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder> getConsumerDestinationsFieldBuilder() { if (consumerDestinationsBuilder_ == null) { consumerDestinationsBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3< org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestination.Builder, org.apache.rocketmq.shaded.com.google.api.Logging.LoggingDestinationOrBuilder>( consumerDestinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); consumerDestinations_ = null; } return consumerDestinationsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.Logging) } // @@protoc_insertion_point(class_scope:google.api.Logging) private static final org.apache.rocketmq.shaded.com.google.api.Logging DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.api.Logging(); } public static org.apache.rocketmq.shaded.com.google.api.Logging getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER = new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Logging parsePartialFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return new Logging(input, extensionRegistry); } }; public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.api.Logging getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy