Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 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/service.proto
package com.aliyun.openservices.ons.shaded.com.google.api;
/**
*
*
*
* `Service` is the root object of Google service configuration schema. It
* describes basic information about a service, such as the name and the
* title, and delegates other aspects to sub-sections. Each sub-section is
* either a proto message or a repeated proto message that configures a
* specific aspect, such as auth. See each proto message definition for details.
* Example:
* type: google.api.Service
* config_version: 3
* name: calendar.googleapis.com
* title: Google Calendar API
* apis:
* - name: google.calendar.v3.Calendar
* authentication:
* providers:
* - id: google_calendar_auth
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
* issuer: https://securetoken.google.com
* rules:
* - selector: "*"
* requirements:
* provider_id: google_calendar_auth
*
*
* Protobuf type {@code google.api.Service}
*/
public final class Service extends com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Service)
ServiceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Service.newBuilder() to construct.
private Service(com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Service() {
name_ = "";
id_ = "";
title_ = "";
producerProjectId_ = "";
apis_ = java.util.Collections.emptyList();
types_ = java.util.Collections.emptyList();
enums_ = java.util.Collections.emptyList();
endpoints_ = java.util.Collections.emptyList();
logs_ = java.util.Collections.emptyList();
metrics_ = java.util.Collections.emptyList();
monitoredResources_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Service();
}
@java.lang.Override
public final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Service(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.aliyun.openservices.ons.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();
name_ = s;
break;
}
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 26:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
apis_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
apis_.add(input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.Api.parser(), extensionRegistry));
break;
}
case 34:
{
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
types_.add(input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.Type.parser(), extensionRegistry));
break;
}
case 42:
{
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
enums_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
enums_.add(input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.Enum.parser(), extensionRegistry));
break;
}
case 50:
{
com.aliyun.openservices.ons.shaded.com.google.api.Documentation.Builder subBuilder = null;
if (documentation_ != null) {
subBuilder = documentation_.toBuilder();
}
documentation_ =
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Documentation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(documentation_);
documentation_ = subBuilder.buildPartial();
}
break;
}
case 66:
{
com.aliyun.openservices.ons.shaded.com.google.api.Backend.Builder subBuilder = null;
if (backend_ != null) {
subBuilder = backend_.toBuilder();
}
backend_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Backend.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backend_);
backend_ = subBuilder.buildPartial();
}
break;
}
case 74:
{
com.aliyun.openservices.ons.shaded.com.google.api.Http.Builder subBuilder = null;
if (http_ != null) {
subBuilder = http_.toBuilder();
}
http_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Http.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(http_);
http_ = subBuilder.buildPartial();
}
break;
}
case 82:
{
com.aliyun.openservices.ons.shaded.com.google.api.Quota.Builder subBuilder = null;
if (quota_ != null) {
subBuilder = quota_.toBuilder();
}
quota_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Quota.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(quota_);
quota_ = subBuilder.buildPartial();
}
break;
}
case 90:
{
com.aliyun.openservices.ons.shaded.com.google.api.Authentication.Builder subBuilder = null;
if (authentication_ != null) {
subBuilder = authentication_.toBuilder();
}
authentication_ =
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Authentication.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(authentication_);
authentication_ = subBuilder.buildPartial();
}
break;
}
case 98:
{
com.aliyun.openservices.ons.shaded.com.google.api.Context.Builder subBuilder = null;
if (context_ != null) {
subBuilder = context_.toBuilder();
}
context_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Context.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(context_);
context_ = subBuilder.buildPartial();
}
break;
}
case 122:
{
com.aliyun.openservices.ons.shaded.com.google.api.Usage.Builder subBuilder = null;
if (usage_ != null) {
subBuilder = usage_.toBuilder();
}
usage_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Usage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(usage_);
usage_ = subBuilder.buildPartial();
}
break;
}
case 146:
{
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
endpoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
endpoints_.add(
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Endpoint.parser(), extensionRegistry));
break;
}
case 162:
{
com.aliyun.openservices.ons.shaded.com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (configVersion_ != null) {
subBuilder = configVersion_.toBuilder();
}
configVersion_ =
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(configVersion_);
configVersion_ = subBuilder.buildPartial();
}
break;
}
case 170:
{
com.aliyun.openservices.ons.shaded.com.google.api.Control.Builder subBuilder = null;
if (control_ != null) {
subBuilder = control_.toBuilder();
}
control_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Control.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(control_);
control_ = subBuilder.buildPartial();
}
break;
}
case 178:
{
java.lang.String s = input.readStringRequireUtf8();
producerProjectId_ = s;
break;
}
case 186:
{
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
logs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
logs_.add(
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.LogDescriptor.parser(), extensionRegistry));
break;
}
case 194:
{
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
metrics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
metrics_.add(
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.MetricDescriptor.parser(), extensionRegistry));
break;
}
case 202:
{
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
monitoredResources_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
monitoredResources_.add(
input.readMessage(
com.aliyun.openservices.ons.shaded.com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry));
break;
}
case 210:
{
com.aliyun.openservices.ons.shaded.com.google.api.Billing.Builder subBuilder = null;
if (billing_ != null) {
subBuilder = billing_.toBuilder();
}
billing_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Billing.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(billing_);
billing_ = subBuilder.buildPartial();
}
break;
}
case 218:
{
com.aliyun.openservices.ons.shaded.com.google.api.Logging.Builder subBuilder = null;
if (logging_ != null) {
subBuilder = logging_.toBuilder();
}
logging_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Logging.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logging_);
logging_ = subBuilder.buildPartial();
}
break;
}
case 226:
{
com.aliyun.openservices.ons.shaded.com.google.api.Monitoring.Builder subBuilder = null;
if (monitoring_ != null) {
subBuilder = monitoring_.toBuilder();
}
monitoring_ =
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.Monitoring.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(monitoring_);
monitoring_ = subBuilder.buildPartial();
}
break;
}
case 234:
{
com.aliyun.openservices.ons.shaded.com.google.api.SystemParameters.Builder subBuilder = null;
if (systemParameters_ != null) {
subBuilder = systemParameters_.toBuilder();
}
systemParameters_ =
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.SystemParameters.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(systemParameters_);
systemParameters_ = subBuilder.buildPartial();
}
break;
}
case 266:
{
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 298:
{
com.aliyun.openservices.ons.shaded.com.google.api.SourceInfo.Builder subBuilder = null;
if (sourceInfo_ != null) {
subBuilder = sourceInfo_.toBuilder();
}
sourceInfo_ =
input.readMessage(com.aliyun.openservices.ons.shaded.com.google.api.SourceInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sourceInfo_);
sourceInfo_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
apis_ = java.util.Collections.unmodifiableList(apis_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
types_ = java.util.Collections.unmodifiableList(types_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
enums_ = java.util.Collections.unmodifiableList(enums_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
endpoints_ = java.util.Collections.unmodifiableList(endpoints_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
logs_ = java.util.Collections.unmodifiableList(logs_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
metrics_ = java.util.Collections.unmodifiableList(metrics_);
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.aliyun.openservices.ons.shaded.com.google.api.ServiceProto.internal_static_google_api_Service_descriptor;
}
@java.lang.Override
protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.ons.shaded.com.google.api.ServiceProto.internal_static_google_api_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.ons.shaded.com.google.api.Service.class, com.aliyun.openservices.ons.shaded.com.google.api.Service.Builder.class);
}
public static final int CONFIG_VERSION_FIELD_NUMBER = 20;
private com.aliyun.openservices.ons.shaded.com.google.protobuf.UInt32Value configVersion_;
/**
*
*
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
*
* .google.protobuf.UInt32Value config_version = 20;
*
* @return Whether the configVersion field is set.
*/
@java.lang.Override
public boolean hasConfigVersion() {
return configVersion_ != null;
}
/**
*
*
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
*
* .google.protobuf.UInt32Value config_version = 20;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
return getConfigVersion();
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 33;
private volatile java.lang.Object id_;
/**
*
*
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
*
* string id = 33;
*
* @return The bytes for id.
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object title_;
/**
*
*
*
*
* string producer_project_id = 22;
*
* @return The bytes for producerProjectId.
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getProducerProjectIdBytes() {
java.lang.Object ref = producerProjectId_;
if (ref instanceof java.lang.String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
producerProjectId_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int APIS_FIELD_NUMBER = 3;
private java.util.List apis_;
/**
*
*
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
*
* repeated .google.protobuf.Api apis = 3;
*/
@java.lang.Override
public int getApisCount() {
return apis_.size();
}
/**
*
*
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
*
* repeated .google.protobuf.Api apis = 3;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ApiOrBuilder getApisOrBuilder(int index) {
return apis_.get(index);
}
public static final int TYPES_FIELD_NUMBER = 4;
private java.util.List types_;
/**
*
*
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
*
* repeated .google.protobuf.Type types = 4;
*/
@java.lang.Override
public int getTypesCount() {
return types_.size();
}
/**
*
*
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
*
* repeated .google.protobuf.Type types = 4;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) {
return types_.get(index);
}
public static final int ENUMS_FIELD_NUMBER = 5;
private java.util.List enums_;
/**
*
*
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
*
* repeated .google.protobuf.Enum enums = 5;
*/
@java.lang.Override
public int getEnumsCount() {
return enums_.size();
}
/**
*
*
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
*
* repeated .google.protobuf.Enum enums = 5;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index) {
return enums_.get(index);
}
public static final int DOCUMENTATION_FIELD_NUMBER = 6;
private com.aliyun.openservices.ons.shaded.com.google.api.Documentation documentation_;
/**
*
*
*
* Additional API documentation.
*
*
* .google.api.Documentation documentation = 6;
*
* @return Whether the documentation field is set.
*/
@java.lang.Override
public boolean hasDocumentation() {
return documentation_ != null;
}
/**
*
*
*
* Configuration controlling usage of this service.
*
*
* .google.api.Usage usage = 15;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.UsageOrBuilder getUsageOrBuilder() {
return getUsage();
}
public static final int ENDPOINTS_FIELD_NUMBER = 18;
private java.util.List endpoints_;
/**
*
*
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
*
* repeated .google.api.Endpoint endpoints = 18;
*/
@java.lang.Override
public int getEndpointsCount() {
return endpoints_.size();
}
/**
*
*
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
*
* repeated .google.api.Endpoint endpoints = 18;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.EndpointOrBuilder getEndpointsOrBuilder(int index) {
return endpoints_.get(index);
}
public static final int CONTROL_FIELD_NUMBER = 21;
private com.aliyun.openservices.ons.shaded.com.google.api.Control control_;
/**
*
*
*
* Configuration for the service control plane.
*
*
* .google.api.Control control = 21;
*
* @return Whether the control field is set.
*/
@java.lang.Override
public boolean hasControl() {
return control_ != null;
}
/**
*
*
*
* Configuration for the service control plane.
*
*
* .google.api.Control control = 21;
*
* @return The control.
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.Control getControl() {
return control_ == null ? com.aliyun.openservices.ons.shaded.com.google.api.Control.getDefaultInstance() : control_;
}
/**
*
*
*
* Configuration for the service control plane.
*
*
* .google.api.Control control = 21;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.ControlOrBuilder getControlOrBuilder() {
return getControl();
}
public static final int LOGS_FIELD_NUMBER = 23;
private java.util.List logs_;
/**
*
*
*
*
* repeated .google.api.MetricDescriptor metrics = 24;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(int index) {
return metrics_.get(index);
}
public static final int MONITORED_RESOURCES_FIELD_NUMBER = 25;
private java.util.List monitoredResources_;
/**
*
*
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
*/
@java.lang.Override
public int getMonitoredResourcesCount() {
return monitoredResources_.size();
}
/**
*
*
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder(
int index) {
return monitoredResources_.get(index);
}
public static final int BILLING_FIELD_NUMBER = 26;
private com.aliyun.openservices.ons.shaded.com.google.api.Billing billing_;
/**
*
*
*
* Billing configuration.
*
*
* .google.api.Billing billing = 26;
*
* @return Whether the billing field is set.
*/
@java.lang.Override
public boolean hasBilling() {
return billing_ != null;
}
/**
*
*
*
* Output only. The source information for this configuration if available.
*
*
* .google.api.SourceInfo source_info = 37;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() {
return getSourceInfo();
}
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.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getTitleBytes().isEmpty()) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
output.writeMessage(3, apis_.get(i));
}
for (int i = 0; i < types_.size(); i++) {
output.writeMessage(4, types_.get(i));
}
for (int i = 0; i < enums_.size(); i++) {
output.writeMessage(5, enums_.get(i));
}
if (documentation_ != null) {
output.writeMessage(6, getDocumentation());
}
if (backend_ != null) {
output.writeMessage(8, getBackend());
}
if (http_ != null) {
output.writeMessage(9, getHttp());
}
if (quota_ != null) {
output.writeMessage(10, getQuota());
}
if (authentication_ != null) {
output.writeMessage(11, getAuthentication());
}
if (context_ != null) {
output.writeMessage(12, getContext());
}
if (usage_ != null) {
output.writeMessage(15, getUsage());
}
for (int i = 0; i < endpoints_.size(); i++) {
output.writeMessage(18, endpoints_.get(i));
}
if (configVersion_ != null) {
output.writeMessage(20, getConfigVersion());
}
if (control_ != null) {
output.writeMessage(21, getControl());
}
if (!getProducerProjectIdBytes().isEmpty()) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 22, producerProjectId_);
}
for (int i = 0; i < logs_.size(); i++) {
output.writeMessage(23, logs_.get(i));
}
for (int i = 0; i < metrics_.size(); i++) {
output.writeMessage(24, metrics_.get(i));
}
for (int i = 0; i < monitoredResources_.size(); i++) {
output.writeMessage(25, monitoredResources_.get(i));
}
if (billing_ != null) {
output.writeMessage(26, getBilling());
}
if (logging_ != null) {
output.writeMessage(27, getLogging());
}
if (monitoring_ != null) {
output.writeMessage(28, getMonitoring());
}
if (systemParameters_ != null) {
output.writeMessage(29, getSystemParameters());
}
if (!getIdBytes().isEmpty()) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 33, id_);
}
if (sourceInfo_ != null) {
output.writeMessage(37, getSourceInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getTitleBytes().isEmpty()) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(3, apis_.get(i));
}
for (int i = 0; i < types_.size(); i++) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(4, types_.get(i));
}
for (int i = 0; i < enums_.size(); i++) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(5, enums_.get(i));
}
if (documentation_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDocumentation());
}
if (backend_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBackend());
}
if (http_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHttp());
}
if (quota_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(10, getQuota());
}
if (authentication_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAuthentication());
}
if (context_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContext());
}
if (usage_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUsage());
}
for (int i = 0; i < endpoints_.size(); i++) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(18, endpoints_.get(i));
}
if (configVersion_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(20, getConfigVersion());
}
if (control_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(21, getControl());
}
if (!getProducerProjectIdBytes().isEmpty()) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(22, producerProjectId_);
}
for (int i = 0; i < logs_.size(); i++) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(23, logs_.get(i));
}
for (int i = 0; i < metrics_.size(); i++) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(24, metrics_.get(i));
}
for (int i = 0; i < monitoredResources_.size(); i++) {
size +=
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(25, monitoredResources_.get(i));
}
if (billing_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(26, getBilling());
}
if (logging_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(27, getLogging());
}
if (monitoring_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMonitoring());
}
if (systemParameters_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(29, getSystemParameters());
}
if (!getIdBytes().isEmpty()) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(33, id_);
}
if (sourceInfo_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(37, getSourceInfo());
}
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 com.aliyun.openservices.ons.shaded.com.google.api.Service)) {
return super.equals(obj);
}
com.aliyun.openservices.ons.shaded.com.google.api.Service other = (com.aliyun.openservices.ons.shaded.com.google.api.Service) obj;
if (hasConfigVersion() != other.hasConfigVersion()) return false;
if (hasConfigVersion()) {
if (!getConfigVersion().equals(other.getConfigVersion())) return false;
}
if (!getName().equals(other.getName())) return false;
if (!getId().equals(other.getId())) return false;
if (!getTitle().equals(other.getTitle())) return false;
if (!getProducerProjectId().equals(other.getProducerProjectId())) return false;
if (!getApisList().equals(other.getApisList())) return false;
if (!getTypesList().equals(other.getTypesList())) return false;
if (!getEnumsList().equals(other.getEnumsList())) return false;
if (hasDocumentation() != other.hasDocumentation()) return false;
if (hasDocumentation()) {
if (!getDocumentation().equals(other.getDocumentation())) return false;
}
if (hasBackend() != other.hasBackend()) return false;
if (hasBackend()) {
if (!getBackend().equals(other.getBackend())) return false;
}
if (hasHttp() != other.hasHttp()) return false;
if (hasHttp()) {
if (!getHttp().equals(other.getHttp())) return false;
}
if (hasQuota() != other.hasQuota()) return false;
if (hasQuota()) {
if (!getQuota().equals(other.getQuota())) return false;
}
if (hasAuthentication() != other.hasAuthentication()) return false;
if (hasAuthentication()) {
if (!getAuthentication().equals(other.getAuthentication())) return false;
}
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext().equals(other.getContext())) return false;
}
if (hasUsage() != other.hasUsage()) return false;
if (hasUsage()) {
if (!getUsage().equals(other.getUsage())) return false;
}
if (!getEndpointsList().equals(other.getEndpointsList())) return false;
if (hasControl() != other.hasControl()) return false;
if (hasControl()) {
if (!getControl().equals(other.getControl())) return false;
}
if (!getLogsList().equals(other.getLogsList())) return false;
if (!getMetricsList().equals(other.getMetricsList())) return false;
if (!getMonitoredResourcesList().equals(other.getMonitoredResourcesList())) return false;
if (hasBilling() != other.hasBilling()) return false;
if (hasBilling()) {
if (!getBilling().equals(other.getBilling())) return false;
}
if (hasLogging() != other.hasLogging()) return false;
if (hasLogging()) {
if (!getLogging().equals(other.getLogging())) return false;
}
if (hasMonitoring() != other.hasMonitoring()) return false;
if (hasMonitoring()) {
if (!getMonitoring().equals(other.getMonitoring())) return false;
}
if (hasSystemParameters() != other.hasSystemParameters()) return false;
if (hasSystemParameters()) {
if (!getSystemParameters().equals(other.getSystemParameters())) return false;
}
if (hasSourceInfo() != other.hasSourceInfo()) return false;
if (hasSourceInfo()) {
if (!getSourceInfo().equals(other.getSourceInfo())) 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 (hasConfigVersion()) {
hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getConfigVersion().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + PRODUCER_PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProducerProjectId().hashCode();
if (getApisCount() > 0) {
hash = (37 * hash) + APIS_FIELD_NUMBER;
hash = (53 * hash) + getApisList().hashCode();
}
if (getTypesCount() > 0) {
hash = (37 * hash) + TYPES_FIELD_NUMBER;
hash = (53 * hash) + getTypesList().hashCode();
}
if (getEnumsCount() > 0) {
hash = (37 * hash) + ENUMS_FIELD_NUMBER;
hash = (53 * hash) + getEnumsList().hashCode();
}
if (hasDocumentation()) {
hash = (37 * hash) + DOCUMENTATION_FIELD_NUMBER;
hash = (53 * hash) + getDocumentation().hashCode();
}
if (hasBackend()) {
hash = (37 * hash) + BACKEND_FIELD_NUMBER;
hash = (53 * hash) + getBackend().hashCode();
}
if (hasHttp()) {
hash = (37 * hash) + HTTP_FIELD_NUMBER;
hash = (53 * hash) + getHttp().hashCode();
}
if (hasQuota()) {
hash = (37 * hash) + QUOTA_FIELD_NUMBER;
hash = (53 * hash) + getQuota().hashCode();
}
if (hasAuthentication()) {
hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER;
hash = (53 * hash) + getAuthentication().hashCode();
}
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
if (hasUsage()) {
hash = (37 * hash) + USAGE_FIELD_NUMBER;
hash = (53 * hash) + getUsage().hashCode();
}
if (getEndpointsCount() > 0) {
hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getEndpointsList().hashCode();
}
if (hasControl()) {
hash = (37 * hash) + CONTROL_FIELD_NUMBER;
hash = (53 * hash) + getControl().hashCode();
}
if (getLogsCount() > 0) {
hash = (37 * hash) + LOGS_FIELD_NUMBER;
hash = (53 * hash) + getLogsList().hashCode();
}
if (getMetricsCount() > 0) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetricsList().hashCode();
}
if (getMonitoredResourcesCount() > 0) {
hash = (37 * hash) + MONITORED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getMonitoredResourcesList().hashCode();
}
if (hasBilling()) {
hash = (37 * hash) + BILLING_FIELD_NUMBER;
hash = (53 * hash) + getBilling().hashCode();
}
if (hasLogging()) {
hash = (37 * hash) + LOGGING_FIELD_NUMBER;
hash = (53 * hash) + getLogging().hashCode();
}
if (hasMonitoring()) {
hash = (37 * hash) + MONITORING_FIELD_NUMBER;
hash = (53 * hash) + getMonitoring().hashCode();
}
if (hasSystemParameters()) {
hash = (37 * hash) + SYSTEM_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getSystemParameters().hashCode();
}
if (hasSourceInfo()) {
hash = (37 * hash) + SOURCE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getSourceInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(java.nio.ByteBuffer data)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(
java.nio.ByteBuffer data, com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString data)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString data,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(byte[] data)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(
byte[] data, com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(
java.io.InputStream input, com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseDelimitedFrom(
java.io.InputStream input, com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.ons.shaded.com.google.api.Service parseFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.aliyun.openservices.ons.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(com.aliyun.openservices.ons.shaded.com.google.api.Service 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.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* `Service` is the root object of Google service configuration schema. It
* describes basic information about a service, such as the name and the
* title, and delegates other aspects to sub-sections. Each sub-section is
* either a proto message or a repeated proto message that configures a
* specific aspect, such as auth. See each proto message definition for details.
* Example:
* type: google.api.Service
* config_version: 3
* name: calendar.googleapis.com
* title: Google Calendar API
* apis:
* - name: google.calendar.v3.Calendar
* authentication:
* providers:
* - id: google_calendar_auth
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
* issuer: https://securetoken.google.com
* rules:
* - selector: "*"
* requirements:
* provider_id: google_calendar_auth
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
*
* .google.protobuf.UInt32Value config_version = 20;
*
* @return Whether the configVersion field is set.
*/
public boolean hasConfigVersion() {
return configVersionBuilder_ != null || configVersion_ != null;
}
/**
*
*
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
*
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
*
* The service name, which is a DNS-like logical identifier for the
* service, such as `calendar.googleapis.com`. The service name
* typically goes through DNS verification to make sure the owner
* of the service also owns the DNS name.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
*
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
*
* string id = 33;
*
* @return The bytes for id.
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
*
* string id = 33;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
*
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
*
* string id = 33;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
*
*
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. Must be no longer than 63 characters
* and only lower case letters, digits, '.', '_' and '-' are allowed. If
* empty, the server may choose to generate one instead.
*
*
* string id = 33;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
*
*
*
*
* string title = 2;
*
* @return The bytes for title.
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The product title for this service.
*
*
* string title = 2;
*
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
*
*
*
* The product title for this service.
*
*
* string title = 2;
*
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
*
*
* The product title for this service.
*
*
* string title = 2;
*
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private java.lang.Object producerProjectId_ = "";
/**
*
*
*
*
* string producer_project_id = 22;
*
* @return The bytes for producerProjectId.
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getProducerProjectIdBytes() {
java.lang.Object ref = producerProjectId_;
if (ref instanceof String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
producerProjectId_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The Google project that owns this service.
*
*
* string producer_project_id = 22;
*
* @param value The producerProjectId to set.
* @return This builder for chaining.
*/
public Builder setProducerProjectId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
producerProjectId_ = value;
onChanged();
return this;
}
/**
*
*
*
* The Google project that owns this service.
*
*
* string producer_project_id = 22;
*
* @return This builder for chaining.
*/
public Builder clearProducerProjectId() {
producerProjectId_ = getDefaultInstance().getProducerProjectId();
onChanged();
return this;
}
/**
*
*
*
* The Google project that owns this service.
*
*
* string producer_project_id = 22;
*
* @param value The bytes for producerProjectId to set.
* @return This builder for chaining.
*/
public Builder setProducerProjectIdBytes(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
producerProjectId_ = value;
onChanged();
return this;
}
private java.util.List apis_ = java.util.Collections.emptyList();
private void ensureApisIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
apis_ = new java.util.ArrayList(apis_);
bitField0_ |= 0x00000001;
}
}
private com.aliyun.openservices.ons.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
com.aliyun.openservices.ons.shaded.com.google.protobuf.Api,
com.aliyun.openservices.ons.shaded.com.google.protobuf.Api.Builder,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ApiOrBuilder>
apisBuilder_;
/**
*
*
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
*
* repeated .google.protobuf.Api apis = 3;
*/
public int getApisCount() {
if (apisBuilder_ == null) {
return apis_.size();
} else {
return apisBuilder_.getCount();
}
}
/**
*
*
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* author, as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
*
* repeated .google.protobuf.Type types = 4;
*/
public int getTypesCount() {
if (typesBuilder_ == null) {
return types_.size();
} else {
return typesBuilder_.getCount();
}
}
/**
*
*
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* automatically included. Messages which are not referenced but
* shall be included, such as types used by the `google.protobuf.Any` type,
* should be listed here by name. Example:
* types:
* - name: google.protobuf.Int32
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
*
* repeated .google.protobuf.Enum enums = 5;
*/
public int getEnumsCount() {
if (enumsBuilder_ == null) {
return enums_.size();
} else {
return enumsBuilder_.getCount();
}
}
/**
*
*
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* included. Enums which are not referenced but shall be included
* should be listed here by name. Example:
* enums:
* - name: google.someapi.v1.SomeEnum
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
*
* repeated .google.api.Endpoint endpoints = 18;
*/
public int getEndpointsCount() {
if (endpointsBuilder_ == null) {
return endpoints_.size();
} else {
return endpointsBuilder_.getCount();
}
}
/**
*
*
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
*/
public int getMonitoredResourcesCount() {
if (monitoredResourcesBuilder_ == null) {
return monitoredResources_.size();
} else {
return monitoredResourcesBuilder_.getCount();
}
}
/**
*
*
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
*/
public Builder setMonitoredResources(
int index, com.aliyun.openservices.ons.shaded.com.google.api.MonitoredResourceDescriptor value) {
if (monitoredResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitoredResourcesIsMutable();
monitoredResources_.set(index, value);
onChanged();
} else {
monitoredResourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
*/
public Builder addMonitoredResources(
int index, com.aliyun.openservices.ons.shaded.com.google.api.MonitoredResourceDescriptor value) {
if (monitoredResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitoredResourcesIsMutable();
monitoredResources_.add(index, value);
onChanged();
} else {
monitoredResourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*
* Defines the monitored resources used by this service. This is required
* by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
*