com.tencent.polaris.specification.api.v1.service.manage.ResponseProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: response.proto
package com.tencent.polaris.specification.api.v1.service.manage;
public final class ResponseProto {
private ResponseProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.Response)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
com.google.protobuf.UInt32Value getCode();
/**
* .google.protobuf.UInt32Value code = 1;
*/
com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder();
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
com.google.protobuf.StringValue getInfo();
/**
* .google.protobuf.StringValue info = 2;
*/
com.google.protobuf.StringValueOrBuilder getInfoOrBuilder();
/**
* .v1.Client client = 3;
* @return Whether the client field is set.
*/
boolean hasClient();
/**
* .v1.Client client = 3;
* @return The client.
*/
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client getClient();
/**
* .v1.Client client = 3;
*/
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder getClientOrBuilder();
/**
* .v1.Namespace namespace = 4;
* @return Whether the namespace field is set.
*/
boolean hasNamespace();
/**
* .v1.Namespace namespace = 4;
* @return The namespace.
*/
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespace();
/**
* .v1.Namespace namespace = 4;
*/
com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespaceOrBuilder();
/**
* .v1.Service service = 5;
* @return Whether the service field is set.
*/
boolean hasService();
/**
* .v1.Service service = 5;
* @return The service.
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService();
/**
* .v1.Service service = 5;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder();
/**
* .v1.Instance instance = 6;
* @return Whether the instance field is set.
*/
boolean hasInstance();
/**
* .v1.Instance instance = 6;
* @return The instance.
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstance();
/**
* .v1.Instance instance = 6;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstanceOrBuilder();
/**
* .v1.Routing routing = 7;
* @return Whether the routing field is set.
*/
boolean hasRouting();
/**
* .v1.Routing routing = 7;
* @return The routing.
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRouting();
/**
* .v1.Routing routing = 7;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingOrBuilder();
/**
* .v1.ServiceAlias alias = 8;
* @return Whether the alias field is set.
*/
boolean hasAlias();
/**
* .v1.ServiceAlias alias = 8;
* @return The alias.
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias getAlias();
/**
* .v1.ServiceAlias alias = 8;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder getAliasOrBuilder();
/**
* .v1.Rule rateLimit = 9;
* @return Whether the rateLimit field is set.
*/
boolean hasRateLimit();
/**
* .v1.Rule rateLimit = 9;
* @return The rateLimit.
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule getRateLimit();
/**
* .v1.Rule rateLimit = 9;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder getRateLimitOrBuilder();
/**
* .v1.CircuitBreaker circuitBreaker = 10;
* @return Whether the circuitBreaker field is set.
*/
boolean hasCircuitBreaker();
/**
* .v1.CircuitBreaker circuitBreaker = 10;
* @return The circuitBreaker.
*/
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker getCircuitBreaker();
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder getCircuitBreakerOrBuilder();
/**
* .v1.ConfigRelease configRelease = 11;
* @return Whether the configRelease field is set.
*/
boolean hasConfigRelease();
/**
* .v1.ConfigRelease configRelease = 11;
* @return The configRelease.
*/
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease getConfigRelease();
/**
* .v1.ConfigRelease configRelease = 11;
*/
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigReleaseOrBuilder getConfigReleaseOrBuilder();
/**
* .v1.User user = 19;
* @return Whether the user field is set.
*/
boolean hasUser();
/**
* .v1.User user = 19;
* @return The user.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.User getUser();
/**
* .v1.User user = 19;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder getUserOrBuilder();
/**
* .v1.UserGroup userGroup = 20;
* @return Whether the userGroup field is set.
*/
boolean hasUserGroup();
/**
* .v1.UserGroup userGroup = 20;
* @return The userGroup.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup getUserGroup();
/**
* .v1.UserGroup userGroup = 20;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder getUserGroupOrBuilder();
/**
* .v1.AuthStrategy authStrategy = 21;
* @return Whether the authStrategy field is set.
*/
boolean hasAuthStrategy();
/**
* .v1.AuthStrategy authStrategy = 21;
* @return The authStrategy.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy getAuthStrategy();
/**
* .v1.AuthStrategy authStrategy = 21;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder getAuthStrategyOrBuilder();
/**
* .v1.UserGroupRelation relation = 22;
* @return Whether the relation field is set.
*/
boolean hasRelation();
/**
* .v1.UserGroupRelation relation = 22;
* @return The relation.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation getRelation();
/**
* .v1.UserGroupRelation relation = 22;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelationOrBuilder getRelationOrBuilder();
/**
* .v1.LoginResponse loginResponse = 23;
* @return Whether the loginResponse field is set.
*/
boolean hasLoginResponse();
/**
* .v1.LoginResponse loginResponse = 23;
* @return The loginResponse.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse getLoginResponse();
/**
* .v1.LoginResponse loginResponse = 23;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponseOrBuilder getLoginResponseOrBuilder();
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
* @return Whether the modifyAuthStrategy field is set.
*/
boolean hasModifyAuthStrategy();
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
* @return The modifyAuthStrategy.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy getModifyAuthStrategy();
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategyOrBuilder getModifyAuthStrategyOrBuilder();
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
* @return Whether the modifyUserGroup field is set.
*/
boolean hasModifyUserGroup();
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
* @return The modifyUserGroup.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup getModifyUserGroup();
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroupOrBuilder getModifyUserGroupOrBuilder();
/**
* .v1.StrategyResources resources = 26;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
* .v1.StrategyResources resources = 26;
* @return The resources.
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources getResources();
/**
* .v1.StrategyResources resources = 26;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResourcesOrBuilder getResourcesOrBuilder();
/**
* .v1.OptionSwitch optionSwitch = 27;
* @return Whether the optionSwitch field is set.
*/
boolean hasOptionSwitch();
/**
* .v1.OptionSwitch optionSwitch = 27;
* @return The optionSwitch.
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch getOptionSwitch();
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder getOptionSwitchOrBuilder();
/**
* .v1.InstanceLabels instanceLabels = 28;
* @return Whether the instanceLabels field is set.
*/
boolean hasInstanceLabels();
/**
* .v1.InstanceLabels instanceLabels = 28;
* @return The instanceLabels.
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels getInstanceLabels();
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder getInstanceLabelsOrBuilder();
/**
* .google.protobuf.Any data = 29;
* @return Whether the data field is set.
*/
boolean hasData();
/**
* .google.protobuf.Any data = 29;
* @return The data.
*/
com.google.protobuf.Any getData();
/**
* .google.protobuf.Any data = 29;
*/
com.google.protobuf.AnyOrBuilder getDataOrBuilder();
/**
* .v1.ServiceContract serviceContract = 30;
* @return Whether the serviceContract field is set.
*/
boolean hasServiceContract();
/**
* .v1.ServiceContract serviceContract = 30;
* @return The serviceContract.
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract getServiceContract();
/**
* .v1.ServiceContract serviceContract = 30;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder getServiceContractOrBuilder();
}
/**
* Protobuf type {@code v1.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Response();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private com.google.protobuf.UInt32Value code_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getCode() {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
return getCode();
}
public static final int INFO_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue info_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
@java.lang.Override
public com.google.protobuf.StringValue getInfo() {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
/**
* .google.protobuf.StringValue info = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
return getInfo();
}
public static final int CLIENT_FIELD_NUMBER = 3;
private com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client client_;
/**
* .v1.Client client = 3;
* @return Whether the client field is set.
*/
@java.lang.Override
public boolean hasClient() {
return client_ != null;
}
/**
* .v1.Client client = 3;
* @return The client.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client getClient() {
return client_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.getDefaultInstance() : client_;
}
/**
* .v1.Client client = 3;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder getClientOrBuilder() {
return getClient();
}
public static final int NAMESPACE_FIELD_NUMBER = 4;
private com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace namespace_;
/**
* .v1.Namespace namespace = 4;
* @return Whether the namespace field is set.
*/
@java.lang.Override
public boolean hasNamespace() {
return namespace_ != null;
}
/**
* .v1.Namespace namespace = 4;
* @return The namespace.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespace() {
return namespace_ == null ? com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance() : namespace_;
}
/**
* .v1.Namespace namespace = 4;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespaceOrBuilder() {
return getNamespace();
}
public static final int SERVICE_FIELD_NUMBER = 5;
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service service_;
/**
* .v1.Service service = 5;
* @return Whether the service field is set.
*/
@java.lang.Override
public boolean hasService() {
return service_ != null;
}
/**
* .v1.Service service = 5;
* @return The service.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService() {
return service_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
}
/**
* .v1.Service service = 5;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder() {
return getService();
}
public static final int INSTANCE_FIELD_NUMBER = 6;
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance instance_;
/**
* .v1.Instance instance = 6;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return instance_ != null;
}
/**
* .v1.Instance instance = 6;
* @return The instance.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstance() {
return instance_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance() : instance_;
}
/**
* .v1.Instance instance = 6;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstanceOrBuilder() {
return getInstance();
}
public static final int ROUTING_FIELD_NUMBER = 7;
private com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing routing_;
/**
* .v1.Routing routing = 7;
* @return Whether the routing field is set.
*/
@java.lang.Override
public boolean hasRouting() {
return routing_ != null;
}
/**
* .v1.Routing routing = 7;
* @return The routing.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRouting() {
return routing_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance() : routing_;
}
/**
* .v1.Routing routing = 7;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingOrBuilder() {
return getRouting();
}
public static final int ALIAS_FIELD_NUMBER = 8;
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias alias_;
/**
* .v1.ServiceAlias alias = 8;
* @return Whether the alias field is set.
*/
@java.lang.Override
public boolean hasAlias() {
return alias_ != null;
}
/**
* .v1.ServiceAlias alias = 8;
* @return The alias.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias getAlias() {
return alias_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.getDefaultInstance() : alias_;
}
/**
* .v1.ServiceAlias alias = 8;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder getAliasOrBuilder() {
return getAlias();
}
public static final int RATELIMIT_FIELD_NUMBER = 9;
private com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule rateLimit_;
/**
* .v1.Rule rateLimit = 9;
* @return Whether the rateLimit field is set.
*/
@java.lang.Override
public boolean hasRateLimit() {
return rateLimit_ != null;
}
/**
* .v1.Rule rateLimit = 9;
* @return The rateLimit.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule getRateLimit() {
return rateLimit_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.getDefaultInstance() : rateLimit_;
}
/**
* .v1.Rule rateLimit = 9;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder getRateLimitOrBuilder() {
return getRateLimit();
}
public static final int CIRCUITBREAKER_FIELD_NUMBER = 10;
private com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker circuitBreaker_;
/**
* .v1.CircuitBreaker circuitBreaker = 10;
* @return Whether the circuitBreaker field is set.
*/
@java.lang.Override
public boolean hasCircuitBreaker() {
return circuitBreaker_ != null;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
* @return The circuitBreaker.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker getCircuitBreaker() {
return circuitBreaker_ == null ? com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.getDefaultInstance() : circuitBreaker_;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder getCircuitBreakerOrBuilder() {
return getCircuitBreaker();
}
public static final int CONFIGRELEASE_FIELD_NUMBER = 11;
private com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease configRelease_;
/**
* .v1.ConfigRelease configRelease = 11;
* @return Whether the configRelease field is set.
*/
@java.lang.Override
public boolean hasConfigRelease() {
return configRelease_ != null;
}
/**
* .v1.ConfigRelease configRelease = 11;
* @return The configRelease.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease getConfigRelease() {
return configRelease_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.getDefaultInstance() : configRelease_;
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigReleaseOrBuilder getConfigReleaseOrBuilder() {
return getConfigRelease();
}
public static final int USER_FIELD_NUMBER = 19;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.User user_;
/**
* .v1.User user = 19;
* @return Whether the user field is set.
*/
@java.lang.Override
public boolean hasUser() {
return user_ != null;
}
/**
* .v1.User user = 19;
* @return The user.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User getUser() {
return user_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.User.getDefaultInstance() : user_;
}
/**
* .v1.User user = 19;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder getUserOrBuilder() {
return getUser();
}
public static final int USERGROUP_FIELD_NUMBER = 20;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup userGroup_;
/**
* .v1.UserGroup userGroup = 20;
* @return Whether the userGroup field is set.
*/
@java.lang.Override
public boolean hasUserGroup() {
return userGroup_ != null;
}
/**
* .v1.UserGroup userGroup = 20;
* @return The userGroup.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup getUserGroup() {
return userGroup_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.getDefaultInstance() : userGroup_;
}
/**
* .v1.UserGroup userGroup = 20;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder getUserGroupOrBuilder() {
return getUserGroup();
}
public static final int AUTHSTRATEGY_FIELD_NUMBER = 21;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy authStrategy_;
/**
* .v1.AuthStrategy authStrategy = 21;
* @return Whether the authStrategy field is set.
*/
@java.lang.Override
public boolean hasAuthStrategy() {
return authStrategy_ != null;
}
/**
* .v1.AuthStrategy authStrategy = 21;
* @return The authStrategy.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy getAuthStrategy() {
return authStrategy_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.getDefaultInstance() : authStrategy_;
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder getAuthStrategyOrBuilder() {
return getAuthStrategy();
}
public static final int RELATION_FIELD_NUMBER = 22;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation relation_;
/**
* .v1.UserGroupRelation relation = 22;
* @return Whether the relation field is set.
*/
@java.lang.Override
public boolean hasRelation() {
return relation_ != null;
}
/**
* .v1.UserGroupRelation relation = 22;
* @return The relation.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation getRelation() {
return relation_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.getDefaultInstance() : relation_;
}
/**
* .v1.UserGroupRelation relation = 22;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelationOrBuilder getRelationOrBuilder() {
return getRelation();
}
public static final int LOGINRESPONSE_FIELD_NUMBER = 23;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse loginResponse_;
/**
* .v1.LoginResponse loginResponse = 23;
* @return Whether the loginResponse field is set.
*/
@java.lang.Override
public boolean hasLoginResponse() {
return loginResponse_ != null;
}
/**
* .v1.LoginResponse loginResponse = 23;
* @return The loginResponse.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse getLoginResponse() {
return loginResponse_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.getDefaultInstance() : loginResponse_;
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponseOrBuilder getLoginResponseOrBuilder() {
return getLoginResponse();
}
public static final int MODIFYAUTHSTRATEGY_FIELD_NUMBER = 24;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy modifyAuthStrategy_;
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
* @return Whether the modifyAuthStrategy field is set.
*/
@java.lang.Override
public boolean hasModifyAuthStrategy() {
return modifyAuthStrategy_ != null;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
* @return The modifyAuthStrategy.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy getModifyAuthStrategy() {
return modifyAuthStrategy_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.getDefaultInstance() : modifyAuthStrategy_;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategyOrBuilder getModifyAuthStrategyOrBuilder() {
return getModifyAuthStrategy();
}
public static final int MODIFYUSERGROUP_FIELD_NUMBER = 25;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup modifyUserGroup_;
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
* @return Whether the modifyUserGroup field is set.
*/
@java.lang.Override
public boolean hasModifyUserGroup() {
return modifyUserGroup_ != null;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
* @return The modifyUserGroup.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup getModifyUserGroup() {
return modifyUserGroup_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.getDefaultInstance() : modifyUserGroup_;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroupOrBuilder getModifyUserGroupOrBuilder() {
return getModifyUserGroup();
}
public static final int RESOURCES_FIELD_NUMBER = 26;
private com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources resources_;
/**
* .v1.StrategyResources resources = 26;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
* .v1.StrategyResources resources = 26;
* @return The resources.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources getResources() {
return resources_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.getDefaultInstance() : resources_;
}
/**
* .v1.StrategyResources resources = 26;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int OPTIONSWITCH_FIELD_NUMBER = 27;
private com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch optionSwitch_;
/**
* .v1.OptionSwitch optionSwitch = 27;
* @return Whether the optionSwitch field is set.
*/
@java.lang.Override
public boolean hasOptionSwitch() {
return optionSwitch_ != null;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
* @return The optionSwitch.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch getOptionSwitch() {
return optionSwitch_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.getDefaultInstance() : optionSwitch_;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder getOptionSwitchOrBuilder() {
return getOptionSwitch();
}
public static final int INSTANCELABELS_FIELD_NUMBER = 28;
private com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels instanceLabels_;
/**
* .v1.InstanceLabels instanceLabels = 28;
* @return Whether the instanceLabels field is set.
*/
@java.lang.Override
public boolean hasInstanceLabels() {
return instanceLabels_ != null;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
* @return The instanceLabels.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels getInstanceLabels() {
return instanceLabels_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.getDefaultInstance() : instanceLabels_;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder getInstanceLabelsOrBuilder() {
return getInstanceLabels();
}
public static final int DATA_FIELD_NUMBER = 29;
private com.google.protobuf.Any data_;
/**
* .google.protobuf.Any data = 29;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
* .google.protobuf.Any data = 29;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.Any getData() {
return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
}
/**
* .google.protobuf.Any data = 29;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
return getData();
}
public static final int SERVICECONTRACT_FIELD_NUMBER = 30;
private com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract serviceContract_;
/**
* .v1.ServiceContract serviceContract = 30;
* @return Whether the serviceContract field is set.
*/
@java.lang.Override
public boolean hasServiceContract() {
return serviceContract_ != null;
}
/**
* .v1.ServiceContract serviceContract = 30;
* @return The serviceContract.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract getServiceContract() {
return serviceContract_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.getDefaultInstance() : serviceContract_;
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder getServiceContractOrBuilder() {
return getServiceContract();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != null) {
output.writeMessage(1, getCode());
}
if (info_ != null) {
output.writeMessage(2, getInfo());
}
if (client_ != null) {
output.writeMessage(3, getClient());
}
if (namespace_ != null) {
output.writeMessage(4, getNamespace());
}
if (service_ != null) {
output.writeMessage(5, getService());
}
if (instance_ != null) {
output.writeMessage(6, getInstance());
}
if (routing_ != null) {
output.writeMessage(7, getRouting());
}
if (alias_ != null) {
output.writeMessage(8, getAlias());
}
if (rateLimit_ != null) {
output.writeMessage(9, getRateLimit());
}
if (circuitBreaker_ != null) {
output.writeMessage(10, getCircuitBreaker());
}
if (configRelease_ != null) {
output.writeMessage(11, getConfigRelease());
}
if (user_ != null) {
output.writeMessage(19, getUser());
}
if (userGroup_ != null) {
output.writeMessage(20, getUserGroup());
}
if (authStrategy_ != null) {
output.writeMessage(21, getAuthStrategy());
}
if (relation_ != null) {
output.writeMessage(22, getRelation());
}
if (loginResponse_ != null) {
output.writeMessage(23, getLoginResponse());
}
if (modifyAuthStrategy_ != null) {
output.writeMessage(24, getModifyAuthStrategy());
}
if (modifyUserGroup_ != null) {
output.writeMessage(25, getModifyUserGroup());
}
if (resources_ != null) {
output.writeMessage(26, getResources());
}
if (optionSwitch_ != null) {
output.writeMessage(27, getOptionSwitch());
}
if (instanceLabels_ != null) {
output.writeMessage(28, getInstanceLabels());
}
if (data_ != null) {
output.writeMessage(29, getData());
}
if (serviceContract_ != null) {
output.writeMessage(30, getServiceContract());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCode());
}
if (info_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getInfo());
}
if (client_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getClient());
}
if (namespace_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getNamespace());
}
if (service_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getService());
}
if (instance_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getInstance());
}
if (routing_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getRouting());
}
if (alias_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAlias());
}
if (rateLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getRateLimit());
}
if (circuitBreaker_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCircuitBreaker());
}
if (configRelease_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getConfigRelease());
}
if (user_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getUser());
}
if (userGroup_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getUserGroup());
}
if (authStrategy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getAuthStrategy());
}
if (relation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getRelation());
}
if (loginResponse_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, getLoginResponse());
}
if (modifyAuthStrategy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getModifyAuthStrategy());
}
if (modifyUserGroup_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getModifyUserGroup());
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getResources());
}
if (optionSwitch_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, getOptionSwitch());
}
if (instanceLabels_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, getInstanceLabels());
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, getData());
}
if (serviceContract_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, getServiceContract());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response other = (com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (!getCode()
.equals(other.getCode())) return false;
}
if (hasInfo() != other.hasInfo()) return false;
if (hasInfo()) {
if (!getInfo()
.equals(other.getInfo())) return false;
}
if (hasClient() != other.hasClient()) return false;
if (hasClient()) {
if (!getClient()
.equals(other.getClient())) return false;
}
if (hasNamespace() != other.hasNamespace()) return false;
if (hasNamespace()) {
if (!getNamespace()
.equals(other.getNamespace())) return false;
}
if (hasService() != other.hasService()) return false;
if (hasService()) {
if (!getService()
.equals(other.getService())) return false;
}
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasRouting() != other.hasRouting()) return false;
if (hasRouting()) {
if (!getRouting()
.equals(other.getRouting())) return false;
}
if (hasAlias() != other.hasAlias()) return false;
if (hasAlias()) {
if (!getAlias()
.equals(other.getAlias())) return false;
}
if (hasRateLimit() != other.hasRateLimit()) return false;
if (hasRateLimit()) {
if (!getRateLimit()
.equals(other.getRateLimit())) return false;
}
if (hasCircuitBreaker() != other.hasCircuitBreaker()) return false;
if (hasCircuitBreaker()) {
if (!getCircuitBreaker()
.equals(other.getCircuitBreaker())) return false;
}
if (hasConfigRelease() != other.hasConfigRelease()) return false;
if (hasConfigRelease()) {
if (!getConfigRelease()
.equals(other.getConfigRelease())) return false;
}
if (hasUser() != other.hasUser()) return false;
if (hasUser()) {
if (!getUser()
.equals(other.getUser())) return false;
}
if (hasUserGroup() != other.hasUserGroup()) return false;
if (hasUserGroup()) {
if (!getUserGroup()
.equals(other.getUserGroup())) return false;
}
if (hasAuthStrategy() != other.hasAuthStrategy()) return false;
if (hasAuthStrategy()) {
if (!getAuthStrategy()
.equals(other.getAuthStrategy())) return false;
}
if (hasRelation() != other.hasRelation()) return false;
if (hasRelation()) {
if (!getRelation()
.equals(other.getRelation())) return false;
}
if (hasLoginResponse() != other.hasLoginResponse()) return false;
if (hasLoginResponse()) {
if (!getLoginResponse()
.equals(other.getLoginResponse())) return false;
}
if (hasModifyAuthStrategy() != other.hasModifyAuthStrategy()) return false;
if (hasModifyAuthStrategy()) {
if (!getModifyAuthStrategy()
.equals(other.getModifyAuthStrategy())) return false;
}
if (hasModifyUserGroup() != other.hasModifyUserGroup()) return false;
if (hasModifyUserGroup()) {
if (!getModifyUserGroup()
.equals(other.getModifyUserGroup())) return false;
}
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (hasOptionSwitch() != other.hasOptionSwitch()) return false;
if (hasOptionSwitch()) {
if (!getOptionSwitch()
.equals(other.getOptionSwitch())) return false;
}
if (hasInstanceLabels() != other.hasInstanceLabels()) return false;
if (hasInstanceLabels()) {
if (!getInstanceLabels()
.equals(other.getInstanceLabels())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasServiceContract() != other.hasServiceContract()) return false;
if (hasServiceContract()) {
if (!getServiceContract()
.equals(other.getServiceContract())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
}
if (hasInfo()) {
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
}
if (hasClient()) {
hash = (37 * hash) + CLIENT_FIELD_NUMBER;
hash = (53 * hash) + getClient().hashCode();
}
if (hasNamespace()) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
}
if (hasService()) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
}
if (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasRouting()) {
hash = (37 * hash) + ROUTING_FIELD_NUMBER;
hash = (53 * hash) + getRouting().hashCode();
}
if (hasAlias()) {
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAlias().hashCode();
}
if (hasRateLimit()) {
hash = (37 * hash) + RATELIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRateLimit().hashCode();
}
if (hasCircuitBreaker()) {
hash = (37 * hash) + CIRCUITBREAKER_FIELD_NUMBER;
hash = (53 * hash) + getCircuitBreaker().hashCode();
}
if (hasConfigRelease()) {
hash = (37 * hash) + CONFIGRELEASE_FIELD_NUMBER;
hash = (53 * hash) + getConfigRelease().hashCode();
}
if (hasUser()) {
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
}
if (hasUserGroup()) {
hash = (37 * hash) + USERGROUP_FIELD_NUMBER;
hash = (53 * hash) + getUserGroup().hashCode();
}
if (hasAuthStrategy()) {
hash = (37 * hash) + AUTHSTRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getAuthStrategy().hashCode();
}
if (hasRelation()) {
hash = (37 * hash) + RELATION_FIELD_NUMBER;
hash = (53 * hash) + getRelation().hashCode();
}
if (hasLoginResponse()) {
hash = (37 * hash) + LOGINRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getLoginResponse().hashCode();
}
if (hasModifyAuthStrategy()) {
hash = (37 * hash) + MODIFYAUTHSTRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getModifyAuthStrategy().hashCode();
}
if (hasModifyUserGroup()) {
hash = (37 * hash) + MODIFYUSERGROUP_FIELD_NUMBER;
hash = (53 * hash) + getModifyUserGroup().hashCode();
}
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
if (hasOptionSwitch()) {
hash = (37 * hash) + OPTIONSWITCH_FIELD_NUMBER;
hash = (53 * hash) + getOptionSwitch().hashCode();
}
if (hasInstanceLabels()) {
hash = (37 * hash) + INSTANCELABELS_FIELD_NUMBER;
hash = (53 * hash) + getInstanceLabels().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasServiceContract()) {
hash = (37 * hash) + SERVICECONTRACT_FIELD_NUMBER;
hash = (53 * hash) + getServiceContract().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code v1.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.Response)
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (codeBuilder_ == null) {
code_ = null;
} else {
code_ = null;
codeBuilder_ = null;
}
if (infoBuilder_ == null) {
info_ = null;
} else {
info_ = null;
infoBuilder_ = null;
}
if (clientBuilder_ == null) {
client_ = null;
} else {
client_ = null;
clientBuilder_ = null;
}
if (namespaceBuilder_ == null) {
namespace_ = null;
} else {
namespace_ = null;
namespaceBuilder_ = null;
}
if (serviceBuilder_ == null) {
service_ = null;
} else {
service_ = null;
serviceBuilder_ = null;
}
if (instanceBuilder_ == null) {
instance_ = null;
} else {
instance_ = null;
instanceBuilder_ = null;
}
if (routingBuilder_ == null) {
routing_ = null;
} else {
routing_ = null;
routingBuilder_ = null;
}
if (aliasBuilder_ == null) {
alias_ = null;
} else {
alias_ = null;
aliasBuilder_ = null;
}
if (rateLimitBuilder_ == null) {
rateLimit_ = null;
} else {
rateLimit_ = null;
rateLimitBuilder_ = null;
}
if (circuitBreakerBuilder_ == null) {
circuitBreaker_ = null;
} else {
circuitBreaker_ = null;
circuitBreakerBuilder_ = null;
}
if (configReleaseBuilder_ == null) {
configRelease_ = null;
} else {
configRelease_ = null;
configReleaseBuilder_ = null;
}
if (userBuilder_ == null) {
user_ = null;
} else {
user_ = null;
userBuilder_ = null;
}
if (userGroupBuilder_ == null) {
userGroup_ = null;
} else {
userGroup_ = null;
userGroupBuilder_ = null;
}
if (authStrategyBuilder_ == null) {
authStrategy_ = null;
} else {
authStrategy_ = null;
authStrategyBuilder_ = null;
}
if (relationBuilder_ == null) {
relation_ = null;
} else {
relation_ = null;
relationBuilder_ = null;
}
if (loginResponseBuilder_ == null) {
loginResponse_ = null;
} else {
loginResponse_ = null;
loginResponseBuilder_ = null;
}
if (modifyAuthStrategyBuilder_ == null) {
modifyAuthStrategy_ = null;
} else {
modifyAuthStrategy_ = null;
modifyAuthStrategyBuilder_ = null;
}
if (modifyUserGroupBuilder_ == null) {
modifyUserGroup_ = null;
} else {
modifyUserGroup_ = null;
modifyUserGroupBuilder_ = null;
}
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
if (optionSwitchBuilder_ == null) {
optionSwitch_ = null;
} else {
optionSwitch_ = null;
optionSwitchBuilder_ = null;
}
if (instanceLabelsBuilder_ == null) {
instanceLabels_ = null;
} else {
instanceLabels_ = null;
instanceLabelsBuilder_ = null;
}
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (serviceContractBuilder_ == null) {
serviceContract_ = null;
} else {
serviceContract_ = null;
serviceContractBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_Response_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response build() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response result = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response(this);
if (codeBuilder_ == null) {
result.code_ = code_;
} else {
result.code_ = codeBuilder_.build();
}
if (infoBuilder_ == null) {
result.info_ = info_;
} else {
result.info_ = infoBuilder_.build();
}
if (clientBuilder_ == null) {
result.client_ = client_;
} else {
result.client_ = clientBuilder_.build();
}
if (namespaceBuilder_ == null) {
result.namespace_ = namespace_;
} else {
result.namespace_ = namespaceBuilder_.build();
}
if (serviceBuilder_ == null) {
result.service_ = service_;
} else {
result.service_ = serviceBuilder_.build();
}
if (instanceBuilder_ == null) {
result.instance_ = instance_;
} else {
result.instance_ = instanceBuilder_.build();
}
if (routingBuilder_ == null) {
result.routing_ = routing_;
} else {
result.routing_ = routingBuilder_.build();
}
if (aliasBuilder_ == null) {
result.alias_ = alias_;
} else {
result.alias_ = aliasBuilder_.build();
}
if (rateLimitBuilder_ == null) {
result.rateLimit_ = rateLimit_;
} else {
result.rateLimit_ = rateLimitBuilder_.build();
}
if (circuitBreakerBuilder_ == null) {
result.circuitBreaker_ = circuitBreaker_;
} else {
result.circuitBreaker_ = circuitBreakerBuilder_.build();
}
if (configReleaseBuilder_ == null) {
result.configRelease_ = configRelease_;
} else {
result.configRelease_ = configReleaseBuilder_.build();
}
if (userBuilder_ == null) {
result.user_ = user_;
} else {
result.user_ = userBuilder_.build();
}
if (userGroupBuilder_ == null) {
result.userGroup_ = userGroup_;
} else {
result.userGroup_ = userGroupBuilder_.build();
}
if (authStrategyBuilder_ == null) {
result.authStrategy_ = authStrategy_;
} else {
result.authStrategy_ = authStrategyBuilder_.build();
}
if (relationBuilder_ == null) {
result.relation_ = relation_;
} else {
result.relation_ = relationBuilder_.build();
}
if (loginResponseBuilder_ == null) {
result.loginResponse_ = loginResponse_;
} else {
result.loginResponse_ = loginResponseBuilder_.build();
}
if (modifyAuthStrategyBuilder_ == null) {
result.modifyAuthStrategy_ = modifyAuthStrategy_;
} else {
result.modifyAuthStrategy_ = modifyAuthStrategyBuilder_.build();
}
if (modifyUserGroupBuilder_ == null) {
result.modifyUserGroup_ = modifyUserGroup_;
} else {
result.modifyUserGroup_ = modifyUserGroupBuilder_.build();
}
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
if (optionSwitchBuilder_ == null) {
result.optionSwitch_ = optionSwitch_;
} else {
result.optionSwitch_ = optionSwitchBuilder_.build();
}
if (instanceLabelsBuilder_ == null) {
result.instanceLabels_ = instanceLabels_;
} else {
result.instanceLabels_ = instanceLabelsBuilder_.build();
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (serviceContractBuilder_ == null) {
result.serviceContract_ = serviceContract_;
} else {
result.serviceContract_ = serviceContractBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance()) return this;
if (other.hasCode()) {
mergeCode(other.getCode());
}
if (other.hasInfo()) {
mergeInfo(other.getInfo());
}
if (other.hasClient()) {
mergeClient(other.getClient());
}
if (other.hasNamespace()) {
mergeNamespace(other.getNamespace());
}
if (other.hasService()) {
mergeService(other.getService());
}
if (other.hasInstance()) {
mergeInstance(other.getInstance());
}
if (other.hasRouting()) {
mergeRouting(other.getRouting());
}
if (other.hasAlias()) {
mergeAlias(other.getAlias());
}
if (other.hasRateLimit()) {
mergeRateLimit(other.getRateLimit());
}
if (other.hasCircuitBreaker()) {
mergeCircuitBreaker(other.getCircuitBreaker());
}
if (other.hasConfigRelease()) {
mergeConfigRelease(other.getConfigRelease());
}
if (other.hasUser()) {
mergeUser(other.getUser());
}
if (other.hasUserGroup()) {
mergeUserGroup(other.getUserGroup());
}
if (other.hasAuthStrategy()) {
mergeAuthStrategy(other.getAuthStrategy());
}
if (other.hasRelation()) {
mergeRelation(other.getRelation());
}
if (other.hasLoginResponse()) {
mergeLoginResponse(other.getLoginResponse());
}
if (other.hasModifyAuthStrategy()) {
mergeModifyAuthStrategy(other.getModifyAuthStrategy());
}
if (other.hasModifyUserGroup()) {
mergeModifyUserGroup(other.getModifyUserGroup());
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.hasOptionSwitch()) {
mergeOptionSwitch(other.getOptionSwitch());
}
if (other.hasInstanceLabels()) {
mergeInstanceLabels(other.getInstanceLabels());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasServiceContract()) {
mergeServiceContract(other.getServiceContract());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCodeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getInfoFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getClientFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
input.readMessage(
getNamespaceFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
input.readMessage(
getServiceFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 42
case 50: {
input.readMessage(
getInstanceFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
case 58: {
input.readMessage(
getRoutingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 58
case 66: {
input.readMessage(
getAliasFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 66
case 74: {
input.readMessage(
getRateLimitFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 74
case 82: {
input.readMessage(
getCircuitBreakerFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 82
case 90: {
input.readMessage(
getConfigReleaseFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 90
case 154: {
input.readMessage(
getUserFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 154
case 162: {
input.readMessage(
getUserGroupFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 162
case 170: {
input.readMessage(
getAuthStrategyFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 170
case 178: {
input.readMessage(
getRelationFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 178
case 186: {
input.readMessage(
getLoginResponseFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 186
case 194: {
input.readMessage(
getModifyAuthStrategyFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 194
case 202: {
input.readMessage(
getModifyUserGroupFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 202
case 210: {
input.readMessage(
getResourcesFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 210
case 218: {
input.readMessage(
getOptionSwitchFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 218
case 226: {
input.readMessage(
getInstanceLabelsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 226
case 234: {
input.readMessage(
getDataFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 234
case 242: {
input.readMessage(
getServiceContractFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 242
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.google.protobuf.UInt32Value code_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> codeBuilder_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
public boolean hasCode() {
return codeBuilder_ != null || code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
public com.google.protobuf.UInt32Value getCode() {
if (codeBuilder_ == null) {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
} else {
return codeBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
} else {
codeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (codeBuilder_ == null) {
code_ = builderForValue.build();
onChanged();
} else {
codeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder mergeCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (code_ != null) {
code_ =
com.google.protobuf.UInt32Value.newBuilder(code_).mergeFrom(value).buildPartial();
} else {
code_ = value;
}
onChanged();
} else {
codeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder clearCode() {
if (codeBuilder_ == null) {
code_ = null;
onChanged();
} else {
code_ = null;
codeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32Value.Builder getCodeBuilder() {
onChanged();
return getCodeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
if (codeBuilder_ != null) {
return codeBuilder_.getMessageOrBuilder();
} else {
return code_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getCodeFieldBuilder() {
if (codeBuilder_ == null) {
codeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getCode(),
getParentForChildren(),
isClean());
code_ = null;
}
return codeBuilder_;
}
private com.google.protobuf.StringValue info_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> infoBuilder_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
public boolean hasInfo() {
return infoBuilder_ != null || info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
public com.google.protobuf.StringValue getInfo() {
if (infoBuilder_ == null) {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
} else {
return infoBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder mergeInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (info_ != null) {
info_ =
com.google.protobuf.StringValue.newBuilder(info_).mergeFrom(value).buildPartial();
} else {
info_ = value;
}
onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
info_ = null;
onChanged();
} else {
info_ = null;
infoBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValue.Builder getInfoBuilder() {
onChanged();
return getInfoFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
if (infoBuilder_ != null) {
return infoBuilder_.getMessageOrBuilder();
} else {
return info_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getInfo(),
getParentForChildren(),
isClean());
info_ = null;
}
return infoBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client client_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder> clientBuilder_;
/**
* .v1.Client client = 3;
* @return Whether the client field is set.
*/
public boolean hasClient() {
return clientBuilder_ != null || client_ != null;
}
/**
* .v1.Client client = 3;
* @return The client.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client getClient() {
if (clientBuilder_ == null) {
return client_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.getDefaultInstance() : client_;
} else {
return clientBuilder_.getMessage();
}
}
/**
* .v1.Client client = 3;
*/
public Builder setClient(com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client value) {
if (clientBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
client_ = value;
onChanged();
} else {
clientBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Client client = 3;
*/
public Builder setClient(
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder builderForValue) {
if (clientBuilder_ == null) {
client_ = builderForValue.build();
onChanged();
} else {
clientBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Client client = 3;
*/
public Builder mergeClient(com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client value) {
if (clientBuilder_ == null) {
if (client_ != null) {
client_ =
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.newBuilder(client_).mergeFrom(value).buildPartial();
} else {
client_ = value;
}
onChanged();
} else {
clientBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Client client = 3;
*/
public Builder clearClient() {
if (clientBuilder_ == null) {
client_ = null;
onChanged();
} else {
client_ = null;
clientBuilder_ = null;
}
return this;
}
/**
* .v1.Client client = 3;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder getClientBuilder() {
onChanged();
return getClientFieldBuilder().getBuilder();
}
/**
* .v1.Client client = 3;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder getClientOrBuilder() {
if (clientBuilder_ != null) {
return clientBuilder_.getMessageOrBuilder();
} else {
return client_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.getDefaultInstance() : client_;
}
}
/**
* .v1.Client client = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>
getClientFieldBuilder() {
if (clientBuilder_ == null) {
clientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>(
getClient(),
getParentForChildren(),
isClean());
client_ = null;
}
return clientBuilder_;
}
private com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace namespace_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder> namespaceBuilder_;
/**
* .v1.Namespace namespace = 4;
* @return Whether the namespace field is set.
*/
public boolean hasNamespace() {
return namespaceBuilder_ != null || namespace_ != null;
}
/**
* .v1.Namespace namespace = 4;
* @return The namespace.
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespace() {
if (namespaceBuilder_ == null) {
return namespace_ == null ? com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance() : namespace_;
} else {
return namespaceBuilder_.getMessage();
}
}
/**
* .v1.Namespace namespace = 4;
*/
public Builder setNamespace(com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespaceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
} else {
namespaceBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Namespace namespace = 4;
*/
public Builder setNamespace(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespaceBuilder_ == null) {
namespace_ = builderForValue.build();
onChanged();
} else {
namespaceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Namespace namespace = 4;
*/
public Builder mergeNamespace(com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespaceBuilder_ == null) {
if (namespace_ != null) {
namespace_ =
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.newBuilder(namespace_).mergeFrom(value).buildPartial();
} else {
namespace_ = value;
}
onChanged();
} else {
namespaceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Namespace namespace = 4;
*/
public Builder clearNamespace() {
if (namespaceBuilder_ == null) {
namespace_ = null;
onChanged();
} else {
namespace_ = null;
namespaceBuilder_ = null;
}
return this;
}
/**
* .v1.Namespace namespace = 4;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder getNamespaceBuilder() {
onChanged();
return getNamespaceFieldBuilder().getBuilder();
}
/**
* .v1.Namespace namespace = 4;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespaceOrBuilder() {
if (namespaceBuilder_ != null) {
return namespaceBuilder_.getMessageOrBuilder();
} else {
return namespace_ == null ?
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance() : namespace_;
}
}
/**
* .v1.Namespace namespace = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespaceFieldBuilder() {
if (namespaceBuilder_ == null) {
namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>(
getNamespace(),
getParentForChildren(),
isClean());
namespace_ = null;
}
return namespaceBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service service_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> serviceBuilder_;
/**
* .v1.Service service = 5;
* @return Whether the service field is set.
*/
public boolean hasService() {
return serviceBuilder_ != null || service_ != null;
}
/**
* .v1.Service service = 5;
* @return The service.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService() {
if (serviceBuilder_ == null) {
return service_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
} else {
return serviceBuilder_.getMessage();
}
}
/**
* .v1.Service service = 5;
*/
public Builder setService(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (serviceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
onChanged();
} else {
serviceBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Service service = 5;
*/
public Builder setService(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (serviceBuilder_ == null) {
service_ = builderForValue.build();
onChanged();
} else {
serviceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Service service = 5;
*/
public Builder mergeService(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (serviceBuilder_ == null) {
if (service_ != null) {
service_ =
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.newBuilder(service_).mergeFrom(value).buildPartial();
} else {
service_ = value;
}
onChanged();
} else {
serviceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Service service = 5;
*/
public Builder clearService() {
if (serviceBuilder_ == null) {
service_ = null;
onChanged();
} else {
service_ = null;
serviceBuilder_ = null;
}
return this;
}
/**
* .v1.Service service = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder getServiceBuilder() {
onChanged();
return getServiceFieldBuilder().getBuilder();
}
/**
* .v1.Service service = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder() {
if (serviceBuilder_ != null) {
return serviceBuilder_.getMessageOrBuilder();
} else {
return service_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
}
}
/**
* .v1.Service service = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServiceFieldBuilder() {
if (serviceBuilder_ == null) {
serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>(
getService(),
getParentForChildren(),
isClean());
service_ = null;
}
return serviceBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance instance_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder> instanceBuilder_;
/**
* .v1.Instance instance = 6;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return instanceBuilder_ != null || instance_ != null;
}
/**
* .v1.Instance instance = 6;
* @return The instance.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstance() {
if (instanceBuilder_ == null) {
return instance_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance() : instance_;
} else {
return instanceBuilder_.getMessage();
}
}
/**
* .v1.Instance instance = 6;
*/
public Builder setInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instanceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
instance_ = value;
onChanged();
} else {
instanceBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Instance instance = 6;
*/
public Builder setInstance(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instanceBuilder_ == null) {
instance_ = builderForValue.build();
onChanged();
} else {
instanceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Instance instance = 6;
*/
public Builder mergeInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instanceBuilder_ == null) {
if (instance_ != null) {
instance_ =
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.newBuilder(instance_).mergeFrom(value).buildPartial();
} else {
instance_ = value;
}
onChanged();
} else {
instanceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Instance instance = 6;
*/
public Builder clearInstance() {
if (instanceBuilder_ == null) {
instance_ = null;
onChanged();
} else {
instance_ = null;
instanceBuilder_ = null;
}
return this;
}
/**
* .v1.Instance instance = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder getInstanceBuilder() {
onChanged();
return getInstanceFieldBuilder().getBuilder();
}
/**
* .v1.Instance instance = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstanceOrBuilder() {
if (instanceBuilder_ != null) {
return instanceBuilder_.getMessageOrBuilder();
} else {
return instance_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance() : instance_;
}
}
/**
* .v1.Instance instance = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstanceFieldBuilder() {
if (instanceBuilder_ == null) {
instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>(
getInstance(),
getParentForChildren(),
isClean());
instance_ = null;
}
return instanceBuilder_;
}
private com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing routing_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder> routingBuilder_;
/**
* .v1.Routing routing = 7;
* @return Whether the routing field is set.
*/
public boolean hasRouting() {
return routingBuilder_ != null || routing_ != null;
}
/**
* .v1.Routing routing = 7;
* @return The routing.
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRouting() {
if (routingBuilder_ == null) {
return routing_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance() : routing_;
} else {
return routingBuilder_.getMessage();
}
}
/**
* .v1.Routing routing = 7;
*/
public Builder setRouting(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routing_ = value;
onChanged();
} else {
routingBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Routing routing = 7;
*/
public Builder setRouting(
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder builderForValue) {
if (routingBuilder_ == null) {
routing_ = builderForValue.build();
onChanged();
} else {
routingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Routing routing = 7;
*/
public Builder mergeRouting(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingBuilder_ == null) {
if (routing_ != null) {
routing_ =
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.newBuilder(routing_).mergeFrom(value).buildPartial();
} else {
routing_ = value;
}
onChanged();
} else {
routingBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Routing routing = 7;
*/
public Builder clearRouting() {
if (routingBuilder_ == null) {
routing_ = null;
onChanged();
} else {
routing_ = null;
routingBuilder_ = null;
}
return this;
}
/**
* .v1.Routing routing = 7;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder getRoutingBuilder() {
onChanged();
return getRoutingFieldBuilder().getBuilder();
}
/**
* .v1.Routing routing = 7;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingOrBuilder() {
if (routingBuilder_ != null) {
return routingBuilder_.getMessageOrBuilder();
} else {
return routing_ == null ?
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance() : routing_;
}
}
/**
* .v1.Routing routing = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>
getRoutingFieldBuilder() {
if (routingBuilder_ == null) {
routingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>(
getRouting(),
getParentForChildren(),
isClean());
routing_ = null;
}
return routingBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias alias_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder> aliasBuilder_;
/**
* .v1.ServiceAlias alias = 8;
* @return Whether the alias field is set.
*/
public boolean hasAlias() {
return aliasBuilder_ != null || alias_ != null;
}
/**
* .v1.ServiceAlias alias = 8;
* @return The alias.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias getAlias() {
if (aliasBuilder_ == null) {
return alias_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.getDefaultInstance() : alias_;
} else {
return aliasBuilder_.getMessage();
}
}
/**
* .v1.ServiceAlias alias = 8;
*/
public Builder setAlias(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
alias_ = value;
onChanged();
} else {
aliasBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.ServiceAlias alias = 8;
*/
public Builder setAlias(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder builderForValue) {
if (aliasBuilder_ == null) {
alias_ = builderForValue.build();
onChanged();
} else {
aliasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.ServiceAlias alias = 8;
*/
public Builder mergeAlias(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias value) {
if (aliasBuilder_ == null) {
if (alias_ != null) {
alias_ =
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.newBuilder(alias_).mergeFrom(value).buildPartial();
} else {
alias_ = value;
}
onChanged();
} else {
aliasBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.ServiceAlias alias = 8;
*/
public Builder clearAlias() {
if (aliasBuilder_ == null) {
alias_ = null;
onChanged();
} else {
alias_ = null;
aliasBuilder_ = null;
}
return this;
}
/**
* .v1.ServiceAlias alias = 8;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder getAliasBuilder() {
onChanged();
return getAliasFieldBuilder().getBuilder();
}
/**
* .v1.ServiceAlias alias = 8;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder getAliasOrBuilder() {
if (aliasBuilder_ != null) {
return aliasBuilder_.getMessageOrBuilder();
} else {
return alias_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.getDefaultInstance() : alias_;
}
}
/**
* .v1.ServiceAlias alias = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>
getAliasFieldBuilder() {
if (aliasBuilder_ == null) {
aliasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>(
getAlias(),
getParentForChildren(),
isClean());
alias_ = null;
}
return aliasBuilder_;
}
private com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule rateLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder> rateLimitBuilder_;
/**
* .v1.Rule rateLimit = 9;
* @return Whether the rateLimit field is set.
*/
public boolean hasRateLimit() {
return rateLimitBuilder_ != null || rateLimit_ != null;
}
/**
* .v1.Rule rateLimit = 9;
* @return The rateLimit.
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule getRateLimit() {
if (rateLimitBuilder_ == null) {
return rateLimit_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.getDefaultInstance() : rateLimit_;
} else {
return rateLimitBuilder_.getMessage();
}
}
/**
* .v1.Rule rateLimit = 9;
*/
public Builder setRateLimit(com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule value) {
if (rateLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rateLimit_ = value;
onChanged();
} else {
rateLimitBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Rule rateLimit = 9;
*/
public Builder setRateLimit(
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder builderForValue) {
if (rateLimitBuilder_ == null) {
rateLimit_ = builderForValue.build();
onChanged();
} else {
rateLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Rule rateLimit = 9;
*/
public Builder mergeRateLimit(com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule value) {
if (rateLimitBuilder_ == null) {
if (rateLimit_ != null) {
rateLimit_ =
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.newBuilder(rateLimit_).mergeFrom(value).buildPartial();
} else {
rateLimit_ = value;
}
onChanged();
} else {
rateLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Rule rateLimit = 9;
*/
public Builder clearRateLimit() {
if (rateLimitBuilder_ == null) {
rateLimit_ = null;
onChanged();
} else {
rateLimit_ = null;
rateLimitBuilder_ = null;
}
return this;
}
/**
* .v1.Rule rateLimit = 9;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder getRateLimitBuilder() {
onChanged();
return getRateLimitFieldBuilder().getBuilder();
}
/**
* .v1.Rule rateLimit = 9;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder getRateLimitOrBuilder() {
if (rateLimitBuilder_ != null) {
return rateLimitBuilder_.getMessageOrBuilder();
} else {
return rateLimit_ == null ?
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.getDefaultInstance() : rateLimit_;
}
}
/**
* .v1.Rule rateLimit = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>
getRateLimitFieldBuilder() {
if (rateLimitBuilder_ == null) {
rateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>(
getRateLimit(),
getParentForChildren(),
isClean());
rateLimit_ = null;
}
return rateLimitBuilder_;
}
private com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker circuitBreaker_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder> circuitBreakerBuilder_;
/**
* .v1.CircuitBreaker circuitBreaker = 10;
* @return Whether the circuitBreaker field is set.
*/
public boolean hasCircuitBreaker() {
return circuitBreakerBuilder_ != null || circuitBreaker_ != null;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
* @return The circuitBreaker.
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker getCircuitBreaker() {
if (circuitBreakerBuilder_ == null) {
return circuitBreaker_ == null ? com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.getDefaultInstance() : circuitBreaker_;
} else {
return circuitBreakerBuilder_.getMessage();
}
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
public Builder setCircuitBreaker(com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker value) {
if (circuitBreakerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
circuitBreaker_ = value;
onChanged();
} else {
circuitBreakerBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
public Builder setCircuitBreaker(
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder builderForValue) {
if (circuitBreakerBuilder_ == null) {
circuitBreaker_ = builderForValue.build();
onChanged();
} else {
circuitBreakerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
public Builder mergeCircuitBreaker(com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker value) {
if (circuitBreakerBuilder_ == null) {
if (circuitBreaker_ != null) {
circuitBreaker_ =
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.newBuilder(circuitBreaker_).mergeFrom(value).buildPartial();
} else {
circuitBreaker_ = value;
}
onChanged();
} else {
circuitBreakerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
public Builder clearCircuitBreaker() {
if (circuitBreakerBuilder_ == null) {
circuitBreaker_ = null;
onChanged();
} else {
circuitBreaker_ = null;
circuitBreakerBuilder_ = null;
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder getCircuitBreakerBuilder() {
onChanged();
return getCircuitBreakerFieldBuilder().getBuilder();
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder getCircuitBreakerOrBuilder() {
if (circuitBreakerBuilder_ != null) {
return circuitBreakerBuilder_.getMessageOrBuilder();
} else {
return circuitBreaker_ == null ?
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.getDefaultInstance() : circuitBreaker_;
}
}
/**
* .v1.CircuitBreaker circuitBreaker = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder>
getCircuitBreakerFieldBuilder() {
if (circuitBreakerBuilder_ == null) {
circuitBreakerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder>(
getCircuitBreaker(),
getParentForChildren(),
isClean());
circuitBreaker_ = null;
}
return circuitBreakerBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease configRelease_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.Builder, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigReleaseOrBuilder> configReleaseBuilder_;
/**
* .v1.ConfigRelease configRelease = 11;
* @return Whether the configRelease field is set.
*/
public boolean hasConfigRelease() {
return configReleaseBuilder_ != null || configRelease_ != null;
}
/**
* .v1.ConfigRelease configRelease = 11;
* @return The configRelease.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease getConfigRelease() {
if (configReleaseBuilder_ == null) {
return configRelease_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.getDefaultInstance() : configRelease_;
} else {
return configReleaseBuilder_.getMessage();
}
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
public Builder setConfigRelease(com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease value) {
if (configReleaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
configRelease_ = value;
onChanged();
} else {
configReleaseBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
public Builder setConfigRelease(
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.Builder builderForValue) {
if (configReleaseBuilder_ == null) {
configRelease_ = builderForValue.build();
onChanged();
} else {
configReleaseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
public Builder mergeConfigRelease(com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease value) {
if (configReleaseBuilder_ == null) {
if (configRelease_ != null) {
configRelease_ =
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.newBuilder(configRelease_).mergeFrom(value).buildPartial();
} else {
configRelease_ = value;
}
onChanged();
} else {
configReleaseBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
public Builder clearConfigRelease() {
if (configReleaseBuilder_ == null) {
configRelease_ = null;
onChanged();
} else {
configRelease_ = null;
configReleaseBuilder_ = null;
}
return this;
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.Builder getConfigReleaseBuilder() {
onChanged();
return getConfigReleaseFieldBuilder().getBuilder();
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigReleaseOrBuilder getConfigReleaseOrBuilder() {
if (configReleaseBuilder_ != null) {
return configReleaseBuilder_.getMessageOrBuilder();
} else {
return configRelease_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.getDefaultInstance() : configRelease_;
}
}
/**
* .v1.ConfigRelease configRelease = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.Builder, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigReleaseOrBuilder>
getConfigReleaseFieldBuilder() {
if (configReleaseBuilder_ == null) {
configReleaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigRelease.Builder, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigReleaseOrBuilder>(
getConfigRelease(),
getParentForChildren(),
isClean());
configRelease_ = null;
}
return configReleaseBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.User user_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.User, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder> userBuilder_;
/**
* .v1.User user = 19;
* @return Whether the user field is set.
*/
public boolean hasUser() {
return userBuilder_ != null || user_ != null;
}
/**
* .v1.User user = 19;
* @return The user.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User getUser() {
if (userBuilder_ == null) {
return user_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.User.getDefaultInstance() : user_;
} else {
return userBuilder_.getMessage();
}
}
/**
* .v1.User user = 19;
*/
public Builder setUser(com.tencent.polaris.specification.api.v1.security.SecurityProto.User value) {
if (userBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
} else {
userBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.User user = 19;
*/
public Builder setUser(
com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder builderForValue) {
if (userBuilder_ == null) {
user_ = builderForValue.build();
onChanged();
} else {
userBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.User user = 19;
*/
public Builder mergeUser(com.tencent.polaris.specification.api.v1.security.SecurityProto.User value) {
if (userBuilder_ == null) {
if (user_ != null) {
user_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.User.newBuilder(user_).mergeFrom(value).buildPartial();
} else {
user_ = value;
}
onChanged();
} else {
userBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.User user = 19;
*/
public Builder clearUser() {
if (userBuilder_ == null) {
user_ = null;
onChanged();
} else {
user_ = null;
userBuilder_ = null;
}
return this;
}
/**
* .v1.User user = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder getUserBuilder() {
onChanged();
return getUserFieldBuilder().getBuilder();
}
/**
* .v1.User user = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder getUserOrBuilder() {
if (userBuilder_ != null) {
return userBuilder_.getMessageOrBuilder();
} else {
return user_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.User.getDefaultInstance() : user_;
}
}
/**
* .v1.User user = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.User, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>
getUserFieldBuilder() {
if (userBuilder_ == null) {
userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.User, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>(
getUser(),
getParentForChildren(),
isClean());
user_ = null;
}
return userBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup userGroup_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder> userGroupBuilder_;
/**
* .v1.UserGroup userGroup = 20;
* @return Whether the userGroup field is set.
*/
public boolean hasUserGroup() {
return userGroupBuilder_ != null || userGroup_ != null;
}
/**
* .v1.UserGroup userGroup = 20;
* @return The userGroup.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup getUserGroup() {
if (userGroupBuilder_ == null) {
return userGroup_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.getDefaultInstance() : userGroup_;
} else {
return userGroupBuilder_.getMessage();
}
}
/**
* .v1.UserGroup userGroup = 20;
*/
public Builder setUserGroup(com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup value) {
if (userGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userGroup_ = value;
onChanged();
} else {
userGroupBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.UserGroup userGroup = 20;
*/
public Builder setUserGroup(
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder builderForValue) {
if (userGroupBuilder_ == null) {
userGroup_ = builderForValue.build();
onChanged();
} else {
userGroupBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.UserGroup userGroup = 20;
*/
public Builder mergeUserGroup(com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup value) {
if (userGroupBuilder_ == null) {
if (userGroup_ != null) {
userGroup_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.newBuilder(userGroup_).mergeFrom(value).buildPartial();
} else {
userGroup_ = value;
}
onChanged();
} else {
userGroupBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.UserGroup userGroup = 20;
*/
public Builder clearUserGroup() {
if (userGroupBuilder_ == null) {
userGroup_ = null;
onChanged();
} else {
userGroup_ = null;
userGroupBuilder_ = null;
}
return this;
}
/**
* .v1.UserGroup userGroup = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder getUserGroupBuilder() {
onChanged();
return getUserGroupFieldBuilder().getBuilder();
}
/**
* .v1.UserGroup userGroup = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder getUserGroupOrBuilder() {
if (userGroupBuilder_ != null) {
return userGroupBuilder_.getMessageOrBuilder();
} else {
return userGroup_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.getDefaultInstance() : userGroup_;
}
}
/**
* .v1.UserGroup userGroup = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>
getUserGroupFieldBuilder() {
if (userGroupBuilder_ == null) {
userGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>(
getUserGroup(),
getParentForChildren(),
isClean());
userGroup_ = null;
}
return userGroupBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy authStrategy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder> authStrategyBuilder_;
/**
* .v1.AuthStrategy authStrategy = 21;
* @return Whether the authStrategy field is set.
*/
public boolean hasAuthStrategy() {
return authStrategyBuilder_ != null || authStrategy_ != null;
}
/**
* .v1.AuthStrategy authStrategy = 21;
* @return The authStrategy.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy getAuthStrategy() {
if (authStrategyBuilder_ == null) {
return authStrategy_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.getDefaultInstance() : authStrategy_;
} else {
return authStrategyBuilder_.getMessage();
}
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
public Builder setAuthStrategy(com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy value) {
if (authStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
authStrategy_ = value;
onChanged();
} else {
authStrategyBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
public Builder setAuthStrategy(
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder builderForValue) {
if (authStrategyBuilder_ == null) {
authStrategy_ = builderForValue.build();
onChanged();
} else {
authStrategyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
public Builder mergeAuthStrategy(com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy value) {
if (authStrategyBuilder_ == null) {
if (authStrategy_ != null) {
authStrategy_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.newBuilder(authStrategy_).mergeFrom(value).buildPartial();
} else {
authStrategy_ = value;
}
onChanged();
} else {
authStrategyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
public Builder clearAuthStrategy() {
if (authStrategyBuilder_ == null) {
authStrategy_ = null;
onChanged();
} else {
authStrategy_ = null;
authStrategyBuilder_ = null;
}
return this;
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder getAuthStrategyBuilder() {
onChanged();
return getAuthStrategyFieldBuilder().getBuilder();
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder getAuthStrategyOrBuilder() {
if (authStrategyBuilder_ != null) {
return authStrategyBuilder_.getMessageOrBuilder();
} else {
return authStrategy_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.getDefaultInstance() : authStrategy_;
}
}
/**
* .v1.AuthStrategy authStrategy = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>
getAuthStrategyFieldBuilder() {
if (authStrategyBuilder_ == null) {
authStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>(
getAuthStrategy(),
getParentForChildren(),
isClean());
authStrategy_ = null;
}
return authStrategyBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation relation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelationOrBuilder> relationBuilder_;
/**
* .v1.UserGroupRelation relation = 22;
* @return Whether the relation field is set.
*/
public boolean hasRelation() {
return relationBuilder_ != null || relation_ != null;
}
/**
* .v1.UserGroupRelation relation = 22;
* @return The relation.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation getRelation() {
if (relationBuilder_ == null) {
return relation_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.getDefaultInstance() : relation_;
} else {
return relationBuilder_.getMessage();
}
}
/**
* .v1.UserGroupRelation relation = 22;
*/
public Builder setRelation(com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation value) {
if (relationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relation_ = value;
onChanged();
} else {
relationBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.UserGroupRelation relation = 22;
*/
public Builder setRelation(
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.Builder builderForValue) {
if (relationBuilder_ == null) {
relation_ = builderForValue.build();
onChanged();
} else {
relationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.UserGroupRelation relation = 22;
*/
public Builder mergeRelation(com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation value) {
if (relationBuilder_ == null) {
if (relation_ != null) {
relation_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.newBuilder(relation_).mergeFrom(value).buildPartial();
} else {
relation_ = value;
}
onChanged();
} else {
relationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.UserGroupRelation relation = 22;
*/
public Builder clearRelation() {
if (relationBuilder_ == null) {
relation_ = null;
onChanged();
} else {
relation_ = null;
relationBuilder_ = null;
}
return this;
}
/**
* .v1.UserGroupRelation relation = 22;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.Builder getRelationBuilder() {
onChanged();
return getRelationFieldBuilder().getBuilder();
}
/**
* .v1.UserGroupRelation relation = 22;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelationOrBuilder getRelationOrBuilder() {
if (relationBuilder_ != null) {
return relationBuilder_.getMessageOrBuilder();
} else {
return relation_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.getDefaultInstance() : relation_;
}
}
/**
* .v1.UserGroupRelation relation = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelationOrBuilder>
getRelationFieldBuilder() {
if (relationBuilder_ == null) {
relationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelation.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupRelationOrBuilder>(
getRelation(),
getParentForChildren(),
isClean());
relation_ = null;
}
return relationBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse loginResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse, com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponseOrBuilder> loginResponseBuilder_;
/**
* .v1.LoginResponse loginResponse = 23;
* @return Whether the loginResponse field is set.
*/
public boolean hasLoginResponse() {
return loginResponseBuilder_ != null || loginResponse_ != null;
}
/**
* .v1.LoginResponse loginResponse = 23;
* @return The loginResponse.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse getLoginResponse() {
if (loginResponseBuilder_ == null) {
return loginResponse_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.getDefaultInstance() : loginResponse_;
} else {
return loginResponseBuilder_.getMessage();
}
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
public Builder setLoginResponse(com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse value) {
if (loginResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loginResponse_ = value;
onChanged();
} else {
loginResponseBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
public Builder setLoginResponse(
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.Builder builderForValue) {
if (loginResponseBuilder_ == null) {
loginResponse_ = builderForValue.build();
onChanged();
} else {
loginResponseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
public Builder mergeLoginResponse(com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse value) {
if (loginResponseBuilder_ == null) {
if (loginResponse_ != null) {
loginResponse_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.newBuilder(loginResponse_).mergeFrom(value).buildPartial();
} else {
loginResponse_ = value;
}
onChanged();
} else {
loginResponseBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
public Builder clearLoginResponse() {
if (loginResponseBuilder_ == null) {
loginResponse_ = null;
onChanged();
} else {
loginResponse_ = null;
loginResponseBuilder_ = null;
}
return this;
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.Builder getLoginResponseBuilder() {
onChanged();
return getLoginResponseFieldBuilder().getBuilder();
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponseOrBuilder getLoginResponseOrBuilder() {
if (loginResponseBuilder_ != null) {
return loginResponseBuilder_.getMessageOrBuilder();
} else {
return loginResponse_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.getDefaultInstance() : loginResponse_;
}
}
/**
* .v1.LoginResponse loginResponse = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse, com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponseOrBuilder>
getLoginResponseFieldBuilder() {
if (loginResponseBuilder_ == null) {
loginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse, com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponse.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.LoginResponseOrBuilder>(
getLoginResponse(),
getParentForChildren(),
isClean());
loginResponse_ = null;
}
return loginResponseBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy modifyAuthStrategy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategyOrBuilder> modifyAuthStrategyBuilder_;
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
* @return Whether the modifyAuthStrategy field is set.
*/
public boolean hasModifyAuthStrategy() {
return modifyAuthStrategyBuilder_ != null || modifyAuthStrategy_ != null;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
* @return The modifyAuthStrategy.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy getModifyAuthStrategy() {
if (modifyAuthStrategyBuilder_ == null) {
return modifyAuthStrategy_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.getDefaultInstance() : modifyAuthStrategy_;
} else {
return modifyAuthStrategyBuilder_.getMessage();
}
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
public Builder setModifyAuthStrategy(com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy value) {
if (modifyAuthStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifyAuthStrategy_ = value;
onChanged();
} else {
modifyAuthStrategyBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
public Builder setModifyAuthStrategy(
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.Builder builderForValue) {
if (modifyAuthStrategyBuilder_ == null) {
modifyAuthStrategy_ = builderForValue.build();
onChanged();
} else {
modifyAuthStrategyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
public Builder mergeModifyAuthStrategy(com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy value) {
if (modifyAuthStrategyBuilder_ == null) {
if (modifyAuthStrategy_ != null) {
modifyAuthStrategy_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.newBuilder(modifyAuthStrategy_).mergeFrom(value).buildPartial();
} else {
modifyAuthStrategy_ = value;
}
onChanged();
} else {
modifyAuthStrategyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
public Builder clearModifyAuthStrategy() {
if (modifyAuthStrategyBuilder_ == null) {
modifyAuthStrategy_ = null;
onChanged();
} else {
modifyAuthStrategy_ = null;
modifyAuthStrategyBuilder_ = null;
}
return this;
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.Builder getModifyAuthStrategyBuilder() {
onChanged();
return getModifyAuthStrategyFieldBuilder().getBuilder();
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategyOrBuilder getModifyAuthStrategyOrBuilder() {
if (modifyAuthStrategyBuilder_ != null) {
return modifyAuthStrategyBuilder_.getMessageOrBuilder();
} else {
return modifyAuthStrategy_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.getDefaultInstance() : modifyAuthStrategy_;
}
}
/**
* .v1.ModifyAuthStrategy modifyAuthStrategy = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategyOrBuilder>
getModifyAuthStrategyFieldBuilder() {
if (modifyAuthStrategyBuilder_ == null) {
modifyAuthStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyAuthStrategyOrBuilder>(
getModifyAuthStrategy(),
getParentForChildren(),
isClean());
modifyAuthStrategy_ = null;
}
return modifyAuthStrategyBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup modifyUserGroup_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroupOrBuilder> modifyUserGroupBuilder_;
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
* @return Whether the modifyUserGroup field is set.
*/
public boolean hasModifyUserGroup() {
return modifyUserGroupBuilder_ != null || modifyUserGroup_ != null;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
* @return The modifyUserGroup.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup getModifyUserGroup() {
if (modifyUserGroupBuilder_ == null) {
return modifyUserGroup_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.getDefaultInstance() : modifyUserGroup_;
} else {
return modifyUserGroupBuilder_.getMessage();
}
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
public Builder setModifyUserGroup(com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup value) {
if (modifyUserGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifyUserGroup_ = value;
onChanged();
} else {
modifyUserGroupBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
public Builder setModifyUserGroup(
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.Builder builderForValue) {
if (modifyUserGroupBuilder_ == null) {
modifyUserGroup_ = builderForValue.build();
onChanged();
} else {
modifyUserGroupBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
public Builder mergeModifyUserGroup(com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup value) {
if (modifyUserGroupBuilder_ == null) {
if (modifyUserGroup_ != null) {
modifyUserGroup_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.newBuilder(modifyUserGroup_).mergeFrom(value).buildPartial();
} else {
modifyUserGroup_ = value;
}
onChanged();
} else {
modifyUserGroupBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
public Builder clearModifyUserGroup() {
if (modifyUserGroupBuilder_ == null) {
modifyUserGroup_ = null;
onChanged();
} else {
modifyUserGroup_ = null;
modifyUserGroupBuilder_ = null;
}
return this;
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.Builder getModifyUserGroupBuilder() {
onChanged();
return getModifyUserGroupFieldBuilder().getBuilder();
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroupOrBuilder getModifyUserGroupOrBuilder() {
if (modifyUserGroupBuilder_ != null) {
return modifyUserGroupBuilder_.getMessageOrBuilder();
} else {
return modifyUserGroup_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.getDefaultInstance() : modifyUserGroup_;
}
}
/**
* .v1.ModifyUserGroup modifyUserGroup = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroupOrBuilder>
getModifyUserGroupFieldBuilder() {
if (modifyUserGroupBuilder_ == null) {
modifyUserGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.ModifyUserGroupOrBuilder>(
getModifyUserGroup(),
getParentForChildren(),
isClean());
modifyUserGroup_ = null;
}
return modifyUserGroupBuilder_;
}
private com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources, com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResourcesOrBuilder> resourcesBuilder_;
/**
* .v1.StrategyResources resources = 26;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
* .v1.StrategyResources resources = 26;
* @return The resources.
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
* .v1.StrategyResources resources = 26;
*/
public Builder setResources(com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.StrategyResources resources = 26;
*/
public Builder setResources(
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.StrategyResources resources = 26;
*/
public Builder mergeResources(com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.StrategyResources resources = 26;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
* .v1.StrategyResources resources = 26;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
* .v1.StrategyResources resources = 26;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.getDefaultInstance() : resources_;
}
}
/**
* .v1.StrategyResources resources = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources, com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources, com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResources.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.StrategyResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch optionSwitch_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder> optionSwitchBuilder_;
/**
* .v1.OptionSwitch optionSwitch = 27;
* @return Whether the optionSwitch field is set.
*/
public boolean hasOptionSwitch() {
return optionSwitchBuilder_ != null || optionSwitch_ != null;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
* @return The optionSwitch.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch getOptionSwitch() {
if (optionSwitchBuilder_ == null) {
return optionSwitch_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.getDefaultInstance() : optionSwitch_;
} else {
return optionSwitchBuilder_.getMessage();
}
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
public Builder setOptionSwitch(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch value) {
if (optionSwitchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionSwitch_ = value;
onChanged();
} else {
optionSwitchBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
public Builder setOptionSwitch(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder builderForValue) {
if (optionSwitchBuilder_ == null) {
optionSwitch_ = builderForValue.build();
onChanged();
} else {
optionSwitchBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
public Builder mergeOptionSwitch(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch value) {
if (optionSwitchBuilder_ == null) {
if (optionSwitch_ != null) {
optionSwitch_ =
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.newBuilder(optionSwitch_).mergeFrom(value).buildPartial();
} else {
optionSwitch_ = value;
}
onChanged();
} else {
optionSwitchBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
public Builder clearOptionSwitch() {
if (optionSwitchBuilder_ == null) {
optionSwitch_ = null;
onChanged();
} else {
optionSwitch_ = null;
optionSwitchBuilder_ = null;
}
return this;
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder getOptionSwitchBuilder() {
onChanged();
return getOptionSwitchFieldBuilder().getBuilder();
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder getOptionSwitchOrBuilder() {
if (optionSwitchBuilder_ != null) {
return optionSwitchBuilder_.getMessageOrBuilder();
} else {
return optionSwitch_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.getDefaultInstance() : optionSwitch_;
}
}
/**
* .v1.OptionSwitch optionSwitch = 27;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder>
getOptionSwitchFieldBuilder() {
if (optionSwitchBuilder_ == null) {
optionSwitchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder>(
getOptionSwitch(),
getParentForChildren(),
isClean());
optionSwitch_ = null;
}
return optionSwitchBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels instanceLabels_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder> instanceLabelsBuilder_;
/**
* .v1.InstanceLabels instanceLabels = 28;
* @return Whether the instanceLabels field is set.
*/
public boolean hasInstanceLabels() {
return instanceLabelsBuilder_ != null || instanceLabels_ != null;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
* @return The instanceLabels.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels getInstanceLabels() {
if (instanceLabelsBuilder_ == null) {
return instanceLabels_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.getDefaultInstance() : instanceLabels_;
} else {
return instanceLabelsBuilder_.getMessage();
}
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
public Builder setInstanceLabels(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels value) {
if (instanceLabelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
instanceLabels_ = value;
onChanged();
} else {
instanceLabelsBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
public Builder setInstanceLabels(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder builderForValue) {
if (instanceLabelsBuilder_ == null) {
instanceLabels_ = builderForValue.build();
onChanged();
} else {
instanceLabelsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
public Builder mergeInstanceLabels(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels value) {
if (instanceLabelsBuilder_ == null) {
if (instanceLabels_ != null) {
instanceLabels_ =
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.newBuilder(instanceLabels_).mergeFrom(value).buildPartial();
} else {
instanceLabels_ = value;
}
onChanged();
} else {
instanceLabelsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
public Builder clearInstanceLabels() {
if (instanceLabelsBuilder_ == null) {
instanceLabels_ = null;
onChanged();
} else {
instanceLabels_ = null;
instanceLabelsBuilder_ = null;
}
return this;
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder getInstanceLabelsBuilder() {
onChanged();
return getInstanceLabelsFieldBuilder().getBuilder();
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder getInstanceLabelsOrBuilder() {
if (instanceLabelsBuilder_ != null) {
return instanceLabelsBuilder_.getMessageOrBuilder();
} else {
return instanceLabels_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.getDefaultInstance() : instanceLabels_;
}
}
/**
* .v1.InstanceLabels instanceLabels = 28;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder>
getInstanceLabelsFieldBuilder() {
if (instanceLabelsBuilder_ == null) {
instanceLabelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder>(
getInstanceLabels(),
getParentForChildren(),
isClean());
instanceLabels_ = null;
}
return instanceLabelsBuilder_;
}
private com.google.protobuf.Any data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_;
/**
* .google.protobuf.Any data = 29;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
* .google.protobuf.Any data = 29;
* @return The data.
*/
public com.google.protobuf.Any getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any data = 29;
*/
public Builder setData(com.google.protobuf.Any value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Any data = 29;
*/
public Builder setData(
com.google.protobuf.Any.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Any data = 29;
*/
public Builder mergeData(com.google.protobuf.Any value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Any data = 29;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Any data = 29;
*/
public com.google.protobuf.Any.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any data = 29;
*/
public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
com.google.protobuf.Any.getDefaultInstance() : data_;
}
}
/**
* .google.protobuf.Any data = 29;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract serviceContract_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder> serviceContractBuilder_;
/**
* .v1.ServiceContract serviceContract = 30;
* @return Whether the serviceContract field is set.
*/
public boolean hasServiceContract() {
return serviceContractBuilder_ != null || serviceContract_ != null;
}
/**
* .v1.ServiceContract serviceContract = 30;
* @return The serviceContract.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract getServiceContract() {
if (serviceContractBuilder_ == null) {
return serviceContract_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.getDefaultInstance() : serviceContract_;
} else {
return serviceContractBuilder_.getMessage();
}
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
public Builder setServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract value) {
if (serviceContractBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
serviceContract_ = value;
onChanged();
} else {
serviceContractBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
public Builder setServiceContract(
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder builderForValue) {
if (serviceContractBuilder_ == null) {
serviceContract_ = builderForValue.build();
onChanged();
} else {
serviceContractBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
public Builder mergeServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract value) {
if (serviceContractBuilder_ == null) {
if (serviceContract_ != null) {
serviceContract_ =
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.newBuilder(serviceContract_).mergeFrom(value).buildPartial();
} else {
serviceContract_ = value;
}
onChanged();
} else {
serviceContractBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
public Builder clearServiceContract() {
if (serviceContractBuilder_ == null) {
serviceContract_ = null;
onChanged();
} else {
serviceContract_ = null;
serviceContractBuilder_ = null;
}
return this;
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder getServiceContractBuilder() {
onChanged();
return getServiceContractFieldBuilder().getBuilder();
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder getServiceContractOrBuilder() {
if (serviceContractBuilder_ != null) {
return serviceContractBuilder_.getMessageOrBuilder();
} else {
return serviceContract_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.getDefaultInstance() : serviceContract_;
}
}
/**
* .v1.ServiceContract serviceContract = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder>
getServiceContractFieldBuilder() {
if (serviceContractBuilder_ == null) {
serviceContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder>(
getServiceContract(),
getParentForChildren(),
isClean());
serviceContract_ = null;
}
return serviceContractBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.Response)
}
// @@protoc_insertion_point(class_scope:v1.Response)
private static final com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response();
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchWriteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.BatchWriteResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
com.google.protobuf.UInt32Value getCode();
/**
* .google.protobuf.UInt32Value code = 1;
*/
com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder();
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
com.google.protobuf.StringValue getInfo();
/**
* .google.protobuf.StringValue info = 2;
*/
com.google.protobuf.StringValueOrBuilder getInfoOrBuilder();
/**
* .google.protobuf.UInt32Value size = 3;
* @return Whether the size field is set.
*/
boolean hasSize();
/**
* .google.protobuf.UInt32Value size = 3;
* @return The size.
*/
com.google.protobuf.UInt32Value getSize();
/**
* .google.protobuf.UInt32Value size = 3;
*/
com.google.protobuf.UInt32ValueOrBuilder getSizeOrBuilder();
/**
* repeated .v1.Response responses = 4;
*/
java.util.List
getResponsesList();
/**
* repeated .v1.Response responses = 4;
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getResponses(int index);
/**
* repeated .v1.Response responses = 4;
*/
int getResponsesCount();
/**
* repeated .v1.Response responses = 4;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder>
getResponsesOrBuilderList();
/**
* repeated .v1.Response responses = 4;
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder getResponsesOrBuilder(
int index);
}
/**
* Protobuf type {@code v1.BatchWriteResponse}
*/
public static final class BatchWriteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.BatchWriteResponse)
BatchWriteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchWriteResponse.newBuilder() to construct.
private BatchWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchWriteResponse() {
responses_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchWriteResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchWriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchWriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private com.google.protobuf.UInt32Value code_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getCode() {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
return getCode();
}
public static final int INFO_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue info_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
@java.lang.Override
public com.google.protobuf.StringValue getInfo() {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
/**
* .google.protobuf.StringValue info = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
return getInfo();
}
public static final int SIZE_FIELD_NUMBER = 3;
private com.google.protobuf.UInt32Value size_;
/**
* .google.protobuf.UInt32Value size = 3;
* @return Whether the size field is set.
*/
@java.lang.Override
public boolean hasSize() {
return size_ != null;
}
/**
* .google.protobuf.UInt32Value size = 3;
* @return The size.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getSize() {
return size_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : size_;
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getSizeOrBuilder() {
return getSize();
}
public static final int RESPONSES_FIELD_NUMBER = 4;
private java.util.List responses_;
/**
* repeated .v1.Response responses = 4;
*/
@java.lang.Override
public java.util.List getResponsesList() {
return responses_;
}
/**
* repeated .v1.Response responses = 4;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder>
getResponsesOrBuilderList() {
return responses_;
}
/**
* repeated .v1.Response responses = 4;
*/
@java.lang.Override
public int getResponsesCount() {
return responses_.size();
}
/**
* repeated .v1.Response responses = 4;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getResponses(int index) {
return responses_.get(index);
}
/**
* repeated .v1.Response responses = 4;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder getResponsesOrBuilder(
int index) {
return responses_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != null) {
output.writeMessage(1, getCode());
}
if (info_ != null) {
output.writeMessage(2, getInfo());
}
if (size_ != null) {
output.writeMessage(3, getSize());
}
for (int i = 0; i < responses_.size(); i++) {
output.writeMessage(4, responses_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCode());
}
if (info_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getInfo());
}
if (size_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSize());
}
for (int i = 0; i < responses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, responses_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse other = (com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (!getCode()
.equals(other.getCode())) return false;
}
if (hasInfo() != other.hasInfo()) return false;
if (hasInfo()) {
if (!getInfo()
.equals(other.getInfo())) return false;
}
if (hasSize() != other.hasSize()) return false;
if (hasSize()) {
if (!getSize()
.equals(other.getSize())) return false;
}
if (!getResponsesList()
.equals(other.getResponsesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
}
if (hasInfo()) {
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
}
if (hasSize()) {
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSize().hashCode();
}
if (getResponsesCount() > 0) {
hash = (37 * hash) + RESPONSES_FIELD_NUMBER;
hash = (53 * hash) + getResponsesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code v1.BatchWriteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.BatchWriteResponse)
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchWriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchWriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (codeBuilder_ == null) {
code_ = null;
} else {
code_ = null;
codeBuilder_ = null;
}
if (infoBuilder_ == null) {
info_ = null;
} else {
info_ = null;
infoBuilder_ = null;
}
if (sizeBuilder_ == null) {
size_ = null;
} else {
size_ = null;
sizeBuilder_ = null;
}
if (responsesBuilder_ == null) {
responses_ = java.util.Collections.emptyList();
} else {
responses_ = null;
responsesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchWriteResponse_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse build() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse result = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse(this);
int from_bitField0_ = bitField0_;
if (codeBuilder_ == null) {
result.code_ = code_;
} else {
result.code_ = codeBuilder_.build();
}
if (infoBuilder_ == null) {
result.info_ = info_;
} else {
result.info_ = infoBuilder_.build();
}
if (sizeBuilder_ == null) {
result.size_ = size_;
} else {
result.size_ = sizeBuilder_.build();
}
if (responsesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.responses_ = responses_;
} else {
result.responses_ = responsesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse.getDefaultInstance()) return this;
if (other.hasCode()) {
mergeCode(other.getCode());
}
if (other.hasInfo()) {
mergeInfo(other.getInfo());
}
if (other.hasSize()) {
mergeSize(other.getSize());
}
if (responsesBuilder_ == null) {
if (!other.responses_.isEmpty()) {
if (responses_.isEmpty()) {
responses_ = other.responses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponsesIsMutable();
responses_.addAll(other.responses_);
}
onChanged();
}
} else {
if (!other.responses_.isEmpty()) {
if (responsesBuilder_.isEmpty()) {
responsesBuilder_.dispose();
responsesBuilder_ = null;
responses_ = other.responses_;
bitField0_ = (bitField0_ & ~0x00000001);
responsesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponsesFieldBuilder() : null;
} else {
responsesBuilder_.addAllMessages(other.responses_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCodeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getInfoFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getSizeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.parser(),
extensionRegistry);
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(m);
} else {
responsesBuilder_.addMessage(m);
}
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.UInt32Value code_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> codeBuilder_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
public boolean hasCode() {
return codeBuilder_ != null || code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
public com.google.protobuf.UInt32Value getCode() {
if (codeBuilder_ == null) {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
} else {
return codeBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
} else {
codeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (codeBuilder_ == null) {
code_ = builderForValue.build();
onChanged();
} else {
codeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder mergeCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (code_ != null) {
code_ =
com.google.protobuf.UInt32Value.newBuilder(code_).mergeFrom(value).buildPartial();
} else {
code_ = value;
}
onChanged();
} else {
codeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder clearCode() {
if (codeBuilder_ == null) {
code_ = null;
onChanged();
} else {
code_ = null;
codeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32Value.Builder getCodeBuilder() {
onChanged();
return getCodeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
if (codeBuilder_ != null) {
return codeBuilder_.getMessageOrBuilder();
} else {
return code_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getCodeFieldBuilder() {
if (codeBuilder_ == null) {
codeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getCode(),
getParentForChildren(),
isClean());
code_ = null;
}
return codeBuilder_;
}
private com.google.protobuf.StringValue info_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> infoBuilder_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
public boolean hasInfo() {
return infoBuilder_ != null || info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
public com.google.protobuf.StringValue getInfo() {
if (infoBuilder_ == null) {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
} else {
return infoBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder mergeInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (info_ != null) {
info_ =
com.google.protobuf.StringValue.newBuilder(info_).mergeFrom(value).buildPartial();
} else {
info_ = value;
}
onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
info_ = null;
onChanged();
} else {
info_ = null;
infoBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValue.Builder getInfoBuilder() {
onChanged();
return getInfoFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
if (infoBuilder_ != null) {
return infoBuilder_.getMessageOrBuilder();
} else {
return info_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getInfo(),
getParentForChildren(),
isClean());
info_ = null;
}
return infoBuilder_;
}
private com.google.protobuf.UInt32Value size_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> sizeBuilder_;
/**
* .google.protobuf.UInt32Value size = 3;
* @return Whether the size field is set.
*/
public boolean hasSize() {
return sizeBuilder_ != null || size_ != null;
}
/**
* .google.protobuf.UInt32Value size = 3;
* @return The size.
*/
public com.google.protobuf.UInt32Value getSize() {
if (sizeBuilder_ == null) {
return size_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : size_;
} else {
return sizeBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
public Builder setSize(com.google.protobuf.UInt32Value value) {
if (sizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
size_ = value;
onChanged();
} else {
sizeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
public Builder setSize(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (sizeBuilder_ == null) {
size_ = builderForValue.build();
onChanged();
} else {
sizeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
public Builder mergeSize(com.google.protobuf.UInt32Value value) {
if (sizeBuilder_ == null) {
if (size_ != null) {
size_ =
com.google.protobuf.UInt32Value.newBuilder(size_).mergeFrom(value).buildPartial();
} else {
size_ = value;
}
onChanged();
} else {
sizeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
public Builder clearSize() {
if (sizeBuilder_ == null) {
size_ = null;
onChanged();
} else {
size_ = null;
sizeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
public com.google.protobuf.UInt32Value.Builder getSizeBuilder() {
onChanged();
return getSizeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
public com.google.protobuf.UInt32ValueOrBuilder getSizeOrBuilder() {
if (sizeBuilder_ != null) {
return sizeBuilder_.getMessageOrBuilder();
} else {
return size_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : size_;
}
}
/**
* .google.protobuf.UInt32Value size = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getSizeFieldBuilder() {
if (sizeBuilder_ == null) {
sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getSize(),
getParentForChildren(),
isClean());
size_ = null;
}
return sizeBuilder_;
}
private java.util.List responses_ =
java.util.Collections.emptyList();
private void ensureResponsesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
responses_ = new java.util.ArrayList(responses_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder> responsesBuilder_;
/**
* repeated .v1.Response responses = 4;
*/
public java.util.List getResponsesList() {
if (responsesBuilder_ == null) {
return java.util.Collections.unmodifiableList(responses_);
} else {
return responsesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Response responses = 4;
*/
public int getResponsesCount() {
if (responsesBuilder_ == null) {
return responses_.size();
} else {
return responsesBuilder_.getCount();
}
}
/**
* repeated .v1.Response responses = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getResponses(int index) {
if (responsesBuilder_ == null) {
return responses_.get(index);
} else {
return responsesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder setResponses(
int index, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.set(index, value);
onChanged();
} else {
responsesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder setResponses(
int index, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.set(index, builderForValue.build());
onChanged();
} else {
responsesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder addResponses(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.add(value);
onChanged();
} else {
responsesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder addResponses(
int index, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.add(index, value);
onChanged();
} else {
responsesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder addResponses(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(builderForValue.build());
onChanged();
} else {
responsesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder addResponses(
int index, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(index, builderForValue.build());
onChanged();
} else {
responsesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder addAllResponses(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response> values) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, responses_);
onChanged();
} else {
responsesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder clearResponses() {
if (responsesBuilder_ == null) {
responses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
responsesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public Builder removeResponses(int index) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.remove(index);
onChanged();
} else {
responsesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Response responses = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder getResponsesBuilder(
int index) {
return getResponsesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Response responses = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder getResponsesOrBuilder(
int index) {
if (responsesBuilder_ == null) {
return responses_.get(index); } else {
return responsesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Response responses = 4;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder>
getResponsesOrBuilderList() {
if (responsesBuilder_ != null) {
return responsesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(responses_);
}
}
/**
* repeated .v1.Response responses = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder addResponsesBuilder() {
return getResponsesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance());
}
/**
* repeated .v1.Response responses = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder addResponsesBuilder(
int index) {
return getResponsesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance());
}
/**
* repeated .v1.Response responses = 4;
*/
public java.util.List
getResponsesBuilderList() {
return getResponsesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder>
getResponsesFieldBuilder() {
if (responsesBuilder_ == null) {
responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.Builder, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.ResponseOrBuilder>(
responses_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
responses_ = null;
}
return responsesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.BatchWriteResponse)
}
// @@protoc_insertion_point(class_scope:v1.BatchWriteResponse)
private static final com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse();
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchWriteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchWriteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchQueryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.BatchQueryResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
com.google.protobuf.UInt32Value getCode();
/**
* .google.protobuf.UInt32Value code = 1;
*/
com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder();
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
com.google.protobuf.StringValue getInfo();
/**
* .google.protobuf.StringValue info = 2;
*/
com.google.protobuf.StringValueOrBuilder getInfoOrBuilder();
/**
* .google.protobuf.UInt32Value amount = 3;
* @return Whether the amount field is set.
*/
boolean hasAmount();
/**
* .google.protobuf.UInt32Value amount = 3;
* @return The amount.
*/
com.google.protobuf.UInt32Value getAmount();
/**
* .google.protobuf.UInt32Value amount = 3;
*/
com.google.protobuf.UInt32ValueOrBuilder getAmountOrBuilder();
/**
* .google.protobuf.UInt32Value size = 4;
* @return Whether the size field is set.
*/
boolean hasSize();
/**
* .google.protobuf.UInt32Value size = 4;
* @return The size.
*/
com.google.protobuf.UInt32Value getSize();
/**
* .google.protobuf.UInt32Value size = 4;
*/
com.google.protobuf.UInt32ValueOrBuilder getSizeOrBuilder();
/**
* repeated .v1.Namespace namespaces = 5;
*/
java.util.List
getNamespacesList();
/**
* repeated .v1.Namespace namespaces = 5;
*/
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespaces(int index);
/**
* repeated .v1.Namespace namespaces = 5;
*/
int getNamespacesCount();
/**
* repeated .v1.Namespace namespaces = 5;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesOrBuilderList();
/**
* repeated .v1.Namespace namespaces = 5;
*/
com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespacesOrBuilder(
int index);
/**
* repeated .v1.Service services = 6;
*/
java.util.List
getServicesList();
/**
* repeated .v1.Service services = 6;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getServices(int index);
/**
* repeated .v1.Service services = 6;
*/
int getServicesCount();
/**
* repeated .v1.Service services = 6;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesOrBuilderList();
/**
* repeated .v1.Service services = 6;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServicesOrBuilder(
int index);
/**
* repeated .v1.Instance instances = 7;
*/
java.util.List
getInstancesList();
/**
* repeated .v1.Instance instances = 7;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstances(int index);
/**
* repeated .v1.Instance instances = 7;
*/
int getInstancesCount();
/**
* repeated .v1.Instance instances = 7;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesOrBuilderList();
/**
* repeated .v1.Instance instances = 7;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstancesOrBuilder(
int index);
/**
* repeated .v1.Routing routings = 8;
*/
java.util.List
getRoutingsList();
/**
* repeated .v1.Routing routings = 8;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRoutings(int index);
/**
* repeated .v1.Routing routings = 8;
*/
int getRoutingsCount();
/**
* repeated .v1.Routing routings = 8;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>
getRoutingsOrBuilderList();
/**
* repeated .v1.Routing routings = 8;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingsOrBuilder(
int index);
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
java.util.List
getAliasesList();
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias getAliases(int index);
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
int getAliasesCount();
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>
getAliasesOrBuilderList();
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder getAliasesOrBuilder(
int index);
/**
* repeated .v1.Rule rateLimits = 10;
*/
java.util.List
getRateLimitsList();
/**
* repeated .v1.Rule rateLimits = 10;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule getRateLimits(int index);
/**
* repeated .v1.Rule rateLimits = 10;
*/
int getRateLimitsCount();
/**
* repeated .v1.Rule rateLimits = 10;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>
getRateLimitsOrBuilderList();
/**
* repeated .v1.Rule rateLimits = 10;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder getRateLimitsOrBuilder(
int index);
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
java.util.List
getConfigWithServicesList();
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService getConfigWithServices(int index);
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
int getConfigWithServicesCount();
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder>
getConfigWithServicesOrBuilderList();
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder getConfigWithServicesOrBuilder(
int index);
/**
* repeated .v1.User users = 18;
*/
java.util.List
getUsersList();
/**
* repeated .v1.User users = 18;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.User getUsers(int index);
/**
* repeated .v1.User users = 18;
*/
int getUsersCount();
/**
* repeated .v1.User users = 18;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>
getUsersOrBuilderList();
/**
* repeated .v1.User users = 18;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder getUsersOrBuilder(
int index);
/**
* repeated .v1.UserGroup userGroups = 19;
*/
java.util.List
getUserGroupsList();
/**
* repeated .v1.UserGroup userGroups = 19;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup getUserGroups(int index);
/**
* repeated .v1.UserGroup userGroups = 19;
*/
int getUserGroupsCount();
/**
* repeated .v1.UserGroup userGroups = 19;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>
getUserGroupsOrBuilderList();
/**
* repeated .v1.UserGroup userGroups = 19;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder getUserGroupsOrBuilder(
int index);
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
java.util.List
getAuthStrategiesList();
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy getAuthStrategies(int index);
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
int getAuthStrategiesCount();
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>
getAuthStrategiesOrBuilderList();
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder getAuthStrategiesOrBuilder(
int index);
/**
* repeated .v1.Client clients = 21;
*/
java.util.List
getClientsList();
/**
* repeated .v1.Client clients = 21;
*/
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client getClients(int index);
/**
* repeated .v1.Client clients = 21;
*/
int getClientsCount();
/**
* repeated .v1.Client clients = 21;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>
getClientsOrBuilderList();
/**
* repeated .v1.Client clients = 21;
*/
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder getClientsOrBuilder(
int index);
/**
* repeated .google.protobuf.Any data = 22;
*/
java.util.List
getDataList();
/**
* repeated .google.protobuf.Any data = 22;
*/
com.google.protobuf.Any getData(int index);
/**
* repeated .google.protobuf.Any data = 22;
*/
int getDataCount();
/**
* repeated .google.protobuf.Any data = 22;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getDataOrBuilderList();
/**
* repeated .google.protobuf.Any data = 22;
*/
com.google.protobuf.AnyOrBuilder getDataOrBuilder(
int index);
/**
* .v1.Summary summary = 23;
* @return Whether the summary field is set.
*/
boolean hasSummary();
/**
* .v1.Summary summary = 23;
* @return The summary.
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary getSummary();
/**
* .v1.Summary summary = 23;
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder getSummaryOrBuilder();
}
/**
* Protobuf type {@code v1.BatchQueryResponse}
*/
public static final class BatchQueryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.BatchQueryResponse)
BatchQueryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchQueryResponse.newBuilder() to construct.
private BatchQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchQueryResponse() {
namespaces_ = java.util.Collections.emptyList();
services_ = java.util.Collections.emptyList();
instances_ = java.util.Collections.emptyList();
routings_ = java.util.Collections.emptyList();
aliases_ = java.util.Collections.emptyList();
rateLimits_ = java.util.Collections.emptyList();
configWithServices_ = java.util.Collections.emptyList();
users_ = java.util.Collections.emptyList();
userGroups_ = java.util.Collections.emptyList();
authStrategies_ = java.util.Collections.emptyList();
clients_ = java.util.Collections.emptyList();
data_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchQueryResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchQueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchQueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private com.google.protobuf.UInt32Value code_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getCode() {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
return getCode();
}
public static final int INFO_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue info_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
@java.lang.Override
public com.google.protobuf.StringValue getInfo() {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
/**
* .google.protobuf.StringValue info = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
return getInfo();
}
public static final int AMOUNT_FIELD_NUMBER = 3;
private com.google.protobuf.UInt32Value amount_;
/**
* .google.protobuf.UInt32Value amount = 3;
* @return Whether the amount field is set.
*/
@java.lang.Override
public boolean hasAmount() {
return amount_ != null;
}
/**
* .google.protobuf.UInt32Value amount = 3;
* @return The amount.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getAmount() {
return amount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : amount_;
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getAmountOrBuilder() {
return getAmount();
}
public static final int SIZE_FIELD_NUMBER = 4;
private com.google.protobuf.UInt32Value size_;
/**
* .google.protobuf.UInt32Value size = 4;
* @return Whether the size field is set.
*/
@java.lang.Override
public boolean hasSize() {
return size_ != null;
}
/**
* .google.protobuf.UInt32Value size = 4;
* @return The size.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getSize() {
return size_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : size_;
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getSizeOrBuilder() {
return getSize();
}
public static final int NAMESPACES_FIELD_NUMBER = 5;
private java.util.List namespaces_;
/**
* repeated .v1.Namespace namespaces = 5;
*/
@java.lang.Override
public java.util.List getNamespacesList() {
return namespaces_;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesOrBuilderList() {
return namespaces_;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
@java.lang.Override
public int getNamespacesCount() {
return namespaces_.size();
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespaces(int index) {
return namespaces_.get(index);
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespacesOrBuilder(
int index) {
return namespaces_.get(index);
}
public static final int SERVICES_FIELD_NUMBER = 6;
private java.util.List services_;
/**
* repeated .v1.Service services = 6;
*/
@java.lang.Override
public java.util.List getServicesList() {
return services_;
}
/**
* repeated .v1.Service services = 6;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesOrBuilderList() {
return services_;
}
/**
* repeated .v1.Service services = 6;
*/
@java.lang.Override
public int getServicesCount() {
return services_.size();
}
/**
* repeated .v1.Service services = 6;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getServices(int index) {
return services_.get(index);
}
/**
* repeated .v1.Service services = 6;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServicesOrBuilder(
int index) {
return services_.get(index);
}
public static final int INSTANCES_FIELD_NUMBER = 7;
private java.util.List instances_;
/**
* repeated .v1.Instance instances = 7;
*/
@java.lang.Override
public java.util.List getInstancesList() {
return instances_;
}
/**
* repeated .v1.Instance instances = 7;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesOrBuilderList() {
return instances_;
}
/**
* repeated .v1.Instance instances = 7;
*/
@java.lang.Override
public int getInstancesCount() {
return instances_.size();
}
/**
* repeated .v1.Instance instances = 7;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstances(int index) {
return instances_.get(index);
}
/**
* repeated .v1.Instance instances = 7;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstancesOrBuilder(
int index) {
return instances_.get(index);
}
public static final int ROUTINGS_FIELD_NUMBER = 8;
private java.util.List routings_;
/**
* repeated .v1.Routing routings = 8;
*/
@java.lang.Override
public java.util.List getRoutingsList() {
return routings_;
}
/**
* repeated .v1.Routing routings = 8;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>
getRoutingsOrBuilderList() {
return routings_;
}
/**
* repeated .v1.Routing routings = 8;
*/
@java.lang.Override
public int getRoutingsCount() {
return routings_.size();
}
/**
* repeated .v1.Routing routings = 8;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRoutings(int index) {
return routings_.get(index);
}
/**
* repeated .v1.Routing routings = 8;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingsOrBuilder(
int index) {
return routings_.get(index);
}
public static final int ALIASES_FIELD_NUMBER = 9;
private java.util.List aliases_;
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
@java.lang.Override
public java.util.List getAliasesList() {
return aliases_;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>
getAliasesOrBuilderList() {
return aliases_;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
@java.lang.Override
public int getAliasesCount() {
return aliases_.size();
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias getAliases(int index) {
return aliases_.get(index);
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder getAliasesOrBuilder(
int index) {
return aliases_.get(index);
}
public static final int RATELIMITS_FIELD_NUMBER = 10;
private java.util.List rateLimits_;
/**
* repeated .v1.Rule rateLimits = 10;
*/
@java.lang.Override
public java.util.List getRateLimitsList() {
return rateLimits_;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>
getRateLimitsOrBuilderList() {
return rateLimits_;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
@java.lang.Override
public int getRateLimitsCount() {
return rateLimits_.size();
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule getRateLimits(int index) {
return rateLimits_.get(index);
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder getRateLimitsOrBuilder(
int index) {
return rateLimits_.get(index);
}
public static final int CONFIGWITHSERVICES_FIELD_NUMBER = 11;
private java.util.List configWithServices_;
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
@java.lang.Override
public java.util.List getConfigWithServicesList() {
return configWithServices_;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder>
getConfigWithServicesOrBuilderList() {
return configWithServices_;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
@java.lang.Override
public int getConfigWithServicesCount() {
return configWithServices_.size();
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService getConfigWithServices(int index) {
return configWithServices_.get(index);
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder getConfigWithServicesOrBuilder(
int index) {
return configWithServices_.get(index);
}
public static final int USERS_FIELD_NUMBER = 18;
private java.util.List users_;
/**
* repeated .v1.User users = 18;
*/
@java.lang.Override
public java.util.List getUsersList() {
return users_;
}
/**
* repeated .v1.User users = 18;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>
getUsersOrBuilderList() {
return users_;
}
/**
* repeated .v1.User users = 18;
*/
@java.lang.Override
public int getUsersCount() {
return users_.size();
}
/**
* repeated .v1.User users = 18;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User getUsers(int index) {
return users_.get(index);
}
/**
* repeated .v1.User users = 18;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder getUsersOrBuilder(
int index) {
return users_.get(index);
}
public static final int USERGROUPS_FIELD_NUMBER = 19;
private java.util.List userGroups_;
/**
* repeated .v1.UserGroup userGroups = 19;
*/
@java.lang.Override
public java.util.List getUserGroupsList() {
return userGroups_;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>
getUserGroupsOrBuilderList() {
return userGroups_;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
@java.lang.Override
public int getUserGroupsCount() {
return userGroups_.size();
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup getUserGroups(int index) {
return userGroups_.get(index);
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder getUserGroupsOrBuilder(
int index) {
return userGroups_.get(index);
}
public static final int AUTHSTRATEGIES_FIELD_NUMBER = 20;
private java.util.List authStrategies_;
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
@java.lang.Override
public java.util.List getAuthStrategiesList() {
return authStrategies_;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>
getAuthStrategiesOrBuilderList() {
return authStrategies_;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
@java.lang.Override
public int getAuthStrategiesCount() {
return authStrategies_.size();
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy getAuthStrategies(int index) {
return authStrategies_.get(index);
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder getAuthStrategiesOrBuilder(
int index) {
return authStrategies_.get(index);
}
public static final int CLIENTS_FIELD_NUMBER = 21;
private java.util.List clients_;
/**
* repeated .v1.Client clients = 21;
*/
@java.lang.Override
public java.util.List getClientsList() {
return clients_;
}
/**
* repeated .v1.Client clients = 21;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>
getClientsOrBuilderList() {
return clients_;
}
/**
* repeated .v1.Client clients = 21;
*/
@java.lang.Override
public int getClientsCount() {
return clients_.size();
}
/**
* repeated .v1.Client clients = 21;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client getClients(int index) {
return clients_.get(index);
}
/**
* repeated .v1.Client clients = 21;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder getClientsOrBuilder(
int index) {
return clients_.get(index);
}
public static final int DATA_FIELD_NUMBER = 22;
private java.util.List data_;
/**
* repeated .google.protobuf.Any data = 22;
*/
@java.lang.Override
public java.util.List getDataList() {
return data_;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getDataOrBuilderList() {
return data_;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
@java.lang.Override
public int getDataCount() {
return data_.size();
}
/**
* repeated .google.protobuf.Any data = 22;
*/
@java.lang.Override
public com.google.protobuf.Any getData(int index) {
return data_.get(index);
}
/**
* repeated .google.protobuf.Any data = 22;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getDataOrBuilder(
int index) {
return data_.get(index);
}
public static final int SUMMARY_FIELD_NUMBER = 23;
private com.tencent.polaris.specification.api.v1.model.ModelProto.Summary summary_;
/**
* .v1.Summary summary = 23;
* @return Whether the summary field is set.
*/
@java.lang.Override
public boolean hasSummary() {
return summary_ != null;
}
/**
* .v1.Summary summary = 23;
* @return The summary.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Summary getSummary() {
return summary_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.getDefaultInstance() : summary_;
}
/**
* .v1.Summary summary = 23;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder getSummaryOrBuilder() {
return getSummary();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != null) {
output.writeMessage(1, getCode());
}
if (info_ != null) {
output.writeMessage(2, getInfo());
}
if (amount_ != null) {
output.writeMessage(3, getAmount());
}
if (size_ != null) {
output.writeMessage(4, getSize());
}
for (int i = 0; i < namespaces_.size(); i++) {
output.writeMessage(5, namespaces_.get(i));
}
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(6, services_.get(i));
}
for (int i = 0; i < instances_.size(); i++) {
output.writeMessage(7, instances_.get(i));
}
for (int i = 0; i < routings_.size(); i++) {
output.writeMessage(8, routings_.get(i));
}
for (int i = 0; i < aliases_.size(); i++) {
output.writeMessage(9, aliases_.get(i));
}
for (int i = 0; i < rateLimits_.size(); i++) {
output.writeMessage(10, rateLimits_.get(i));
}
for (int i = 0; i < configWithServices_.size(); i++) {
output.writeMessage(11, configWithServices_.get(i));
}
for (int i = 0; i < users_.size(); i++) {
output.writeMessage(18, users_.get(i));
}
for (int i = 0; i < userGroups_.size(); i++) {
output.writeMessage(19, userGroups_.get(i));
}
for (int i = 0; i < authStrategies_.size(); i++) {
output.writeMessage(20, authStrategies_.get(i));
}
for (int i = 0; i < clients_.size(); i++) {
output.writeMessage(21, clients_.get(i));
}
for (int i = 0; i < data_.size(); i++) {
output.writeMessage(22, data_.get(i));
}
if (summary_ != null) {
output.writeMessage(23, getSummary());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCode());
}
if (info_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getInfo());
}
if (amount_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAmount());
}
if (size_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSize());
}
for (int i = 0; i < namespaces_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, namespaces_.get(i));
}
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, services_.get(i));
}
for (int i = 0; i < instances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, instances_.get(i));
}
for (int i = 0; i < routings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, routings_.get(i));
}
for (int i = 0; i < aliases_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, aliases_.get(i));
}
for (int i = 0; i < rateLimits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, rateLimits_.get(i));
}
for (int i = 0; i < configWithServices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, configWithServices_.get(i));
}
for (int i = 0; i < users_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, users_.get(i));
}
for (int i = 0; i < userGroups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, userGroups_.get(i));
}
for (int i = 0; i < authStrategies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, authStrategies_.get(i));
}
for (int i = 0; i < clients_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, clients_.get(i));
}
for (int i = 0; i < data_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, data_.get(i));
}
if (summary_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, getSummary());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse other = (com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (!getCode()
.equals(other.getCode())) return false;
}
if (hasInfo() != other.hasInfo()) return false;
if (hasInfo()) {
if (!getInfo()
.equals(other.getInfo())) return false;
}
if (hasAmount() != other.hasAmount()) return false;
if (hasAmount()) {
if (!getAmount()
.equals(other.getAmount())) return false;
}
if (hasSize() != other.hasSize()) return false;
if (hasSize()) {
if (!getSize()
.equals(other.getSize())) return false;
}
if (!getNamespacesList()
.equals(other.getNamespacesList())) return false;
if (!getServicesList()
.equals(other.getServicesList())) return false;
if (!getInstancesList()
.equals(other.getInstancesList())) return false;
if (!getRoutingsList()
.equals(other.getRoutingsList())) return false;
if (!getAliasesList()
.equals(other.getAliasesList())) return false;
if (!getRateLimitsList()
.equals(other.getRateLimitsList())) return false;
if (!getConfigWithServicesList()
.equals(other.getConfigWithServicesList())) return false;
if (!getUsersList()
.equals(other.getUsersList())) return false;
if (!getUserGroupsList()
.equals(other.getUserGroupsList())) return false;
if (!getAuthStrategiesList()
.equals(other.getAuthStrategiesList())) return false;
if (!getClientsList()
.equals(other.getClientsList())) return false;
if (!getDataList()
.equals(other.getDataList())) return false;
if (hasSummary() != other.hasSummary()) return false;
if (hasSummary()) {
if (!getSummary()
.equals(other.getSummary())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
}
if (hasInfo()) {
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
}
if (hasAmount()) {
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAmount().hashCode();
}
if (hasSize()) {
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSize().hashCode();
}
if (getNamespacesCount() > 0) {
hash = (37 * hash) + NAMESPACES_FIELD_NUMBER;
hash = (53 * hash) + getNamespacesList().hashCode();
}
if (getServicesCount() > 0) {
hash = (37 * hash) + SERVICES_FIELD_NUMBER;
hash = (53 * hash) + getServicesList().hashCode();
}
if (getInstancesCount() > 0) {
hash = (37 * hash) + INSTANCES_FIELD_NUMBER;
hash = (53 * hash) + getInstancesList().hashCode();
}
if (getRoutingsCount() > 0) {
hash = (37 * hash) + ROUTINGS_FIELD_NUMBER;
hash = (53 * hash) + getRoutingsList().hashCode();
}
if (getAliasesCount() > 0) {
hash = (37 * hash) + ALIASES_FIELD_NUMBER;
hash = (53 * hash) + getAliasesList().hashCode();
}
if (getRateLimitsCount() > 0) {
hash = (37 * hash) + RATELIMITS_FIELD_NUMBER;
hash = (53 * hash) + getRateLimitsList().hashCode();
}
if (getConfigWithServicesCount() > 0) {
hash = (37 * hash) + CONFIGWITHSERVICES_FIELD_NUMBER;
hash = (53 * hash) + getConfigWithServicesList().hashCode();
}
if (getUsersCount() > 0) {
hash = (37 * hash) + USERS_FIELD_NUMBER;
hash = (53 * hash) + getUsersList().hashCode();
}
if (getUserGroupsCount() > 0) {
hash = (37 * hash) + USERGROUPS_FIELD_NUMBER;
hash = (53 * hash) + getUserGroupsList().hashCode();
}
if (getAuthStrategiesCount() > 0) {
hash = (37 * hash) + AUTHSTRATEGIES_FIELD_NUMBER;
hash = (53 * hash) + getAuthStrategiesList().hashCode();
}
if (getClientsCount() > 0) {
hash = (37 * hash) + CLIENTS_FIELD_NUMBER;
hash = (53 * hash) + getClientsList().hashCode();
}
if (getDataCount() > 0) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getDataList().hashCode();
}
if (hasSummary()) {
hash = (37 * hash) + SUMMARY_FIELD_NUMBER;
hash = (53 * hash) + getSummary().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code v1.BatchQueryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.BatchQueryResponse)
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchQueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchQueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (codeBuilder_ == null) {
code_ = null;
} else {
code_ = null;
codeBuilder_ = null;
}
if (infoBuilder_ == null) {
info_ = null;
} else {
info_ = null;
infoBuilder_ = null;
}
if (amountBuilder_ == null) {
amount_ = null;
} else {
amount_ = null;
amountBuilder_ = null;
}
if (sizeBuilder_ == null) {
size_ = null;
} else {
size_ = null;
sizeBuilder_ = null;
}
if (namespacesBuilder_ == null) {
namespaces_ = java.util.Collections.emptyList();
} else {
namespaces_ = null;
namespacesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
} else {
services_ = null;
servicesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
} else {
instances_ = null;
instancesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (routingsBuilder_ == null) {
routings_ = java.util.Collections.emptyList();
} else {
routings_ = null;
routingsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (aliasesBuilder_ == null) {
aliases_ = java.util.Collections.emptyList();
} else {
aliases_ = null;
aliasesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (rateLimitsBuilder_ == null) {
rateLimits_ = java.util.Collections.emptyList();
} else {
rateLimits_ = null;
rateLimitsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (configWithServicesBuilder_ == null) {
configWithServices_ = java.util.Collections.emptyList();
} else {
configWithServices_ = null;
configWithServicesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
} else {
users_ = null;
usersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (userGroupsBuilder_ == null) {
userGroups_ = java.util.Collections.emptyList();
} else {
userGroups_ = null;
userGroupsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (authStrategiesBuilder_ == null) {
authStrategies_ = java.util.Collections.emptyList();
} else {
authStrategies_ = null;
authStrategiesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (clientsBuilder_ == null) {
clients_ = java.util.Collections.emptyList();
} else {
clients_ = null;
clientsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (dataBuilder_ == null) {
data_ = java.util.Collections.emptyList();
} else {
data_ = null;
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (summaryBuilder_ == null) {
summary_ = null;
} else {
summary_ = null;
summaryBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_BatchQueryResponse_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse build() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse result = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse(this);
int from_bitField0_ = bitField0_;
if (codeBuilder_ == null) {
result.code_ = code_;
} else {
result.code_ = codeBuilder_.build();
}
if (infoBuilder_ == null) {
result.info_ = info_;
} else {
result.info_ = infoBuilder_.build();
}
if (amountBuilder_ == null) {
result.amount_ = amount_;
} else {
result.amount_ = amountBuilder_.build();
}
if (sizeBuilder_ == null) {
result.size_ = size_;
} else {
result.size_ = sizeBuilder_.build();
}
if (namespacesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
namespaces_ = java.util.Collections.unmodifiableList(namespaces_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.namespaces_ = namespaces_;
} else {
result.namespaces_ = namespacesBuilder_.build();
}
if (servicesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.services_ = services_;
} else {
result.services_ = servicesBuilder_.build();
}
if (instancesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
instances_ = java.util.Collections.unmodifiableList(instances_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.instances_ = instances_;
} else {
result.instances_ = instancesBuilder_.build();
}
if (routingsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
routings_ = java.util.Collections.unmodifiableList(routings_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.routings_ = routings_;
} else {
result.routings_ = routingsBuilder_.build();
}
if (aliasesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
aliases_ = java.util.Collections.unmodifiableList(aliases_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.aliases_ = aliases_;
} else {
result.aliases_ = aliasesBuilder_.build();
}
if (rateLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
rateLimits_ = java.util.Collections.unmodifiableList(rateLimits_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.rateLimits_ = rateLimits_;
} else {
result.rateLimits_ = rateLimitsBuilder_.build();
}
if (configWithServicesBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
configWithServices_ = java.util.Collections.unmodifiableList(configWithServices_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.configWithServices_ = configWithServices_;
} else {
result.configWithServices_ = configWithServicesBuilder_.build();
}
if (usersBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
users_ = java.util.Collections.unmodifiableList(users_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.users_ = users_;
} else {
result.users_ = usersBuilder_.build();
}
if (userGroupsBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
userGroups_ = java.util.Collections.unmodifiableList(userGroups_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.userGroups_ = userGroups_;
} else {
result.userGroups_ = userGroupsBuilder_.build();
}
if (authStrategiesBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
authStrategies_ = java.util.Collections.unmodifiableList(authStrategies_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.authStrategies_ = authStrategies_;
} else {
result.authStrategies_ = authStrategiesBuilder_.build();
}
if (clientsBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
clients_ = java.util.Collections.unmodifiableList(clients_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.clients_ = clients_;
} else {
result.clients_ = clientsBuilder_.build();
}
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
data_ = java.util.Collections.unmodifiableList(data_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (summaryBuilder_ == null) {
result.summary_ = summary_;
} else {
result.summary_ = summaryBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse.getDefaultInstance()) return this;
if (other.hasCode()) {
mergeCode(other.getCode());
}
if (other.hasInfo()) {
mergeInfo(other.getInfo());
}
if (other.hasAmount()) {
mergeAmount(other.getAmount());
}
if (other.hasSize()) {
mergeSize(other.getSize());
}
if (namespacesBuilder_ == null) {
if (!other.namespaces_.isEmpty()) {
if (namespaces_.isEmpty()) {
namespaces_ = other.namespaces_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNamespacesIsMutable();
namespaces_.addAll(other.namespaces_);
}
onChanged();
}
} else {
if (!other.namespaces_.isEmpty()) {
if (namespacesBuilder_.isEmpty()) {
namespacesBuilder_.dispose();
namespacesBuilder_ = null;
namespaces_ = other.namespaces_;
bitField0_ = (bitField0_ & ~0x00000001);
namespacesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNamespacesFieldBuilder() : null;
} else {
namespacesBuilder_.addAllMessages(other.namespaces_);
}
}
}
if (servicesBuilder_ == null) {
if (!other.services_.isEmpty()) {
if (services_.isEmpty()) {
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureServicesIsMutable();
services_.addAll(other.services_);
}
onChanged();
}
} else {
if (!other.services_.isEmpty()) {
if (servicesBuilder_.isEmpty()) {
servicesBuilder_.dispose();
servicesBuilder_ = null;
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000002);
servicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServicesFieldBuilder() : null;
} else {
servicesBuilder_.addAllMessages(other.services_);
}
}
}
if (instancesBuilder_ == null) {
if (!other.instances_.isEmpty()) {
if (instances_.isEmpty()) {
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInstancesIsMutable();
instances_.addAll(other.instances_);
}
onChanged();
}
} else {
if (!other.instances_.isEmpty()) {
if (instancesBuilder_.isEmpty()) {
instancesBuilder_.dispose();
instancesBuilder_ = null;
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000004);
instancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstancesFieldBuilder() : null;
} else {
instancesBuilder_.addAllMessages(other.instances_);
}
}
}
if (routingsBuilder_ == null) {
if (!other.routings_.isEmpty()) {
if (routings_.isEmpty()) {
routings_ = other.routings_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRoutingsIsMutable();
routings_.addAll(other.routings_);
}
onChanged();
}
} else {
if (!other.routings_.isEmpty()) {
if (routingsBuilder_.isEmpty()) {
routingsBuilder_.dispose();
routingsBuilder_ = null;
routings_ = other.routings_;
bitField0_ = (bitField0_ & ~0x00000008);
routingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRoutingsFieldBuilder() : null;
} else {
routingsBuilder_.addAllMessages(other.routings_);
}
}
}
if (aliasesBuilder_ == null) {
if (!other.aliases_.isEmpty()) {
if (aliases_.isEmpty()) {
aliases_ = other.aliases_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAliasesIsMutable();
aliases_.addAll(other.aliases_);
}
onChanged();
}
} else {
if (!other.aliases_.isEmpty()) {
if (aliasesBuilder_.isEmpty()) {
aliasesBuilder_.dispose();
aliasesBuilder_ = null;
aliases_ = other.aliases_;
bitField0_ = (bitField0_ & ~0x00000010);
aliasesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAliasesFieldBuilder() : null;
} else {
aliasesBuilder_.addAllMessages(other.aliases_);
}
}
}
if (rateLimitsBuilder_ == null) {
if (!other.rateLimits_.isEmpty()) {
if (rateLimits_.isEmpty()) {
rateLimits_ = other.rateLimits_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureRateLimitsIsMutable();
rateLimits_.addAll(other.rateLimits_);
}
onChanged();
}
} else {
if (!other.rateLimits_.isEmpty()) {
if (rateLimitsBuilder_.isEmpty()) {
rateLimitsBuilder_.dispose();
rateLimitsBuilder_ = null;
rateLimits_ = other.rateLimits_;
bitField0_ = (bitField0_ & ~0x00000020);
rateLimitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRateLimitsFieldBuilder() : null;
} else {
rateLimitsBuilder_.addAllMessages(other.rateLimits_);
}
}
}
if (configWithServicesBuilder_ == null) {
if (!other.configWithServices_.isEmpty()) {
if (configWithServices_.isEmpty()) {
configWithServices_ = other.configWithServices_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureConfigWithServicesIsMutable();
configWithServices_.addAll(other.configWithServices_);
}
onChanged();
}
} else {
if (!other.configWithServices_.isEmpty()) {
if (configWithServicesBuilder_.isEmpty()) {
configWithServicesBuilder_.dispose();
configWithServicesBuilder_ = null;
configWithServices_ = other.configWithServices_;
bitField0_ = (bitField0_ & ~0x00000040);
configWithServicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConfigWithServicesFieldBuilder() : null;
} else {
configWithServicesBuilder_.addAllMessages(other.configWithServices_);
}
}
}
if (usersBuilder_ == null) {
if (!other.users_.isEmpty()) {
if (users_.isEmpty()) {
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureUsersIsMutable();
users_.addAll(other.users_);
}
onChanged();
}
} else {
if (!other.users_.isEmpty()) {
if (usersBuilder_.isEmpty()) {
usersBuilder_.dispose();
usersBuilder_ = null;
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000080);
usersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUsersFieldBuilder() : null;
} else {
usersBuilder_.addAllMessages(other.users_);
}
}
}
if (userGroupsBuilder_ == null) {
if (!other.userGroups_.isEmpty()) {
if (userGroups_.isEmpty()) {
userGroups_ = other.userGroups_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureUserGroupsIsMutable();
userGroups_.addAll(other.userGroups_);
}
onChanged();
}
} else {
if (!other.userGroups_.isEmpty()) {
if (userGroupsBuilder_.isEmpty()) {
userGroupsBuilder_.dispose();
userGroupsBuilder_ = null;
userGroups_ = other.userGroups_;
bitField0_ = (bitField0_ & ~0x00000100);
userGroupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUserGroupsFieldBuilder() : null;
} else {
userGroupsBuilder_.addAllMessages(other.userGroups_);
}
}
}
if (authStrategiesBuilder_ == null) {
if (!other.authStrategies_.isEmpty()) {
if (authStrategies_.isEmpty()) {
authStrategies_ = other.authStrategies_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureAuthStrategiesIsMutable();
authStrategies_.addAll(other.authStrategies_);
}
onChanged();
}
} else {
if (!other.authStrategies_.isEmpty()) {
if (authStrategiesBuilder_.isEmpty()) {
authStrategiesBuilder_.dispose();
authStrategiesBuilder_ = null;
authStrategies_ = other.authStrategies_;
bitField0_ = (bitField0_ & ~0x00000200);
authStrategiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAuthStrategiesFieldBuilder() : null;
} else {
authStrategiesBuilder_.addAllMessages(other.authStrategies_);
}
}
}
if (clientsBuilder_ == null) {
if (!other.clients_.isEmpty()) {
if (clients_.isEmpty()) {
clients_ = other.clients_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureClientsIsMutable();
clients_.addAll(other.clients_);
}
onChanged();
}
} else {
if (!other.clients_.isEmpty()) {
if (clientsBuilder_.isEmpty()) {
clientsBuilder_.dispose();
clientsBuilder_ = null;
clients_ = other.clients_;
bitField0_ = (bitField0_ & ~0x00000400);
clientsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientsFieldBuilder() : null;
} else {
clientsBuilder_.addAllMessages(other.clients_);
}
}
}
if (dataBuilder_ == null) {
if (!other.data_.isEmpty()) {
if (data_.isEmpty()) {
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureDataIsMutable();
data_.addAll(other.data_);
}
onChanged();
}
} else {
if (!other.data_.isEmpty()) {
if (dataBuilder_.isEmpty()) {
dataBuilder_.dispose();
dataBuilder_ = null;
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000800);
dataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDataFieldBuilder() : null;
} else {
dataBuilder_.addAllMessages(other.data_);
}
}
}
if (other.hasSummary()) {
mergeSummary(other.getSummary());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCodeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getInfoFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getAmountFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
input.readMessage(
getSizeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace m =
input.readMessage(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.parser(),
extensionRegistry);
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.add(m);
} else {
namespacesBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.parser(),
extensionRegistry);
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(m);
} else {
servicesBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.parser(),
extensionRegistry);
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(m);
} else {
instancesBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing m =
input.readMessage(
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.parser(),
extensionRegistry);
if (routingsBuilder_ == null) {
ensureRoutingsIsMutable();
routings_.add(m);
} else {
routingsBuilder_.addMessage(m);
}
break;
} // case 66
case 74: {
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.parser(),
extensionRegistry);
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.add(m);
} else {
aliasesBuilder_.addMessage(m);
}
break;
} // case 74
case 82: {
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule m =
input.readMessage(
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.parser(),
extensionRegistry);
if (rateLimitsBuilder_ == null) {
ensureRateLimitsIsMutable();
rateLimits_.add(m);
} else {
rateLimitsBuilder_.addMessage(m);
}
break;
} // case 82
case 90: {
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.parser(),
extensionRegistry);
if (configWithServicesBuilder_ == null) {
ensureConfigWithServicesIsMutable();
configWithServices_.add(m);
} else {
configWithServicesBuilder_.addMessage(m);
}
break;
} // case 90
case 146: {
com.tencent.polaris.specification.api.v1.security.SecurityProto.User m =
input.readMessage(
com.tencent.polaris.specification.api.v1.security.SecurityProto.User.parser(),
extensionRegistry);
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(m);
} else {
usersBuilder_.addMessage(m);
}
break;
} // case 146
case 154: {
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup m =
input.readMessage(
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.parser(),
extensionRegistry);
if (userGroupsBuilder_ == null) {
ensureUserGroupsIsMutable();
userGroups_.add(m);
} else {
userGroupsBuilder_.addMessage(m);
}
break;
} // case 154
case 162: {
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy m =
input.readMessage(
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.parser(),
extensionRegistry);
if (authStrategiesBuilder_ == null) {
ensureAuthStrategiesIsMutable();
authStrategies_.add(m);
} else {
authStrategiesBuilder_.addMessage(m);
}
break;
} // case 162
case 170: {
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.parser(),
extensionRegistry);
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.add(m);
} else {
clientsBuilder_.addMessage(m);
}
break;
} // case 170
case 178: {
com.google.protobuf.Any m =
input.readMessage(
com.google.protobuf.Any.parser(),
extensionRegistry);
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(m);
} else {
dataBuilder_.addMessage(m);
}
break;
} // case 178
case 186: {
input.readMessage(
getSummaryFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 186
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.UInt32Value code_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> codeBuilder_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
public boolean hasCode() {
return codeBuilder_ != null || code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
public com.google.protobuf.UInt32Value getCode() {
if (codeBuilder_ == null) {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
} else {
return codeBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
} else {
codeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (codeBuilder_ == null) {
code_ = builderForValue.build();
onChanged();
} else {
codeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder mergeCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (code_ != null) {
code_ =
com.google.protobuf.UInt32Value.newBuilder(code_).mergeFrom(value).buildPartial();
} else {
code_ = value;
}
onChanged();
} else {
codeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder clearCode() {
if (codeBuilder_ == null) {
code_ = null;
onChanged();
} else {
code_ = null;
codeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32Value.Builder getCodeBuilder() {
onChanged();
return getCodeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
if (codeBuilder_ != null) {
return codeBuilder_.getMessageOrBuilder();
} else {
return code_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getCodeFieldBuilder() {
if (codeBuilder_ == null) {
codeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getCode(),
getParentForChildren(),
isClean());
code_ = null;
}
return codeBuilder_;
}
private com.google.protobuf.StringValue info_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> infoBuilder_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
public boolean hasInfo() {
return infoBuilder_ != null || info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
public com.google.protobuf.StringValue getInfo() {
if (infoBuilder_ == null) {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
} else {
return infoBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder mergeInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (info_ != null) {
info_ =
com.google.protobuf.StringValue.newBuilder(info_).mergeFrom(value).buildPartial();
} else {
info_ = value;
}
onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
info_ = null;
onChanged();
} else {
info_ = null;
infoBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValue.Builder getInfoBuilder() {
onChanged();
return getInfoFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
if (infoBuilder_ != null) {
return infoBuilder_.getMessageOrBuilder();
} else {
return info_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getInfo(),
getParentForChildren(),
isClean());
info_ = null;
}
return infoBuilder_;
}
private com.google.protobuf.UInt32Value amount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> amountBuilder_;
/**
* .google.protobuf.UInt32Value amount = 3;
* @return Whether the amount field is set.
*/
public boolean hasAmount() {
return amountBuilder_ != null || amount_ != null;
}
/**
* .google.protobuf.UInt32Value amount = 3;
* @return The amount.
*/
public com.google.protobuf.UInt32Value getAmount() {
if (amountBuilder_ == null) {
return amount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : amount_;
} else {
return amountBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
public Builder setAmount(com.google.protobuf.UInt32Value value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
amount_ = value;
onChanged();
} else {
amountBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
public Builder setAmount(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (amountBuilder_ == null) {
amount_ = builderForValue.build();
onChanged();
} else {
amountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
public Builder mergeAmount(com.google.protobuf.UInt32Value value) {
if (amountBuilder_ == null) {
if (amount_ != null) {
amount_ =
com.google.protobuf.UInt32Value.newBuilder(amount_).mergeFrom(value).buildPartial();
} else {
amount_ = value;
}
onChanged();
} else {
amountBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
public Builder clearAmount() {
if (amountBuilder_ == null) {
amount_ = null;
onChanged();
} else {
amount_ = null;
amountBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
public com.google.protobuf.UInt32Value.Builder getAmountBuilder() {
onChanged();
return getAmountFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
public com.google.protobuf.UInt32ValueOrBuilder getAmountOrBuilder() {
if (amountBuilder_ != null) {
return amountBuilder_.getMessageOrBuilder();
} else {
return amount_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : amount_;
}
}
/**
* .google.protobuf.UInt32Value amount = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getAmountFieldBuilder() {
if (amountBuilder_ == null) {
amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getAmount(),
getParentForChildren(),
isClean());
amount_ = null;
}
return amountBuilder_;
}
private com.google.protobuf.UInt32Value size_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> sizeBuilder_;
/**
* .google.protobuf.UInt32Value size = 4;
* @return Whether the size field is set.
*/
public boolean hasSize() {
return sizeBuilder_ != null || size_ != null;
}
/**
* .google.protobuf.UInt32Value size = 4;
* @return The size.
*/
public com.google.protobuf.UInt32Value getSize() {
if (sizeBuilder_ == null) {
return size_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : size_;
} else {
return sizeBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
public Builder setSize(com.google.protobuf.UInt32Value value) {
if (sizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
size_ = value;
onChanged();
} else {
sizeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
public Builder setSize(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (sizeBuilder_ == null) {
size_ = builderForValue.build();
onChanged();
} else {
sizeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
public Builder mergeSize(com.google.protobuf.UInt32Value value) {
if (sizeBuilder_ == null) {
if (size_ != null) {
size_ =
com.google.protobuf.UInt32Value.newBuilder(size_).mergeFrom(value).buildPartial();
} else {
size_ = value;
}
onChanged();
} else {
sizeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
public Builder clearSize() {
if (sizeBuilder_ == null) {
size_ = null;
onChanged();
} else {
size_ = null;
sizeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
public com.google.protobuf.UInt32Value.Builder getSizeBuilder() {
onChanged();
return getSizeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
public com.google.protobuf.UInt32ValueOrBuilder getSizeOrBuilder() {
if (sizeBuilder_ != null) {
return sizeBuilder_.getMessageOrBuilder();
} else {
return size_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : size_;
}
}
/**
* .google.protobuf.UInt32Value size = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getSizeFieldBuilder() {
if (sizeBuilder_ == null) {
sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getSize(),
getParentForChildren(),
isClean());
size_ = null;
}
return sizeBuilder_;
}
private java.util.List namespaces_ =
java.util.Collections.emptyList();
private void ensureNamespacesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
namespaces_ = new java.util.ArrayList(namespaces_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder> namespacesBuilder_;
/**
* repeated .v1.Namespace namespaces = 5;
*/
public java.util.List getNamespacesList() {
if (namespacesBuilder_ == null) {
return java.util.Collections.unmodifiableList(namespaces_);
} else {
return namespacesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public int getNamespacesCount() {
if (namespacesBuilder_ == null) {
return namespaces_.size();
} else {
return namespacesBuilder_.getCount();
}
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespaces(int index) {
if (namespacesBuilder_ == null) {
return namespaces_.get(index);
} else {
return namespacesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder setNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespacesIsMutable();
namespaces_.set(index, value);
onChanged();
} else {
namespacesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder setNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.set(index, builderForValue.build());
onChanged();
} else {
namespacesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder addNamespaces(com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespacesIsMutable();
namespaces_.add(value);
onChanged();
} else {
namespacesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder addNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespacesIsMutable();
namespaces_.add(index, value);
onChanged();
} else {
namespacesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder addNamespaces(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.add(builderForValue.build());
onChanged();
} else {
namespacesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder addNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.add(index, builderForValue.build());
onChanged();
} else {
namespacesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder addAllNamespaces(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace> values) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, namespaces_);
onChanged();
} else {
namespacesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder clearNamespaces() {
if (namespacesBuilder_ == null) {
namespaces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
namespacesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public Builder removeNamespaces(int index) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.remove(index);
onChanged();
} else {
namespacesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder getNamespacesBuilder(
int index) {
return getNamespacesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespacesOrBuilder(
int index) {
if (namespacesBuilder_ == null) {
return namespaces_.get(index); } else {
return namespacesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesOrBuilderList() {
if (namespacesBuilder_ != null) {
return namespacesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(namespaces_);
}
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder addNamespacesBuilder() {
return getNamespacesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance());
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder addNamespacesBuilder(
int index) {
return getNamespacesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance());
}
/**
* repeated .v1.Namespace namespaces = 5;
*/
public java.util.List
getNamespacesBuilderList() {
return getNamespacesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesFieldBuilder() {
if (namespacesBuilder_ == null) {
namespacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>(
namespaces_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
namespaces_ = null;
}
return namespacesBuilder_;
}
private java.util.List services_ =
java.util.Collections.emptyList();
private void ensureServicesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
services_ = new java.util.ArrayList(services_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> servicesBuilder_;
/**
* repeated .v1.Service services = 6;
*/
public java.util.List getServicesList() {
if (servicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(services_);
} else {
return servicesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Service services = 6;
*/
public int getServicesCount() {
if (servicesBuilder_ == null) {
return services_.size();
} else {
return servicesBuilder_.getCount();
}
}
/**
* repeated .v1.Service services = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getServices(int index) {
if (servicesBuilder_ == null) {
return services_.get(index);
} else {
return servicesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Service services = 6;
*/
public Builder setServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.set(index, value);
onChanged();
} else {
servicesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder setServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.set(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder addServices(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(value);
onChanged();
} else {
servicesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder addServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(index, value);
onChanged();
} else {
servicesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder addServices(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder addServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder addAllServices(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service> values) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, services_);
onChanged();
} else {
servicesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder clearServices() {
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
servicesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public Builder removeServices(int index) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.remove(index);
onChanged();
} else {
servicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Service services = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder getServicesBuilder(
int index) {
return getServicesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Service services = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServicesOrBuilder(
int index) {
if (servicesBuilder_ == null) {
return services_.get(index); } else {
return servicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Service services = 6;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesOrBuilderList() {
if (servicesBuilder_ != null) {
return servicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(services_);
}
}
/**
* repeated .v1.Service services = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder addServicesBuilder() {
return getServicesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance());
}
/**
* repeated .v1.Service services = 6;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder addServicesBuilder(
int index) {
return getServicesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance());
}
/**
* repeated .v1.Service services = 6;
*/
public java.util.List
getServicesBuilderList() {
return getServicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesFieldBuilder() {
if (servicesBuilder_ == null) {
servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>(
services_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
services_ = null;
}
return servicesBuilder_;
}
private java.util.List instances_ =
java.util.Collections.emptyList();
private void ensureInstancesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
instances_ = new java.util.ArrayList(instances_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder> instancesBuilder_;
/**
* repeated .v1.Instance instances = 7;
*/
public java.util.List getInstancesList() {
if (instancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(instances_);
} else {
return instancesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Instance instances = 7;
*/
public int getInstancesCount() {
if (instancesBuilder_ == null) {
return instances_.size();
} else {
return instancesBuilder_.getCount();
}
}
/**
* repeated .v1.Instance instances = 7;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstances(int index) {
if (instancesBuilder_ == null) {
return instances_.get(index);
} else {
return instancesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder setInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.set(index, value);
onChanged();
} else {
instancesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder setInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.set(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder addInstances(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(value);
onChanged();
} else {
instancesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder addInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(index, value);
onChanged();
} else {
instancesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder addInstances(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder addInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder addAllInstances(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance> values) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instances_);
onChanged();
} else {
instancesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder clearInstances() {
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
instancesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public Builder removeInstances(int index) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.remove(index);
onChanged();
} else {
instancesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Instance instances = 7;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder getInstancesBuilder(
int index) {
return getInstancesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Instance instances = 7;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstancesOrBuilder(
int index) {
if (instancesBuilder_ == null) {
return instances_.get(index); } else {
return instancesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Instance instances = 7;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesOrBuilderList() {
if (instancesBuilder_ != null) {
return instancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instances_);
}
}
/**
* repeated .v1.Instance instances = 7;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder addInstancesBuilder() {
return getInstancesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance());
}
/**
* repeated .v1.Instance instances = 7;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder addInstancesBuilder(
int index) {
return getInstancesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance());
}
/**
* repeated .v1.Instance instances = 7;
*/
public java.util.List
getInstancesBuilderList() {
return getInstancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesFieldBuilder() {
if (instancesBuilder_ == null) {
instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>(
instances_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
instances_ = null;
}
return instancesBuilder_;
}
private java.util.List routings_ =
java.util.Collections.emptyList();
private void ensureRoutingsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
routings_ = new java.util.ArrayList(routings_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder> routingsBuilder_;
/**
* repeated .v1.Routing routings = 8;
*/
public java.util.List getRoutingsList() {
if (routingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(routings_);
} else {
return routingsBuilder_.getMessageList();
}
}
/**
* repeated .v1.Routing routings = 8;
*/
public int getRoutingsCount() {
if (routingsBuilder_ == null) {
return routings_.size();
} else {
return routingsBuilder_.getCount();
}
}
/**
* repeated .v1.Routing routings = 8;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRoutings(int index) {
if (routingsBuilder_ == null) {
return routings_.get(index);
} else {
return routingsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder setRoutings(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutingsIsMutable();
routings_.set(index, value);
onChanged();
} else {
routingsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder setRoutings(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder builderForValue) {
if (routingsBuilder_ == null) {
ensureRoutingsIsMutable();
routings_.set(index, builderForValue.build());
onChanged();
} else {
routingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder addRoutings(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutingsIsMutable();
routings_.add(value);
onChanged();
} else {
routingsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder addRoutings(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutingsIsMutable();
routings_.add(index, value);
onChanged();
} else {
routingsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder addRoutings(
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder builderForValue) {
if (routingsBuilder_ == null) {
ensureRoutingsIsMutable();
routings_.add(builderForValue.build());
onChanged();
} else {
routingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder addRoutings(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder builderForValue) {
if (routingsBuilder_ == null) {
ensureRoutingsIsMutable();
routings_.add(index, builderForValue.build());
onChanged();
} else {
routingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder addAllRoutings(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing> values) {
if (routingsBuilder_ == null) {
ensureRoutingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, routings_);
onChanged();
} else {
routingsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder clearRoutings() {
if (routingsBuilder_ == null) {
routings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
routingsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public Builder removeRoutings(int index) {
if (routingsBuilder_ == null) {
ensureRoutingsIsMutable();
routings_.remove(index);
onChanged();
} else {
routingsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Routing routings = 8;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder getRoutingsBuilder(
int index) {
return getRoutingsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Routing routings = 8;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingsOrBuilder(
int index) {
if (routingsBuilder_ == null) {
return routings_.get(index); } else {
return routingsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Routing routings = 8;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>
getRoutingsOrBuilderList() {
if (routingsBuilder_ != null) {
return routingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(routings_);
}
}
/**
* repeated .v1.Routing routings = 8;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder addRoutingsBuilder() {
return getRoutingsFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance());
}
/**
* repeated .v1.Routing routings = 8;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder addRoutingsBuilder(
int index) {
return getRoutingsFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance());
}
/**
* repeated .v1.Routing routings = 8;
*/
public java.util.List
getRoutingsBuilderList() {
return getRoutingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>
getRoutingsFieldBuilder() {
if (routingsBuilder_ == null) {
routingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>(
routings_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
routings_ = null;
}
return routingsBuilder_;
}
private java.util.List aliases_ =
java.util.Collections.emptyList();
private void ensureAliasesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
aliases_ = new java.util.ArrayList(aliases_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder> aliasesBuilder_;
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public java.util.List getAliasesList() {
if (aliasesBuilder_ == null) {
return java.util.Collections.unmodifiableList(aliases_);
} else {
return aliasesBuilder_.getMessageList();
}
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public int getAliasesCount() {
if (aliasesBuilder_ == null) {
return aliases_.size();
} else {
return aliasesBuilder_.getCount();
}
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias getAliases(int index) {
if (aliasesBuilder_ == null) {
return aliases_.get(index);
} else {
return aliasesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder setAliases(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias value) {
if (aliasesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasesIsMutable();
aliases_.set(index, value);
onChanged();
} else {
aliasesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder setAliases(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder builderForValue) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.set(index, builderForValue.build());
onChanged();
} else {
aliasesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder addAliases(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias value) {
if (aliasesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasesIsMutable();
aliases_.add(value);
onChanged();
} else {
aliasesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder addAliases(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias value) {
if (aliasesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasesIsMutable();
aliases_.add(index, value);
onChanged();
} else {
aliasesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder addAliases(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder builderForValue) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.add(builderForValue.build());
onChanged();
} else {
aliasesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder addAliases(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder builderForValue) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.add(index, builderForValue.build());
onChanged();
} else {
aliasesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder addAllAliases(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias> values) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aliases_);
onChanged();
} else {
aliasesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder clearAliases() {
if (aliasesBuilder_ == null) {
aliases_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
aliasesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public Builder removeAliases(int index) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.remove(index);
onChanged();
} else {
aliasesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder getAliasesBuilder(
int index) {
return getAliasesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder getAliasesOrBuilder(
int index) {
if (aliasesBuilder_ == null) {
return aliases_.get(index); } else {
return aliasesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>
getAliasesOrBuilderList() {
if (aliasesBuilder_ != null) {
return aliasesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(aliases_);
}
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder addAliasesBuilder() {
return getAliasesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.getDefaultInstance());
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder addAliasesBuilder(
int index) {
return getAliasesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.getDefaultInstance());
}
/**
* repeated .v1.ServiceAlias aliases = 9;
*/
public java.util.List
getAliasesBuilderList() {
return getAliasesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>
getAliasesFieldBuilder() {
if (aliasesBuilder_ == null) {
aliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAlias.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceAliasOrBuilder>(
aliases_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
aliases_ = null;
}
return aliasesBuilder_;
}
private java.util.List rateLimits_ =
java.util.Collections.emptyList();
private void ensureRateLimitsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
rateLimits_ = new java.util.ArrayList(rateLimits_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder> rateLimitsBuilder_;
/**
* repeated .v1.Rule rateLimits = 10;
*/
public java.util.List getRateLimitsList() {
if (rateLimitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rateLimits_);
} else {
return rateLimitsBuilder_.getMessageList();
}
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public int getRateLimitsCount() {
if (rateLimitsBuilder_ == null) {
return rateLimits_.size();
} else {
return rateLimitsBuilder_.getCount();
}
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule getRateLimits(int index) {
if (rateLimitsBuilder_ == null) {
return rateLimits_.get(index);
} else {
return rateLimitsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder setRateLimits(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule value) {
if (rateLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRateLimitsIsMutable();
rateLimits_.set(index, value);
onChanged();
} else {
rateLimitsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder setRateLimits(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder builderForValue) {
if (rateLimitsBuilder_ == null) {
ensureRateLimitsIsMutable();
rateLimits_.set(index, builderForValue.build());
onChanged();
} else {
rateLimitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder addRateLimits(com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule value) {
if (rateLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRateLimitsIsMutable();
rateLimits_.add(value);
onChanged();
} else {
rateLimitsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder addRateLimits(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule value) {
if (rateLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRateLimitsIsMutable();
rateLimits_.add(index, value);
onChanged();
} else {
rateLimitsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder addRateLimits(
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder builderForValue) {
if (rateLimitsBuilder_ == null) {
ensureRateLimitsIsMutable();
rateLimits_.add(builderForValue.build());
onChanged();
} else {
rateLimitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder addRateLimits(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder builderForValue) {
if (rateLimitsBuilder_ == null) {
ensureRateLimitsIsMutable();
rateLimits_.add(index, builderForValue.build());
onChanged();
} else {
rateLimitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder addAllRateLimits(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule> values) {
if (rateLimitsBuilder_ == null) {
ensureRateLimitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rateLimits_);
onChanged();
} else {
rateLimitsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder clearRateLimits() {
if (rateLimitsBuilder_ == null) {
rateLimits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
rateLimitsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public Builder removeRateLimits(int index) {
if (rateLimitsBuilder_ == null) {
ensureRateLimitsIsMutable();
rateLimits_.remove(index);
onChanged();
} else {
rateLimitsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder getRateLimitsBuilder(
int index) {
return getRateLimitsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder getRateLimitsOrBuilder(
int index) {
if (rateLimitsBuilder_ == null) {
return rateLimits_.get(index); } else {
return rateLimitsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>
getRateLimitsOrBuilderList() {
if (rateLimitsBuilder_ != null) {
return rateLimitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rateLimits_);
}
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder addRateLimitsBuilder() {
return getRateLimitsFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.getDefaultInstance());
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder addRateLimitsBuilder(
int index) {
return getRateLimitsFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.getDefaultInstance());
}
/**
* repeated .v1.Rule rateLimits = 10;
*/
public java.util.List
getRateLimitsBuilderList() {
return getRateLimitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>
getRateLimitsFieldBuilder() {
if (rateLimitsBuilder_ == null) {
rateLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.Rule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RuleOrBuilder>(
rateLimits_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
rateLimits_ = null;
}
return rateLimitsBuilder_;
}
private java.util.List configWithServices_ =
java.util.Collections.emptyList();
private void ensureConfigWithServicesIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
configWithServices_ = new java.util.ArrayList(configWithServices_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder> configWithServicesBuilder_;
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public java.util.List getConfigWithServicesList() {
if (configWithServicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(configWithServices_);
} else {
return configWithServicesBuilder_.getMessageList();
}
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public int getConfigWithServicesCount() {
if (configWithServicesBuilder_ == null) {
return configWithServices_.size();
} else {
return configWithServicesBuilder_.getCount();
}
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService getConfigWithServices(int index) {
if (configWithServicesBuilder_ == null) {
return configWithServices_.get(index);
} else {
return configWithServicesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder setConfigWithServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService value) {
if (configWithServicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigWithServicesIsMutable();
configWithServices_.set(index, value);
onChanged();
} else {
configWithServicesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder setConfigWithServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder builderForValue) {
if (configWithServicesBuilder_ == null) {
ensureConfigWithServicesIsMutable();
configWithServices_.set(index, builderForValue.build());
onChanged();
} else {
configWithServicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder addConfigWithServices(com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService value) {
if (configWithServicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigWithServicesIsMutable();
configWithServices_.add(value);
onChanged();
} else {
configWithServicesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder addConfigWithServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService value) {
if (configWithServicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigWithServicesIsMutable();
configWithServices_.add(index, value);
onChanged();
} else {
configWithServicesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder addConfigWithServices(
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder builderForValue) {
if (configWithServicesBuilder_ == null) {
ensureConfigWithServicesIsMutable();
configWithServices_.add(builderForValue.build());
onChanged();
} else {
configWithServicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder addConfigWithServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder builderForValue) {
if (configWithServicesBuilder_ == null) {
ensureConfigWithServicesIsMutable();
configWithServices_.add(index, builderForValue.build());
onChanged();
} else {
configWithServicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder addAllConfigWithServices(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService> values) {
if (configWithServicesBuilder_ == null) {
ensureConfigWithServicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, configWithServices_);
onChanged();
} else {
configWithServicesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder clearConfigWithServices() {
if (configWithServicesBuilder_ == null) {
configWithServices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
configWithServicesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public Builder removeConfigWithServices(int index) {
if (configWithServicesBuilder_ == null) {
ensureConfigWithServicesIsMutable();
configWithServices_.remove(index);
onChanged();
} else {
configWithServicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder getConfigWithServicesBuilder(
int index) {
return getConfigWithServicesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder getConfigWithServicesOrBuilder(
int index) {
if (configWithServicesBuilder_ == null) {
return configWithServices_.get(index); } else {
return configWithServicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder>
getConfigWithServicesOrBuilderList() {
if (configWithServicesBuilder_ != null) {
return configWithServicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(configWithServices_);
}
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder addConfigWithServicesBuilder() {
return getConfigWithServicesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.getDefaultInstance());
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder addConfigWithServicesBuilder(
int index) {
return getConfigWithServicesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.getDefaultInstance());
}
/**
* repeated .v1.ConfigWithService configWithServices = 11;
*/
public java.util.List
getConfigWithServicesBuilderList() {
return getConfigWithServicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder>
getConfigWithServicesFieldBuilder() {
if (configWithServicesBuilder_ == null) {
configWithServicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithService.Builder, com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.ConfigWithServiceOrBuilder>(
configWithServices_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
configWithServices_ = null;
}
return configWithServicesBuilder_;
}
private java.util.List users_ =
java.util.Collections.emptyList();
private void ensureUsersIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
users_ = new java.util.ArrayList(users_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.User, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder> usersBuilder_;
/**
* repeated .v1.User users = 18;
*/
public java.util.List getUsersList() {
if (usersBuilder_ == null) {
return java.util.Collections.unmodifiableList(users_);
} else {
return usersBuilder_.getMessageList();
}
}
/**
* repeated .v1.User users = 18;
*/
public int getUsersCount() {
if (usersBuilder_ == null) {
return users_.size();
} else {
return usersBuilder_.getCount();
}
}
/**
* repeated .v1.User users = 18;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User getUsers(int index) {
if (usersBuilder_ == null) {
return users_.get(index);
} else {
return usersBuilder_.getMessage(index);
}
}
/**
* repeated .v1.User users = 18;
*/
public Builder setUsers(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.set(index, value);
onChanged();
} else {
usersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder setUsers(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.set(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder addUsers(com.tencent.polaris.specification.api.v1.security.SecurityProto.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(value);
onChanged();
} else {
usersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder addUsers(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(index, value);
onChanged();
} else {
usersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder addUsers(
com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder addUsers(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder addAllUsers(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.security.SecurityProto.User> values) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, users_);
onChanged();
} else {
usersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
usersBuilder_.clear();
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public Builder removeUsers(int index) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.remove(index);
onChanged();
} else {
usersBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.User users = 18;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder getUsersBuilder(
int index) {
return getUsersFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.User users = 18;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder getUsersOrBuilder(
int index) {
if (usersBuilder_ == null) {
return users_.get(index); } else {
return usersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.User users = 18;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>
getUsersOrBuilderList() {
if (usersBuilder_ != null) {
return usersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(users_);
}
}
/**
* repeated .v1.User users = 18;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder addUsersBuilder() {
return getUsersFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.security.SecurityProto.User.getDefaultInstance());
}
/**
* repeated .v1.User users = 18;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder addUsersBuilder(
int index) {
return getUsersFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.getDefaultInstance());
}
/**
* repeated .v1.User users = 18;
*/
public java.util.List
getUsersBuilderList() {
return getUsersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.User, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>
getUsersFieldBuilder() {
if (usersBuilder_ == null) {
usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.User, com.tencent.polaris.specification.api.v1.security.SecurityProto.User.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserOrBuilder>(
users_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
users_ = null;
}
return usersBuilder_;
}
private java.util.List userGroups_ =
java.util.Collections.emptyList();
private void ensureUserGroupsIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
userGroups_ = new java.util.ArrayList(userGroups_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder> userGroupsBuilder_;
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public java.util.List getUserGroupsList() {
if (userGroupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(userGroups_);
} else {
return userGroupsBuilder_.getMessageList();
}
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public int getUserGroupsCount() {
if (userGroupsBuilder_ == null) {
return userGroups_.size();
} else {
return userGroupsBuilder_.getCount();
}
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup getUserGroups(int index) {
if (userGroupsBuilder_ == null) {
return userGroups_.get(index);
} else {
return userGroupsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder setUserGroups(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup value) {
if (userGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserGroupsIsMutable();
userGroups_.set(index, value);
onChanged();
} else {
userGroupsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder setUserGroups(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder builderForValue) {
if (userGroupsBuilder_ == null) {
ensureUserGroupsIsMutable();
userGroups_.set(index, builderForValue.build());
onChanged();
} else {
userGroupsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder addUserGroups(com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup value) {
if (userGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserGroupsIsMutable();
userGroups_.add(value);
onChanged();
} else {
userGroupsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder addUserGroups(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup value) {
if (userGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserGroupsIsMutable();
userGroups_.add(index, value);
onChanged();
} else {
userGroupsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder addUserGroups(
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder builderForValue) {
if (userGroupsBuilder_ == null) {
ensureUserGroupsIsMutable();
userGroups_.add(builderForValue.build());
onChanged();
} else {
userGroupsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder addUserGroups(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder builderForValue) {
if (userGroupsBuilder_ == null) {
ensureUserGroupsIsMutable();
userGroups_.add(index, builderForValue.build());
onChanged();
} else {
userGroupsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder addAllUserGroups(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup> values) {
if (userGroupsBuilder_ == null) {
ensureUserGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userGroups_);
onChanged();
} else {
userGroupsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder clearUserGroups() {
if (userGroupsBuilder_ == null) {
userGroups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
userGroupsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public Builder removeUserGroups(int index) {
if (userGroupsBuilder_ == null) {
ensureUserGroupsIsMutable();
userGroups_.remove(index);
onChanged();
} else {
userGroupsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder getUserGroupsBuilder(
int index) {
return getUserGroupsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder getUserGroupsOrBuilder(
int index) {
if (userGroupsBuilder_ == null) {
return userGroups_.get(index); } else {
return userGroupsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>
getUserGroupsOrBuilderList() {
if (userGroupsBuilder_ != null) {
return userGroupsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(userGroups_);
}
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder addUserGroupsBuilder() {
return getUserGroupsFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.getDefaultInstance());
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder addUserGroupsBuilder(
int index) {
return getUserGroupsFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.getDefaultInstance());
}
/**
* repeated .v1.UserGroup userGroups = 19;
*/
public java.util.List
getUserGroupsBuilderList() {
return getUserGroupsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>
getUserGroupsFieldBuilder() {
if (userGroupsBuilder_ == null) {
userGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroup.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.UserGroupOrBuilder>(
userGroups_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
userGroups_ = null;
}
return userGroupsBuilder_;
}
private java.util.List authStrategies_ =
java.util.Collections.emptyList();
private void ensureAuthStrategiesIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
authStrategies_ = new java.util.ArrayList(authStrategies_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder> authStrategiesBuilder_;
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public java.util.List getAuthStrategiesList() {
if (authStrategiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(authStrategies_);
} else {
return authStrategiesBuilder_.getMessageList();
}
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public int getAuthStrategiesCount() {
if (authStrategiesBuilder_ == null) {
return authStrategies_.size();
} else {
return authStrategiesBuilder_.getCount();
}
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy getAuthStrategies(int index) {
if (authStrategiesBuilder_ == null) {
return authStrategies_.get(index);
} else {
return authStrategiesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder setAuthStrategies(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy value) {
if (authStrategiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthStrategiesIsMutable();
authStrategies_.set(index, value);
onChanged();
} else {
authStrategiesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder setAuthStrategies(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder builderForValue) {
if (authStrategiesBuilder_ == null) {
ensureAuthStrategiesIsMutable();
authStrategies_.set(index, builderForValue.build());
onChanged();
} else {
authStrategiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder addAuthStrategies(com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy value) {
if (authStrategiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthStrategiesIsMutable();
authStrategies_.add(value);
onChanged();
} else {
authStrategiesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder addAuthStrategies(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy value) {
if (authStrategiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthStrategiesIsMutable();
authStrategies_.add(index, value);
onChanged();
} else {
authStrategiesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder addAuthStrategies(
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder builderForValue) {
if (authStrategiesBuilder_ == null) {
ensureAuthStrategiesIsMutable();
authStrategies_.add(builderForValue.build());
onChanged();
} else {
authStrategiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder addAuthStrategies(
int index, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder builderForValue) {
if (authStrategiesBuilder_ == null) {
ensureAuthStrategiesIsMutable();
authStrategies_.add(index, builderForValue.build());
onChanged();
} else {
authStrategiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder addAllAuthStrategies(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy> values) {
if (authStrategiesBuilder_ == null) {
ensureAuthStrategiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, authStrategies_);
onChanged();
} else {
authStrategiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder clearAuthStrategies() {
if (authStrategiesBuilder_ == null) {
authStrategies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
authStrategiesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public Builder removeAuthStrategies(int index) {
if (authStrategiesBuilder_ == null) {
ensureAuthStrategiesIsMutable();
authStrategies_.remove(index);
onChanged();
} else {
authStrategiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder getAuthStrategiesBuilder(
int index) {
return getAuthStrategiesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder getAuthStrategiesOrBuilder(
int index) {
if (authStrategiesBuilder_ == null) {
return authStrategies_.get(index); } else {
return authStrategiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>
getAuthStrategiesOrBuilderList() {
if (authStrategiesBuilder_ != null) {
return authStrategiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(authStrategies_);
}
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder addAuthStrategiesBuilder() {
return getAuthStrategiesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.getDefaultInstance());
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder addAuthStrategiesBuilder(
int index) {
return getAuthStrategiesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.getDefaultInstance());
}
/**
* repeated .v1.AuthStrategy authStrategies = 20;
*/
public java.util.List
getAuthStrategiesBuilderList() {
return getAuthStrategiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>
getAuthStrategiesFieldBuilder() {
if (authStrategiesBuilder_ == null) {
authStrategiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategy.Builder, com.tencent.polaris.specification.api.v1.security.SecurityProto.AuthStrategyOrBuilder>(
authStrategies_,
((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
authStrategies_ = null;
}
return authStrategiesBuilder_;
}
private java.util.List clients_ =
java.util.Collections.emptyList();
private void ensureClientsIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
clients_ = new java.util.ArrayList(clients_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder> clientsBuilder_;
/**
* repeated .v1.Client clients = 21;
*/
public java.util.List getClientsList() {
if (clientsBuilder_ == null) {
return java.util.Collections.unmodifiableList(clients_);
} else {
return clientsBuilder_.getMessageList();
}
}
/**
* repeated .v1.Client clients = 21;
*/
public int getClientsCount() {
if (clientsBuilder_ == null) {
return clients_.size();
} else {
return clientsBuilder_.getCount();
}
}
/**
* repeated .v1.Client clients = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client getClients(int index) {
if (clientsBuilder_ == null) {
return clients_.get(index);
} else {
return clientsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder setClients(
int index, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client value) {
if (clientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsIsMutable();
clients_.set(index, value);
onChanged();
} else {
clientsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder setClients(
int index, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder builderForValue) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.set(index, builderForValue.build());
onChanged();
} else {
clientsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder addClients(com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client value) {
if (clientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsIsMutable();
clients_.add(value);
onChanged();
} else {
clientsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder addClients(
int index, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client value) {
if (clientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsIsMutable();
clients_.add(index, value);
onChanged();
} else {
clientsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder addClients(
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder builderForValue) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.add(builderForValue.build());
onChanged();
} else {
clientsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder addClients(
int index, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder builderForValue) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.add(index, builderForValue.build());
onChanged();
} else {
clientsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder addAllClients(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client> values) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clients_);
onChanged();
} else {
clientsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder clearClients() {
if (clientsBuilder_ == null) {
clients_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
clientsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public Builder removeClients(int index) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.remove(index);
onChanged();
} else {
clientsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Client clients = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder getClientsBuilder(
int index) {
return getClientsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Client clients = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder getClientsOrBuilder(
int index) {
if (clientsBuilder_ == null) {
return clients_.get(index); } else {
return clientsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Client clients = 21;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>
getClientsOrBuilderList() {
if (clientsBuilder_ != null) {
return clientsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clients_);
}
}
/**
* repeated .v1.Client clients = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder addClientsBuilder() {
return getClientsFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.getDefaultInstance());
}
/**
* repeated .v1.Client clients = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder addClientsBuilder(
int index) {
return getClientsFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.getDefaultInstance());
}
/**
* repeated .v1.Client clients = 21;
*/
public java.util.List
getClientsBuilderList() {
return getClientsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>
getClientsFieldBuilder() {
if (clientsBuilder_ == null) {
clientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.Builder, com.tencent.polaris.specification.api.v1.service.manage.ClientProto.ClientOrBuilder>(
clients_,
((bitField0_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
clients_ = null;
}
return clientsBuilder_;
}
private java.util.List data_ =
java.util.Collections.emptyList();
private void ensureDataIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
data_ = new java.util.ArrayList(data_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_;
/**
* repeated .google.protobuf.Any data = 22;
*/
public java.util.List getDataList() {
if (dataBuilder_ == null) {
return java.util.Collections.unmodifiableList(data_);
} else {
return dataBuilder_.getMessageList();
}
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public int getDataCount() {
if (dataBuilder_ == null) {
return data_.size();
} else {
return dataBuilder_.getCount();
}
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public com.google.protobuf.Any getData(int index) {
if (dataBuilder_ == null) {
return data_.get(index);
} else {
return dataBuilder_.getMessage(index);
}
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder setData(
int index, com.google.protobuf.Any value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.set(index, value);
onChanged();
} else {
dataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder setData(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.set(index, builderForValue.build());
onChanged();
} else {
dataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder addData(com.google.protobuf.Any value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.add(value);
onChanged();
} else {
dataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder addData(
int index, com.google.protobuf.Any value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.add(index, value);
onChanged();
} else {
dataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder addData(
com.google.protobuf.Any.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(builderForValue.build());
onChanged();
} else {
dataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder addData(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(index, builderForValue.build());
onChanged();
} else {
dataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder addAllData(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, data_);
onChanged();
} else {
dataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
dataBuilder_.clear();
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public Builder removeData(int index) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.remove(index);
onChanged();
} else {
dataBuilder_.remove(index);
}
return this;
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public com.google.protobuf.Any.Builder getDataBuilder(
int index) {
return getDataFieldBuilder().getBuilder(index);
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public com.google.protobuf.AnyOrBuilder getDataOrBuilder(
int index) {
if (dataBuilder_ == null) {
return data_.get(index); } else {
return dataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getDataOrBuilderList() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(data_);
}
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public com.google.protobuf.Any.Builder addDataBuilder() {
return getDataFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public com.google.protobuf.Any.Builder addDataBuilder(
int index) {
return getDataFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
* repeated .google.protobuf.Any data = 22;
*/
public java.util.List
getDataBuilderList() {
return getDataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
data_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.tencent.polaris.specification.api.v1.model.ModelProto.Summary summary_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary, com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder> summaryBuilder_;
/**
* .v1.Summary summary = 23;
* @return Whether the summary field is set.
*/
public boolean hasSummary() {
return summaryBuilder_ != null || summary_ != null;
}
/**
* .v1.Summary summary = 23;
* @return The summary.
*/
public com.tencent.polaris.specification.api.v1.model.ModelProto.Summary getSummary() {
if (summaryBuilder_ == null) {
return summary_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.getDefaultInstance() : summary_;
} else {
return summaryBuilder_.getMessage();
}
}
/**
* .v1.Summary summary = 23;
*/
public Builder setSummary(com.tencent.polaris.specification.api.v1.model.ModelProto.Summary value) {
if (summaryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
summary_ = value;
onChanged();
} else {
summaryBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Summary summary = 23;
*/
public Builder setSummary(
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder builderForValue) {
if (summaryBuilder_ == null) {
summary_ = builderForValue.build();
onChanged();
} else {
summaryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Summary summary = 23;
*/
public Builder mergeSummary(com.tencent.polaris.specification.api.v1.model.ModelProto.Summary value) {
if (summaryBuilder_ == null) {
if (summary_ != null) {
summary_ =
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.newBuilder(summary_).mergeFrom(value).buildPartial();
} else {
summary_ = value;
}
onChanged();
} else {
summaryBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Summary summary = 23;
*/
public Builder clearSummary() {
if (summaryBuilder_ == null) {
summary_ = null;
onChanged();
} else {
summary_ = null;
summaryBuilder_ = null;
}
return this;
}
/**
* .v1.Summary summary = 23;
*/
public com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder getSummaryBuilder() {
onChanged();
return getSummaryFieldBuilder().getBuilder();
}
/**
* .v1.Summary summary = 23;
*/
public com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder getSummaryOrBuilder() {
if (summaryBuilder_ != null) {
return summaryBuilder_.getMessageOrBuilder();
} else {
return summary_ == null ?
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.getDefaultInstance() : summary_;
}
}
/**
* .v1.Summary summary = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary, com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder>
getSummaryFieldBuilder() {
if (summaryBuilder_ == null) {
summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary, com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder>(
getSummary(),
getParentForChildren(),
isClean());
summary_ = null;
}
return summaryBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.BatchQueryResponse)
}
// @@protoc_insertion_point(class_scope:v1.BatchQueryResponse)
private static final com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse();
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchQueryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.BatchQueryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DiscoverResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.DiscoverResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
com.google.protobuf.UInt32Value getCode();
/**
* .google.protobuf.UInt32Value code = 1;
*/
com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder();
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
com.google.protobuf.StringValue getInfo();
/**
* .google.protobuf.StringValue info = 2;
*/
com.google.protobuf.StringValueOrBuilder getInfoOrBuilder();
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return The type.
*/
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType getType();
/**
* .v1.Service service = 4;
* @return Whether the service field is set.
*/
boolean hasService();
/**
* .v1.Service service = 4;
* @return The service.
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService();
/**
* .v1.Service service = 4;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder();
/**
* repeated .v1.Instance instances = 5;
*/
java.util.List
getInstancesList();
/**
* repeated .v1.Instance instances = 5;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstances(int index);
/**
* repeated .v1.Instance instances = 5;
*/
int getInstancesCount();
/**
* repeated .v1.Instance instances = 5;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesOrBuilderList();
/**
* repeated .v1.Instance instances = 5;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstancesOrBuilder(
int index);
/**
* .v1.Routing routing = 6;
* @return Whether the routing field is set.
*/
boolean hasRouting();
/**
* .v1.Routing routing = 6;
* @return The routing.
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRouting();
/**
* .v1.Routing routing = 6;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingOrBuilder();
/**
* .v1.RateLimit rateLimit = 7;
* @return Whether the rateLimit field is set.
*/
boolean hasRateLimit();
/**
* .v1.RateLimit rateLimit = 7;
* @return The rateLimit.
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit getRateLimit();
/**
* .v1.RateLimit rateLimit = 7;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimitOrBuilder getRateLimitOrBuilder();
/**
* .v1.CircuitBreaker circuitBreaker = 8;
* @return Whether the circuitBreaker field is set.
*/
boolean hasCircuitBreaker();
/**
* .v1.CircuitBreaker circuitBreaker = 8;
* @return The circuitBreaker.
*/
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker getCircuitBreaker();
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder getCircuitBreakerOrBuilder();
/**
* repeated .v1.Service services = 9;
*/
java.util.List
getServicesList();
/**
* repeated .v1.Service services = 9;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getServices(int index);
/**
* repeated .v1.Service services = 9;
*/
int getServicesCount();
/**
* repeated .v1.Service services = 9;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesOrBuilderList();
/**
* repeated .v1.Service services = 9;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServicesOrBuilder(
int index);
/**
* repeated .v1.Namespace namespaces = 10;
*/
java.util.List
getNamespacesList();
/**
* repeated .v1.Namespace namespaces = 10;
*/
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespaces(int index);
/**
* repeated .v1.Namespace namespaces = 10;
*/
int getNamespacesCount();
/**
* repeated .v1.Namespace namespaces = 10;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesOrBuilderList();
/**
* repeated .v1.Namespace namespaces = 10;
*/
com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespacesOrBuilder(
int index);
/**
* .v1.FaultDetector faultDetector = 11;
* @return Whether the faultDetector field is set.
*/
boolean hasFaultDetector();
/**
* .v1.FaultDetector faultDetector = 11;
* @return The faultDetector.
*/
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector getFaultDetector();
/**
* .v1.FaultDetector faultDetector = 11;
*/
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetectorOrBuilder getFaultDetectorOrBuilder();
/**
* .v1.Service aliasFor = 21;
* @return Whether the aliasFor field is set.
*/
boolean hasAliasFor();
/**
* .v1.Service aliasFor = 21;
* @return The aliasFor.
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getAliasFor();
/**
* .v1.Service aliasFor = 21;
*/
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getAliasForOrBuilder();
/**
* repeated .v1.LaneGroup lanes = 22;
*/
java.util.List
getLanesList();
/**
* repeated .v1.LaneGroup lanes = 22;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup getLanes(int index);
/**
* repeated .v1.LaneGroup lanes = 22;
*/
int getLanesCount();
/**
* repeated .v1.LaneGroup lanes = 22;
*/
java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder>
getLanesOrBuilderList();
/**
* repeated .v1.LaneGroup lanes = 22;
*/
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder getLanesOrBuilder(
int index);
}
/**
* Protobuf type {@code v1.DiscoverResponse}
*/
public static final class DiscoverResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.DiscoverResponse)
DiscoverResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiscoverResponse.newBuilder() to construct.
private DiscoverResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiscoverResponse() {
type_ = 0;
instances_ = java.util.Collections.emptyList();
services_ = java.util.Collections.emptyList();
namespaces_ = java.util.Collections.emptyList();
lanes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiscoverResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_DiscoverResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_DiscoverResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.Builder.class);
}
/**
* Protobuf enum {@code v1.DiscoverResponse.DiscoverResponseType}
*/
public enum DiscoverResponseType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* INSTANCE = 1;
*/
INSTANCE(1),
/**
* CLUSTER = 2;
*/
CLUSTER(2),
/**
* ROUTING = 3;
*/
ROUTING(3),
/**
* RATE_LIMIT = 4;
*/
RATE_LIMIT(4),
/**
* CIRCUIT_BREAKER = 5;
*/
CIRCUIT_BREAKER(5),
/**
* SERVICES = 6;
*/
SERVICES(6),
/**
* NAMESPACES = 12;
*/
NAMESPACES(12),
/**
* FAULT_DETECTOR = 13;
*/
FAULT_DETECTOR(13),
/**
* LANE = 100;
*/
LANE(100),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* INSTANCE = 1;
*/
public static final int INSTANCE_VALUE = 1;
/**
* CLUSTER = 2;
*/
public static final int CLUSTER_VALUE = 2;
/**
* ROUTING = 3;
*/
public static final int ROUTING_VALUE = 3;
/**
* RATE_LIMIT = 4;
*/
public static final int RATE_LIMIT_VALUE = 4;
/**
* CIRCUIT_BREAKER = 5;
*/
public static final int CIRCUIT_BREAKER_VALUE = 5;
/**
* SERVICES = 6;
*/
public static final int SERVICES_VALUE = 6;
/**
* NAMESPACES = 12;
*/
public static final int NAMESPACES_VALUE = 12;
/**
* FAULT_DETECTOR = 13;
*/
public static final int FAULT_DETECTOR_VALUE = 13;
/**
* LANE = 100;
*/
public static final int LANE_VALUE = 100;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DiscoverResponseType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DiscoverResponseType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return INSTANCE;
case 2: return CLUSTER;
case 3: return ROUTING;
case 4: return RATE_LIMIT;
case 5: return CIRCUIT_BREAKER;
case 6: return SERVICES;
case 12: return NAMESPACES;
case 13: return FAULT_DETECTOR;
case 100: return LANE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DiscoverResponseType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DiscoverResponseType findValueByNumber(int number) {
return DiscoverResponseType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.getDescriptor().getEnumTypes().get(0);
}
private static final DiscoverResponseType[] VALUES = values();
public static DiscoverResponseType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DiscoverResponseType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:v1.DiscoverResponse.DiscoverResponseType)
}
public static final int CODE_FIELD_NUMBER = 1;
private com.google.protobuf.UInt32Value code_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getCode() {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
return getCode();
}
public static final int INFO_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue info_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
@java.lang.Override
public com.google.protobuf.StringValue getInfo() {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
/**
* .google.protobuf.StringValue info = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
return getInfo();
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return The type.
*/
@java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType getType() {
@SuppressWarnings("deprecation")
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType result = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType.valueOf(type_);
return result == null ? com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType.UNRECOGNIZED : result;
}
public static final int SERVICE_FIELD_NUMBER = 4;
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service service_;
/**
* .v1.Service service = 4;
* @return Whether the service field is set.
*/
@java.lang.Override
public boolean hasService() {
return service_ != null;
}
/**
* .v1.Service service = 4;
* @return The service.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService() {
return service_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
}
/**
* .v1.Service service = 4;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder() {
return getService();
}
public static final int INSTANCES_FIELD_NUMBER = 5;
private java.util.List instances_;
/**
* repeated .v1.Instance instances = 5;
*/
@java.lang.Override
public java.util.List getInstancesList() {
return instances_;
}
/**
* repeated .v1.Instance instances = 5;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesOrBuilderList() {
return instances_;
}
/**
* repeated .v1.Instance instances = 5;
*/
@java.lang.Override
public int getInstancesCount() {
return instances_.size();
}
/**
* repeated .v1.Instance instances = 5;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstances(int index) {
return instances_.get(index);
}
/**
* repeated .v1.Instance instances = 5;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstancesOrBuilder(
int index) {
return instances_.get(index);
}
public static final int ROUTING_FIELD_NUMBER = 6;
private com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing routing_;
/**
* .v1.Routing routing = 6;
* @return Whether the routing field is set.
*/
@java.lang.Override
public boolean hasRouting() {
return routing_ != null;
}
/**
* .v1.Routing routing = 6;
* @return The routing.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRouting() {
return routing_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance() : routing_;
}
/**
* .v1.Routing routing = 6;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingOrBuilder() {
return getRouting();
}
public static final int RATELIMIT_FIELD_NUMBER = 7;
private com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit rateLimit_;
/**
* .v1.RateLimit rateLimit = 7;
* @return Whether the rateLimit field is set.
*/
@java.lang.Override
public boolean hasRateLimit() {
return rateLimit_ != null;
}
/**
* .v1.RateLimit rateLimit = 7;
* @return The rateLimit.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit getRateLimit() {
return rateLimit_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.getDefaultInstance() : rateLimit_;
}
/**
* .v1.RateLimit rateLimit = 7;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimitOrBuilder getRateLimitOrBuilder() {
return getRateLimit();
}
public static final int CIRCUITBREAKER_FIELD_NUMBER = 8;
private com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker circuitBreaker_;
/**
* .v1.CircuitBreaker circuitBreaker = 8;
* @return Whether the circuitBreaker field is set.
*/
@java.lang.Override
public boolean hasCircuitBreaker() {
return circuitBreaker_ != null;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
* @return The circuitBreaker.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker getCircuitBreaker() {
return circuitBreaker_ == null ? com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.getDefaultInstance() : circuitBreaker_;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder getCircuitBreakerOrBuilder() {
return getCircuitBreaker();
}
public static final int SERVICES_FIELD_NUMBER = 9;
private java.util.List services_;
/**
* repeated .v1.Service services = 9;
*/
@java.lang.Override
public java.util.List getServicesList() {
return services_;
}
/**
* repeated .v1.Service services = 9;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesOrBuilderList() {
return services_;
}
/**
* repeated .v1.Service services = 9;
*/
@java.lang.Override
public int getServicesCount() {
return services_.size();
}
/**
* repeated .v1.Service services = 9;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getServices(int index) {
return services_.get(index);
}
/**
* repeated .v1.Service services = 9;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServicesOrBuilder(
int index) {
return services_.get(index);
}
public static final int NAMESPACES_FIELD_NUMBER = 10;
private java.util.List namespaces_;
/**
* repeated .v1.Namespace namespaces = 10;
*/
@java.lang.Override
public java.util.List getNamespacesList() {
return namespaces_;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesOrBuilderList() {
return namespaces_;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
@java.lang.Override
public int getNamespacesCount() {
return namespaces_.size();
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespaces(int index) {
return namespaces_.get(index);
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespacesOrBuilder(
int index) {
return namespaces_.get(index);
}
public static final int FAULTDETECTOR_FIELD_NUMBER = 11;
private com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector faultDetector_;
/**
* .v1.FaultDetector faultDetector = 11;
* @return Whether the faultDetector field is set.
*/
@java.lang.Override
public boolean hasFaultDetector() {
return faultDetector_ != null;
}
/**
* .v1.FaultDetector faultDetector = 11;
* @return The faultDetector.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector getFaultDetector() {
return faultDetector_ == null ? com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.getDefaultInstance() : faultDetector_;
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetectorOrBuilder getFaultDetectorOrBuilder() {
return getFaultDetector();
}
public static final int ALIASFOR_FIELD_NUMBER = 21;
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service aliasFor_;
/**
* .v1.Service aliasFor = 21;
* @return Whether the aliasFor field is set.
*/
@java.lang.Override
public boolean hasAliasFor() {
return aliasFor_ != null;
}
/**
* .v1.Service aliasFor = 21;
* @return The aliasFor.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getAliasFor() {
return aliasFor_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : aliasFor_;
}
/**
* .v1.Service aliasFor = 21;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getAliasForOrBuilder() {
return getAliasFor();
}
public static final int LANES_FIELD_NUMBER = 22;
private java.util.List lanes_;
/**
* repeated .v1.LaneGroup lanes = 22;
*/
@java.lang.Override
public java.util.List getLanesList() {
return lanes_;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder>
getLanesOrBuilderList() {
return lanes_;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
@java.lang.Override
public int getLanesCount() {
return lanes_.size();
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup getLanes(int index) {
return lanes_.get(index);
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder getLanesOrBuilder(
int index) {
return lanes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != null) {
output.writeMessage(1, getCode());
}
if (info_ != null) {
output.writeMessage(2, getInfo());
}
if (type_ != com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType.UNKNOWN.getNumber()) {
output.writeEnum(3, type_);
}
if (service_ != null) {
output.writeMessage(4, getService());
}
for (int i = 0; i < instances_.size(); i++) {
output.writeMessage(5, instances_.get(i));
}
if (routing_ != null) {
output.writeMessage(6, getRouting());
}
if (rateLimit_ != null) {
output.writeMessage(7, getRateLimit());
}
if (circuitBreaker_ != null) {
output.writeMessage(8, getCircuitBreaker());
}
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(9, services_.get(i));
}
for (int i = 0; i < namespaces_.size(); i++) {
output.writeMessage(10, namespaces_.get(i));
}
if (faultDetector_ != null) {
output.writeMessage(11, getFaultDetector());
}
if (aliasFor_ != null) {
output.writeMessage(21, getAliasFor());
}
for (int i = 0; i < lanes_.size(); i++) {
output.writeMessage(22, lanes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCode());
}
if (info_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getInfo());
}
if (type_ != com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
if (service_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getService());
}
for (int i = 0; i < instances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, instances_.get(i));
}
if (routing_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getRouting());
}
if (rateLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getRateLimit());
}
if (circuitBreaker_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCircuitBreaker());
}
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, services_.get(i));
}
for (int i = 0; i < namespaces_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, namespaces_.get(i));
}
if (faultDetector_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getFaultDetector());
}
if (aliasFor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getAliasFor());
}
for (int i = 0; i < lanes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, lanes_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse other = (com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (!getCode()
.equals(other.getCode())) return false;
}
if (hasInfo() != other.hasInfo()) return false;
if (hasInfo()) {
if (!getInfo()
.equals(other.getInfo())) return false;
}
if (type_ != other.type_) return false;
if (hasService() != other.hasService()) return false;
if (hasService()) {
if (!getService()
.equals(other.getService())) return false;
}
if (!getInstancesList()
.equals(other.getInstancesList())) return false;
if (hasRouting() != other.hasRouting()) return false;
if (hasRouting()) {
if (!getRouting()
.equals(other.getRouting())) return false;
}
if (hasRateLimit() != other.hasRateLimit()) return false;
if (hasRateLimit()) {
if (!getRateLimit()
.equals(other.getRateLimit())) return false;
}
if (hasCircuitBreaker() != other.hasCircuitBreaker()) return false;
if (hasCircuitBreaker()) {
if (!getCircuitBreaker()
.equals(other.getCircuitBreaker())) return false;
}
if (!getServicesList()
.equals(other.getServicesList())) return false;
if (!getNamespacesList()
.equals(other.getNamespacesList())) return false;
if (hasFaultDetector() != other.hasFaultDetector()) return false;
if (hasFaultDetector()) {
if (!getFaultDetector()
.equals(other.getFaultDetector())) return false;
}
if (hasAliasFor() != other.hasAliasFor()) return false;
if (hasAliasFor()) {
if (!getAliasFor()
.equals(other.getAliasFor())) return false;
}
if (!getLanesList()
.equals(other.getLanesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
}
if (hasInfo()) {
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasService()) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
}
if (getInstancesCount() > 0) {
hash = (37 * hash) + INSTANCES_FIELD_NUMBER;
hash = (53 * hash) + getInstancesList().hashCode();
}
if (hasRouting()) {
hash = (37 * hash) + ROUTING_FIELD_NUMBER;
hash = (53 * hash) + getRouting().hashCode();
}
if (hasRateLimit()) {
hash = (37 * hash) + RATELIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRateLimit().hashCode();
}
if (hasCircuitBreaker()) {
hash = (37 * hash) + CIRCUITBREAKER_FIELD_NUMBER;
hash = (53 * hash) + getCircuitBreaker().hashCode();
}
if (getServicesCount() > 0) {
hash = (37 * hash) + SERVICES_FIELD_NUMBER;
hash = (53 * hash) + getServicesList().hashCode();
}
if (getNamespacesCount() > 0) {
hash = (37 * hash) + NAMESPACES_FIELD_NUMBER;
hash = (53 * hash) + getNamespacesList().hashCode();
}
if (hasFaultDetector()) {
hash = (37 * hash) + FAULTDETECTOR_FIELD_NUMBER;
hash = (53 * hash) + getFaultDetector().hashCode();
}
if (hasAliasFor()) {
hash = (37 * hash) + ALIASFOR_FIELD_NUMBER;
hash = (53 * hash) + getAliasFor().hashCode();
}
if (getLanesCount() > 0) {
hash = (37 * hash) + LANES_FIELD_NUMBER;
hash = (53 * hash) + getLanesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code v1.DiscoverResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.DiscoverResponse)
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_DiscoverResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_DiscoverResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (codeBuilder_ == null) {
code_ = null;
} else {
code_ = null;
codeBuilder_ = null;
}
if (infoBuilder_ == null) {
info_ = null;
} else {
info_ = null;
infoBuilder_ = null;
}
type_ = 0;
if (serviceBuilder_ == null) {
service_ = null;
} else {
service_ = null;
serviceBuilder_ = null;
}
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
} else {
instances_ = null;
instancesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (routingBuilder_ == null) {
routing_ = null;
} else {
routing_ = null;
routingBuilder_ = null;
}
if (rateLimitBuilder_ == null) {
rateLimit_ = null;
} else {
rateLimit_ = null;
rateLimitBuilder_ = null;
}
if (circuitBreakerBuilder_ == null) {
circuitBreaker_ = null;
} else {
circuitBreaker_ = null;
circuitBreakerBuilder_ = null;
}
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
} else {
services_ = null;
servicesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (namespacesBuilder_ == null) {
namespaces_ = java.util.Collections.emptyList();
} else {
namespaces_ = null;
namespacesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (faultDetectorBuilder_ == null) {
faultDetector_ = null;
} else {
faultDetector_ = null;
faultDetectorBuilder_ = null;
}
if (aliasForBuilder_ == null) {
aliasFor_ = null;
} else {
aliasFor_ = null;
aliasForBuilder_ = null;
}
if (lanesBuilder_ == null) {
lanes_ = java.util.Collections.emptyList();
} else {
lanes_ = null;
lanesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_DiscoverResponse_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse build() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse result = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse(this);
int from_bitField0_ = bitField0_;
if (codeBuilder_ == null) {
result.code_ = code_;
} else {
result.code_ = codeBuilder_.build();
}
if (infoBuilder_ == null) {
result.info_ = info_;
} else {
result.info_ = infoBuilder_.build();
}
result.type_ = type_;
if (serviceBuilder_ == null) {
result.service_ = service_;
} else {
result.service_ = serviceBuilder_.build();
}
if (instancesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
instances_ = java.util.Collections.unmodifiableList(instances_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instances_ = instances_;
} else {
result.instances_ = instancesBuilder_.build();
}
if (routingBuilder_ == null) {
result.routing_ = routing_;
} else {
result.routing_ = routingBuilder_.build();
}
if (rateLimitBuilder_ == null) {
result.rateLimit_ = rateLimit_;
} else {
result.rateLimit_ = rateLimitBuilder_.build();
}
if (circuitBreakerBuilder_ == null) {
result.circuitBreaker_ = circuitBreaker_;
} else {
result.circuitBreaker_ = circuitBreakerBuilder_.build();
}
if (servicesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.services_ = services_;
} else {
result.services_ = servicesBuilder_.build();
}
if (namespacesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
namespaces_ = java.util.Collections.unmodifiableList(namespaces_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.namespaces_ = namespaces_;
} else {
result.namespaces_ = namespacesBuilder_.build();
}
if (faultDetectorBuilder_ == null) {
result.faultDetector_ = faultDetector_;
} else {
result.faultDetector_ = faultDetectorBuilder_.build();
}
if (aliasForBuilder_ == null) {
result.aliasFor_ = aliasFor_;
} else {
result.aliasFor_ = aliasForBuilder_.build();
}
if (lanesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
lanes_ = java.util.Collections.unmodifiableList(lanes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.lanes_ = lanes_;
} else {
result.lanes_ = lanesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.getDefaultInstance()) return this;
if (other.hasCode()) {
mergeCode(other.getCode());
}
if (other.hasInfo()) {
mergeInfo(other.getInfo());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasService()) {
mergeService(other.getService());
}
if (instancesBuilder_ == null) {
if (!other.instances_.isEmpty()) {
if (instances_.isEmpty()) {
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstancesIsMutable();
instances_.addAll(other.instances_);
}
onChanged();
}
} else {
if (!other.instances_.isEmpty()) {
if (instancesBuilder_.isEmpty()) {
instancesBuilder_.dispose();
instancesBuilder_ = null;
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000001);
instancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstancesFieldBuilder() : null;
} else {
instancesBuilder_.addAllMessages(other.instances_);
}
}
}
if (other.hasRouting()) {
mergeRouting(other.getRouting());
}
if (other.hasRateLimit()) {
mergeRateLimit(other.getRateLimit());
}
if (other.hasCircuitBreaker()) {
mergeCircuitBreaker(other.getCircuitBreaker());
}
if (servicesBuilder_ == null) {
if (!other.services_.isEmpty()) {
if (services_.isEmpty()) {
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureServicesIsMutable();
services_.addAll(other.services_);
}
onChanged();
}
} else {
if (!other.services_.isEmpty()) {
if (servicesBuilder_.isEmpty()) {
servicesBuilder_.dispose();
servicesBuilder_ = null;
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000002);
servicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServicesFieldBuilder() : null;
} else {
servicesBuilder_.addAllMessages(other.services_);
}
}
}
if (namespacesBuilder_ == null) {
if (!other.namespaces_.isEmpty()) {
if (namespaces_.isEmpty()) {
namespaces_ = other.namespaces_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureNamespacesIsMutable();
namespaces_.addAll(other.namespaces_);
}
onChanged();
}
} else {
if (!other.namespaces_.isEmpty()) {
if (namespacesBuilder_.isEmpty()) {
namespacesBuilder_.dispose();
namespacesBuilder_ = null;
namespaces_ = other.namespaces_;
bitField0_ = (bitField0_ & ~0x00000004);
namespacesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNamespacesFieldBuilder() : null;
} else {
namespacesBuilder_.addAllMessages(other.namespaces_);
}
}
}
if (other.hasFaultDetector()) {
mergeFaultDetector(other.getFaultDetector());
}
if (other.hasAliasFor()) {
mergeAliasFor(other.getAliasFor());
}
if (lanesBuilder_ == null) {
if (!other.lanes_.isEmpty()) {
if (lanes_.isEmpty()) {
lanes_ = other.lanes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLanesIsMutable();
lanes_.addAll(other.lanes_);
}
onChanged();
}
} else {
if (!other.lanes_.isEmpty()) {
if (lanesBuilder_.isEmpty()) {
lanesBuilder_.dispose();
lanesBuilder_ = null;
lanes_ = other.lanes_;
bitField0_ = (bitField0_ & ~0x00000008);
lanesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLanesFieldBuilder() : null;
} else {
lanesBuilder_.addAllMessages(other.lanes_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCodeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getInfoFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 24: {
type_ = input.readEnum();
break;
} // case 24
case 34: {
input.readMessage(
getServiceFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.parser(),
extensionRegistry);
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(m);
} else {
instancesBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
input.readMessage(
getRoutingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
case 58: {
input.readMessage(
getRateLimitFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 58
case 66: {
input.readMessage(
getCircuitBreakerFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 66
case 74: {
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.parser(),
extensionRegistry);
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(m);
} else {
servicesBuilder_.addMessage(m);
}
break;
} // case 74
case 82: {
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace m =
input.readMessage(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.parser(),
extensionRegistry);
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.add(m);
} else {
namespacesBuilder_.addMessage(m);
}
break;
} // case 82
case 90: {
input.readMessage(
getFaultDetectorFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 90
case 170: {
input.readMessage(
getAliasForFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 170
case 178: {
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup m =
input.readMessage(
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.parser(),
extensionRegistry);
if (lanesBuilder_ == null) {
ensureLanesIsMutable();
lanes_.add(m);
} else {
lanesBuilder_.addMessage(m);
}
break;
} // case 178
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.UInt32Value code_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> codeBuilder_;
/**
* .google.protobuf.UInt32Value code = 1;
* @return Whether the code field is set.
*/
public boolean hasCode() {
return codeBuilder_ != null || code_ != null;
}
/**
* .google.protobuf.UInt32Value code = 1;
* @return The code.
*/
public com.google.protobuf.UInt32Value getCode() {
if (codeBuilder_ == null) {
return code_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
} else {
return codeBuilder_.getMessage();
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
} else {
codeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder setCode(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (codeBuilder_ == null) {
code_ = builderForValue.build();
onChanged();
} else {
codeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder mergeCode(com.google.protobuf.UInt32Value value) {
if (codeBuilder_ == null) {
if (code_ != null) {
code_ =
com.google.protobuf.UInt32Value.newBuilder(code_).mergeFrom(value).buildPartial();
} else {
code_ = value;
}
onChanged();
} else {
codeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public Builder clearCode() {
if (codeBuilder_ == null) {
code_ = null;
onChanged();
} else {
code_ = null;
codeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32Value.Builder getCodeBuilder() {
onChanged();
return getCodeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
public com.google.protobuf.UInt32ValueOrBuilder getCodeOrBuilder() {
if (codeBuilder_ != null) {
return codeBuilder_.getMessageOrBuilder();
} else {
return code_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : code_;
}
}
/**
* .google.protobuf.UInt32Value code = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getCodeFieldBuilder() {
if (codeBuilder_ == null) {
codeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getCode(),
getParentForChildren(),
isClean());
code_ = null;
}
return codeBuilder_;
}
private com.google.protobuf.StringValue info_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> infoBuilder_;
/**
* .google.protobuf.StringValue info = 2;
* @return Whether the info field is set.
*/
public boolean hasInfo() {
return infoBuilder_ != null || info_ != null;
}
/**
* .google.protobuf.StringValue info = 2;
* @return The info.
*/
public com.google.protobuf.StringValue getInfo() {
if (infoBuilder_ == null) {
return info_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : info_;
} else {
return infoBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder setInfo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder mergeInfo(com.google.protobuf.StringValue value) {
if (infoBuilder_ == null) {
if (info_ != null) {
info_ =
com.google.protobuf.StringValue.newBuilder(info_).mergeFrom(value).buildPartial();
} else {
info_ = value;
}
onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
info_ = null;
onChanged();
} else {
info_ = null;
infoBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValue.Builder getInfoBuilder() {
onChanged();
return getInfoFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue info = 2;
*/
public com.google.protobuf.StringValueOrBuilder getInfoOrBuilder() {
if (infoBuilder_ != null) {
return infoBuilder_.getMessageOrBuilder();
} else {
return info_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : info_;
}
}
/**
* .google.protobuf.StringValue info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getInfo(),
getParentForChildren(),
isClean());
info_ = null;
}
return infoBuilder_;
}
private int type_ = 0;
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return The type.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType getType() {
@SuppressWarnings("deprecation")
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType result = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType.valueOf(type_);
return result == null ? com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType.UNRECOGNIZED : result;
}
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.DiscoverResponseType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .v1.DiscoverResponse.DiscoverResponseType type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service service_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> serviceBuilder_;
/**
* .v1.Service service = 4;
* @return Whether the service field is set.
*/
public boolean hasService() {
return serviceBuilder_ != null || service_ != null;
}
/**
* .v1.Service service = 4;
* @return The service.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService() {
if (serviceBuilder_ == null) {
return service_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
} else {
return serviceBuilder_.getMessage();
}
}
/**
* .v1.Service service = 4;
*/
public Builder setService(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (serviceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
onChanged();
} else {
serviceBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Service service = 4;
*/
public Builder setService(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (serviceBuilder_ == null) {
service_ = builderForValue.build();
onChanged();
} else {
serviceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Service service = 4;
*/
public Builder mergeService(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (serviceBuilder_ == null) {
if (service_ != null) {
service_ =
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.newBuilder(service_).mergeFrom(value).buildPartial();
} else {
service_ = value;
}
onChanged();
} else {
serviceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Service service = 4;
*/
public Builder clearService() {
if (serviceBuilder_ == null) {
service_ = null;
onChanged();
} else {
service_ = null;
serviceBuilder_ = null;
}
return this;
}
/**
* .v1.Service service = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder getServiceBuilder() {
onChanged();
return getServiceFieldBuilder().getBuilder();
}
/**
* .v1.Service service = 4;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder() {
if (serviceBuilder_ != null) {
return serviceBuilder_.getMessageOrBuilder();
} else {
return service_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
}
}
/**
* .v1.Service service = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServiceFieldBuilder() {
if (serviceBuilder_ == null) {
serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>(
getService(),
getParentForChildren(),
isClean());
service_ = null;
}
return serviceBuilder_;
}
private java.util.List instances_ =
java.util.Collections.emptyList();
private void ensureInstancesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instances_ = new java.util.ArrayList(instances_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder> instancesBuilder_;
/**
* repeated .v1.Instance instances = 5;
*/
public java.util.List getInstancesList() {
if (instancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(instances_);
} else {
return instancesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Instance instances = 5;
*/
public int getInstancesCount() {
if (instancesBuilder_ == null) {
return instances_.size();
} else {
return instancesBuilder_.getCount();
}
}
/**
* repeated .v1.Instance instances = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance getInstances(int index) {
if (instancesBuilder_ == null) {
return instances_.get(index);
} else {
return instancesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder setInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.set(index, value);
onChanged();
} else {
instancesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder setInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.set(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder addInstances(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(value);
onChanged();
} else {
instancesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder addInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(index, value);
onChanged();
} else {
instancesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder addInstances(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder addInstances(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder addAllInstances(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance> values) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instances_);
onChanged();
} else {
instancesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder clearInstances() {
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
instancesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public Builder removeInstances(int index) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.remove(index);
onChanged();
} else {
instancesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Instance instances = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder getInstancesBuilder(
int index) {
return getInstancesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Instance instances = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder getInstancesOrBuilder(
int index) {
if (instancesBuilder_ == null) {
return instances_.get(index); } else {
return instancesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Instance instances = 5;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesOrBuilderList() {
if (instancesBuilder_ != null) {
return instancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instances_);
}
}
/**
* repeated .v1.Instance instances = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder addInstancesBuilder() {
return getInstancesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance());
}
/**
* repeated .v1.Instance instances = 5;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder addInstancesBuilder(
int index) {
return getInstancesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance());
}
/**
* repeated .v1.Instance instances = 5;
*/
public java.util.List
getInstancesBuilderList() {
return getInstancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>
getInstancesFieldBuilder() {
if (instancesBuilder_ == null) {
instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.InstanceOrBuilder>(
instances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
instances_ = null;
}
return instancesBuilder_;
}
private com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing routing_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder> routingBuilder_;
/**
* .v1.Routing routing = 6;
* @return Whether the routing field is set.
*/
public boolean hasRouting() {
return routingBuilder_ != null || routing_ != null;
}
/**
* .v1.Routing routing = 6;
* @return The routing.
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getRouting() {
if (routingBuilder_ == null) {
return routing_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance() : routing_;
} else {
return routingBuilder_.getMessage();
}
}
/**
* .v1.Routing routing = 6;
*/
public Builder setRouting(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routing_ = value;
onChanged();
} else {
routingBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Routing routing = 6;
*/
public Builder setRouting(
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder builderForValue) {
if (routingBuilder_ == null) {
routing_ = builderForValue.build();
onChanged();
} else {
routingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Routing routing = 6;
*/
public Builder mergeRouting(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing value) {
if (routingBuilder_ == null) {
if (routing_ != null) {
routing_ =
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.newBuilder(routing_).mergeFrom(value).buildPartial();
} else {
routing_ = value;
}
onChanged();
} else {
routingBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Routing routing = 6;
*/
public Builder clearRouting() {
if (routingBuilder_ == null) {
routing_ = null;
onChanged();
} else {
routing_ = null;
routingBuilder_ = null;
}
return this;
}
/**
* .v1.Routing routing = 6;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder getRoutingBuilder() {
onChanged();
return getRoutingFieldBuilder().getBuilder();
}
/**
* .v1.Routing routing = 6;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder getRoutingOrBuilder() {
if (routingBuilder_ != null) {
return routingBuilder_.getMessageOrBuilder();
} else {
return routing_ == null ?
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance() : routing_;
}
}
/**
* .v1.Routing routing = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>
getRoutingFieldBuilder() {
if (routingBuilder_ == null) {
routingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder>(
getRouting(),
getParentForChildren(),
isClean());
routing_ = null;
}
return routingBuilder_;
}
private com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit rateLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimitOrBuilder> rateLimitBuilder_;
/**
* .v1.RateLimit rateLimit = 7;
* @return Whether the rateLimit field is set.
*/
public boolean hasRateLimit() {
return rateLimitBuilder_ != null || rateLimit_ != null;
}
/**
* .v1.RateLimit rateLimit = 7;
* @return The rateLimit.
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit getRateLimit() {
if (rateLimitBuilder_ == null) {
return rateLimit_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.getDefaultInstance() : rateLimit_;
} else {
return rateLimitBuilder_.getMessage();
}
}
/**
* .v1.RateLimit rateLimit = 7;
*/
public Builder setRateLimit(com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit value) {
if (rateLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rateLimit_ = value;
onChanged();
} else {
rateLimitBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.RateLimit rateLimit = 7;
*/
public Builder setRateLimit(
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.Builder builderForValue) {
if (rateLimitBuilder_ == null) {
rateLimit_ = builderForValue.build();
onChanged();
} else {
rateLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.RateLimit rateLimit = 7;
*/
public Builder mergeRateLimit(com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit value) {
if (rateLimitBuilder_ == null) {
if (rateLimit_ != null) {
rateLimit_ =
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.newBuilder(rateLimit_).mergeFrom(value).buildPartial();
} else {
rateLimit_ = value;
}
onChanged();
} else {
rateLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.RateLimit rateLimit = 7;
*/
public Builder clearRateLimit() {
if (rateLimitBuilder_ == null) {
rateLimit_ = null;
onChanged();
} else {
rateLimit_ = null;
rateLimitBuilder_ = null;
}
return this;
}
/**
* .v1.RateLimit rateLimit = 7;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.Builder getRateLimitBuilder() {
onChanged();
return getRateLimitFieldBuilder().getBuilder();
}
/**
* .v1.RateLimit rateLimit = 7;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimitOrBuilder getRateLimitOrBuilder() {
if (rateLimitBuilder_ != null) {
return rateLimitBuilder_.getMessageOrBuilder();
} else {
return rateLimit_ == null ?
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.getDefaultInstance() : rateLimit_;
}
}
/**
* .v1.RateLimit rateLimit = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimitOrBuilder>
getRateLimitFieldBuilder() {
if (rateLimitBuilder_ == null) {
rateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimit.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.RateLimitOrBuilder>(
getRateLimit(),
getParentForChildren(),
isClean());
rateLimit_ = null;
}
return rateLimitBuilder_;
}
private com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker circuitBreaker_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder> circuitBreakerBuilder_;
/**
* .v1.CircuitBreaker circuitBreaker = 8;
* @return Whether the circuitBreaker field is set.
*/
public boolean hasCircuitBreaker() {
return circuitBreakerBuilder_ != null || circuitBreaker_ != null;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
* @return The circuitBreaker.
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker getCircuitBreaker() {
if (circuitBreakerBuilder_ == null) {
return circuitBreaker_ == null ? com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.getDefaultInstance() : circuitBreaker_;
} else {
return circuitBreakerBuilder_.getMessage();
}
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
public Builder setCircuitBreaker(com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker value) {
if (circuitBreakerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
circuitBreaker_ = value;
onChanged();
} else {
circuitBreakerBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
public Builder setCircuitBreaker(
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder builderForValue) {
if (circuitBreakerBuilder_ == null) {
circuitBreaker_ = builderForValue.build();
onChanged();
} else {
circuitBreakerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
public Builder mergeCircuitBreaker(com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker value) {
if (circuitBreakerBuilder_ == null) {
if (circuitBreaker_ != null) {
circuitBreaker_ =
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.newBuilder(circuitBreaker_).mergeFrom(value).buildPartial();
} else {
circuitBreaker_ = value;
}
onChanged();
} else {
circuitBreakerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
public Builder clearCircuitBreaker() {
if (circuitBreakerBuilder_ == null) {
circuitBreaker_ = null;
onChanged();
} else {
circuitBreaker_ = null;
circuitBreakerBuilder_ = null;
}
return this;
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder getCircuitBreakerBuilder() {
onChanged();
return getCircuitBreakerFieldBuilder().getBuilder();
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder getCircuitBreakerOrBuilder() {
if (circuitBreakerBuilder_ != null) {
return circuitBreakerBuilder_.getMessageOrBuilder();
} else {
return circuitBreaker_ == null ?
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.getDefaultInstance() : circuitBreaker_;
}
}
/**
* .v1.CircuitBreaker circuitBreaker = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder>
getCircuitBreakerFieldBuilder() {
if (circuitBreakerBuilder_ == null) {
circuitBreakerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreaker.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.CircuitBreakerOrBuilder>(
getCircuitBreaker(),
getParentForChildren(),
isClean());
circuitBreaker_ = null;
}
return circuitBreakerBuilder_;
}
private java.util.List services_ =
java.util.Collections.emptyList();
private void ensureServicesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
services_ = new java.util.ArrayList(services_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> servicesBuilder_;
/**
* repeated .v1.Service services = 9;
*/
public java.util.List getServicesList() {
if (servicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(services_);
} else {
return servicesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Service services = 9;
*/
public int getServicesCount() {
if (servicesBuilder_ == null) {
return services_.size();
} else {
return servicesBuilder_.getCount();
}
}
/**
* repeated .v1.Service services = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getServices(int index) {
if (servicesBuilder_ == null) {
return services_.get(index);
} else {
return servicesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Service services = 9;
*/
public Builder setServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.set(index, value);
onChanged();
} else {
servicesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder setServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.set(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder addServices(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(value);
onChanged();
} else {
servicesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder addServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(index, value);
onChanged();
} else {
servicesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder addServices(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder addServices(
int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder addAllServices(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service> values) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, services_);
onChanged();
} else {
servicesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder clearServices() {
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
servicesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public Builder removeServices(int index) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.remove(index);
onChanged();
} else {
servicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Service services = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder getServicesBuilder(
int index) {
return getServicesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Service services = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServicesOrBuilder(
int index) {
if (servicesBuilder_ == null) {
return services_.get(index); } else {
return servicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Service services = 9;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesOrBuilderList() {
if (servicesBuilder_ != null) {
return servicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(services_);
}
}
/**
* repeated .v1.Service services = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder addServicesBuilder() {
return getServicesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance());
}
/**
* repeated .v1.Service services = 9;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder addServicesBuilder(
int index) {
return getServicesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance());
}
/**
* repeated .v1.Service services = 9;
*/
public java.util.List
getServicesBuilderList() {
return getServicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getServicesFieldBuilder() {
if (servicesBuilder_ == null) {
servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>(
services_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
services_ = null;
}
return servicesBuilder_;
}
private java.util.List namespaces_ =
java.util.Collections.emptyList();
private void ensureNamespacesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
namespaces_ = new java.util.ArrayList(namespaces_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder> namespacesBuilder_;
/**
* repeated .v1.Namespace namespaces = 10;
*/
public java.util.List getNamespacesList() {
if (namespacesBuilder_ == null) {
return java.util.Collections.unmodifiableList(namespaces_);
} else {
return namespacesBuilder_.getMessageList();
}
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public int getNamespacesCount() {
if (namespacesBuilder_ == null) {
return namespaces_.size();
} else {
return namespacesBuilder_.getCount();
}
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace getNamespaces(int index) {
if (namespacesBuilder_ == null) {
return namespaces_.get(index);
} else {
return namespacesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder setNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespacesIsMutable();
namespaces_.set(index, value);
onChanged();
} else {
namespacesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder setNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.set(index, builderForValue.build());
onChanged();
} else {
namespacesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder addNamespaces(com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespacesIsMutable();
namespaces_.add(value);
onChanged();
} else {
namespacesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder addNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace value) {
if (namespacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespacesIsMutable();
namespaces_.add(index, value);
onChanged();
} else {
namespacesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder addNamespaces(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.add(builderForValue.build());
onChanged();
} else {
namespacesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder addNamespaces(
int index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder builderForValue) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.add(index, builderForValue.build());
onChanged();
} else {
namespacesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder addAllNamespaces(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace> values) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, namespaces_);
onChanged();
} else {
namespacesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder clearNamespaces() {
if (namespacesBuilder_ == null) {
namespaces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
namespacesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public Builder removeNamespaces(int index) {
if (namespacesBuilder_ == null) {
ensureNamespacesIsMutable();
namespaces_.remove(index);
onChanged();
} else {
namespacesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder getNamespacesBuilder(
int index) {
return getNamespacesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder getNamespacesOrBuilder(
int index) {
if (namespacesBuilder_ == null) {
return namespaces_.get(index); } else {
return namespacesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesOrBuilderList() {
if (namespacesBuilder_ != null) {
return namespacesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(namespaces_);
}
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder addNamespacesBuilder() {
return getNamespacesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance());
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder addNamespacesBuilder(
int index) {
return getNamespacesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.getDefaultInstance());
}
/**
* repeated .v1.Namespace namespaces = 10;
*/
public java.util.List
getNamespacesBuilderList() {
return getNamespacesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>
getNamespacesFieldBuilder() {
if (namespacesBuilder_ == null) {
namespacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace, com.tencent.polaris.specification.api.v1.model.NamespaceProto.Namespace.Builder, com.tencent.polaris.specification.api.v1.model.NamespaceProto.NamespaceOrBuilder>(
namespaces_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
namespaces_ = null;
}
return namespacesBuilder_;
}
private com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector faultDetector_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector, com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetectorOrBuilder> faultDetectorBuilder_;
/**
* .v1.FaultDetector faultDetector = 11;
* @return Whether the faultDetector field is set.
*/
public boolean hasFaultDetector() {
return faultDetectorBuilder_ != null || faultDetector_ != null;
}
/**
* .v1.FaultDetector faultDetector = 11;
* @return The faultDetector.
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector getFaultDetector() {
if (faultDetectorBuilder_ == null) {
return faultDetector_ == null ? com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.getDefaultInstance() : faultDetector_;
} else {
return faultDetectorBuilder_.getMessage();
}
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
public Builder setFaultDetector(com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector value) {
if (faultDetectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
faultDetector_ = value;
onChanged();
} else {
faultDetectorBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
public Builder setFaultDetector(
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.Builder builderForValue) {
if (faultDetectorBuilder_ == null) {
faultDetector_ = builderForValue.build();
onChanged();
} else {
faultDetectorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
public Builder mergeFaultDetector(com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector value) {
if (faultDetectorBuilder_ == null) {
if (faultDetector_ != null) {
faultDetector_ =
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.newBuilder(faultDetector_).mergeFrom(value).buildPartial();
} else {
faultDetector_ = value;
}
onChanged();
} else {
faultDetectorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
public Builder clearFaultDetector() {
if (faultDetectorBuilder_ == null) {
faultDetector_ = null;
onChanged();
} else {
faultDetector_ = null;
faultDetectorBuilder_ = null;
}
return this;
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.Builder getFaultDetectorBuilder() {
onChanged();
return getFaultDetectorFieldBuilder().getBuilder();
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
public com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetectorOrBuilder getFaultDetectorOrBuilder() {
if (faultDetectorBuilder_ != null) {
return faultDetectorBuilder_.getMessageOrBuilder();
} else {
return faultDetector_ == null ?
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.getDefaultInstance() : faultDetector_;
}
}
/**
* .v1.FaultDetector faultDetector = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector, com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetectorOrBuilder>
getFaultDetectorFieldBuilder() {
if (faultDetectorBuilder_ == null) {
faultDetectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector, com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetector.Builder, com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.FaultDetectorOrBuilder>(
getFaultDetector(),
getParentForChildren(),
isClean());
faultDetector_ = null;
}
return faultDetectorBuilder_;
}
private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service aliasFor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> aliasForBuilder_;
/**
* .v1.Service aliasFor = 21;
* @return Whether the aliasFor field is set.
*/
public boolean hasAliasFor() {
return aliasForBuilder_ != null || aliasFor_ != null;
}
/**
* .v1.Service aliasFor = 21;
* @return The aliasFor.
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getAliasFor() {
if (aliasForBuilder_ == null) {
return aliasFor_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : aliasFor_;
} else {
return aliasForBuilder_.getMessage();
}
}
/**
* .v1.Service aliasFor = 21;
*/
public Builder setAliasFor(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (aliasForBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
aliasFor_ = value;
onChanged();
} else {
aliasForBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.Service aliasFor = 21;
*/
public Builder setAliasFor(
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
if (aliasForBuilder_ == null) {
aliasFor_ = builderForValue.build();
onChanged();
} else {
aliasForBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.Service aliasFor = 21;
*/
public Builder mergeAliasFor(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
if (aliasForBuilder_ == null) {
if (aliasFor_ != null) {
aliasFor_ =
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.newBuilder(aliasFor_).mergeFrom(value).buildPartial();
} else {
aliasFor_ = value;
}
onChanged();
} else {
aliasForBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.Service aliasFor = 21;
*/
public Builder clearAliasFor() {
if (aliasForBuilder_ == null) {
aliasFor_ = null;
onChanged();
} else {
aliasFor_ = null;
aliasForBuilder_ = null;
}
return this;
}
/**
* .v1.Service aliasFor = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder getAliasForBuilder() {
onChanged();
return getAliasForFieldBuilder().getBuilder();
}
/**
* .v1.Service aliasFor = 21;
*/
public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getAliasForOrBuilder() {
if (aliasForBuilder_ != null) {
return aliasForBuilder_.getMessageOrBuilder();
} else {
return aliasFor_ == null ?
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : aliasFor_;
}
}
/**
* .v1.Service aliasFor = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>
getAliasForFieldBuilder() {
if (aliasForBuilder_ == null) {
aliasForBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>(
getAliasFor(),
getParentForChildren(),
isClean());
aliasFor_ = null;
}
return aliasForBuilder_;
}
private java.util.List lanes_ =
java.util.Collections.emptyList();
private void ensureLanesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
lanes_ = new java.util.ArrayList(lanes_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder> lanesBuilder_;
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public java.util.List getLanesList() {
if (lanesBuilder_ == null) {
return java.util.Collections.unmodifiableList(lanes_);
} else {
return lanesBuilder_.getMessageList();
}
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public int getLanesCount() {
if (lanesBuilder_ == null) {
return lanes_.size();
} else {
return lanesBuilder_.getCount();
}
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup getLanes(int index) {
if (lanesBuilder_ == null) {
return lanes_.get(index);
} else {
return lanesBuilder_.getMessage(index);
}
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder setLanes(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup value) {
if (lanesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanesIsMutable();
lanes_.set(index, value);
onChanged();
} else {
lanesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder setLanes(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder builderForValue) {
if (lanesBuilder_ == null) {
ensureLanesIsMutable();
lanes_.set(index, builderForValue.build());
onChanged();
} else {
lanesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder addLanes(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup value) {
if (lanesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanesIsMutable();
lanes_.add(value);
onChanged();
} else {
lanesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder addLanes(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup value) {
if (lanesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanesIsMutable();
lanes_.add(index, value);
onChanged();
} else {
lanesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder addLanes(
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder builderForValue) {
if (lanesBuilder_ == null) {
ensureLanesIsMutable();
lanes_.add(builderForValue.build());
onChanged();
} else {
lanesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder addLanes(
int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder builderForValue) {
if (lanesBuilder_ == null) {
ensureLanesIsMutable();
lanes_.add(index, builderForValue.build());
onChanged();
} else {
lanesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder addAllLanes(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup> values) {
if (lanesBuilder_ == null) {
ensureLanesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, lanes_);
onChanged();
} else {
lanesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder clearLanes() {
if (lanesBuilder_ == null) {
lanes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
lanesBuilder_.clear();
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public Builder removeLanes(int index) {
if (lanesBuilder_ == null) {
ensureLanesIsMutable();
lanes_.remove(index);
onChanged();
} else {
lanesBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder getLanesBuilder(
int index) {
return getLanesFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder getLanesOrBuilder(
int index) {
if (lanesBuilder_ == null) {
return lanes_.get(index); } else {
return lanesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder>
getLanesOrBuilderList() {
if (lanesBuilder_ != null) {
return lanesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(lanes_);
}
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder addLanesBuilder() {
return getLanesFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.getDefaultInstance());
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder addLanesBuilder(
int index) {
return getLanesFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.getDefaultInstance());
}
/**
* repeated .v1.LaneGroup lanes = 22;
*/
public java.util.List
getLanesBuilderList() {
return getLanesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder>
getLanesFieldBuilder() {
if (lanesBuilder_ == null) {
lanesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder>(
lanes_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
lanes_ = null;
}
return lanesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.DiscoverResponse)
}
// @@protoc_insertion_point(class_scope:v1.DiscoverResponse)
private static final com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse();
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiscoverResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptionSwitchOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.OptionSwitch)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, string> options = 1;
*/
int getOptionsCount();
/**
* map<string, string> options = 1;
*/
boolean containsOptions(
java.lang.String key);
/**
* Use {@link #getOptionsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getOptions();
/**
* map<string, string> options = 1;
*/
java.util.Map
getOptionsMap();
/**
* map<string, string> options = 1;
*/
/* nullable */
java.lang.String getOptionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* map<string, string> options = 1;
*/
java.lang.String getOptionsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code v1.OptionSwitch}
*/
public static final class OptionSwitch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.OptionSwitch)
OptionSwitchOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptionSwitch.newBuilder() to construct.
private OptionSwitch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptionSwitch() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OptionSwitch();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_OptionSwitch_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_OptionSwitch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder.class);
}
public static final int OPTIONS_FIELD_NUMBER = 1;
private static final class OptionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_OptionSwitch_OptionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> options_;
private com.google.protobuf.MapField
internalGetOptions() {
if (options_ == null) {
return com.google.protobuf.MapField.emptyMapField(
OptionsDefaultEntryHolder.defaultEntry);
}
return options_;
}
public int getOptionsCount() {
return internalGetOptions().getMap().size();
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public boolean containsOptions(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetOptions().getMap().containsKey(key);
}
/**
* Use {@link #getOptionsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOptions() {
return getOptionsMap();
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public java.util.Map getOptionsMap() {
return internalGetOptions().getMap();
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public java.lang.String getOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public java.lang.String getOptionsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetOptions(),
OptionsDefaultEntryHolder.defaultEntry,
1);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetOptions().getMap().entrySet()) {
com.google.protobuf.MapEntry
options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, options__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch other = (com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch) obj;
if (!internalGetOptions().equals(
other.internalGetOptions())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetOptions().getMap().isEmpty()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code v1.OptionSwitch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.OptionSwitch)
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_OptionSwitch_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_OptionSwitch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableOptions().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_OptionSwitch_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch build() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch result = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch(this);
int from_bitField0_ = bitField0_;
result.options_ = internalGetOptions();
result.options_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch.getDefaultInstance()) return this;
internalGetMutableOptions().mergeFrom(
other.internalGetOptions());
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry
options__ = input.readMessage(
OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableOptions().getMutableMap().put(
options__.getKey(), options__.getValue());
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> options_;
private com.google.protobuf.MapField
internalGetOptions() {
if (options_ == null) {
return com.google.protobuf.MapField.emptyMapField(
OptionsDefaultEntryHolder.defaultEntry);
}
return options_;
}
private com.google.protobuf.MapField
internalGetMutableOptions() {
onChanged();;
if (options_ == null) {
options_ = com.google.protobuf.MapField.newMapField(
OptionsDefaultEntryHolder.defaultEntry);
}
if (!options_.isMutable()) {
options_ = options_.copy();
}
return options_;
}
public int getOptionsCount() {
return internalGetOptions().getMap().size();
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public boolean containsOptions(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetOptions().getMap().containsKey(key);
}
/**
* Use {@link #getOptionsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOptions() {
return getOptionsMap();
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public java.util.Map getOptionsMap() {
return internalGetOptions().getMap();
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public java.lang.String getOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> options = 1;
*/
@java.lang.Override
public java.lang.String getOptionsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearOptions() {
internalGetMutableOptions().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> options = 1;
*/
public Builder removeOptions(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableOptions().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableOptions() {
return internalGetMutableOptions().getMutableMap();
}
/**
* map<string, string> options = 1;
*/
public Builder putOptions(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableOptions().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> options = 1;
*/
public Builder putAllOptions(
java.util.Map values) {
internalGetMutableOptions().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.OptionSwitch)
}
// @@protoc_insertion_point(class_scope:v1.OptionSwitch)
private static final com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch();
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OptionSwitch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.OptionSwitch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InstanceLabelsOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.InstanceLabels)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .v1.StringList> labels = 1;
*/
int getLabelsCount();
/**
* map<string, .v1.StringList> labels = 1;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
* map<string, .v1.StringList> labels = 1;
*/
java.util.Map
getLabelsMap();
/**
* map<string, .v1.StringList> labels = 1;
*/
/* nullable */
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getLabelsOrDefault(
java.lang.String key,
/* nullable */
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList defaultValue);
/**
* map<string, .v1.StringList> labels = 1;
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code v1.InstanceLabels}
*/
public static final class InstanceLabels extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.InstanceLabels)
InstanceLabelsOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceLabels.newBuilder() to construct.
private InstanceLabels(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceLabels() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InstanceLabels();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_InstanceLabels_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_InstanceLabels_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder.class);
}
public static final int LABELS_FIELD_NUMBER = 1;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.StringList> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_InstanceLabels_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.StringList> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getLabelsOrDefault(
java.lang.String key,
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
1);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, labels__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels other = (com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels) obj;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code v1.InstanceLabels}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.InstanceLabels)
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabelsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_InstanceLabels_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_InstanceLabels_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.class, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableLabels().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.internal_static_v1_InstanceLabels_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels build() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels result = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels(this);
int from_bitField0_ = bitField0_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels.getDefaultInstance()) return this;
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableLabels().getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.StringList> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getLabelsOrDefault(
java.lang.String key,
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .v1.StringList> labels = 1;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
* map<string, .v1.StringList> labels = 1;
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
* map<string, .v1.StringList> labels = 1;
*/
public Builder putLabels(
java.lang.String key,
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .v1.StringList> labels = 1;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.InstanceLabels)
}
// @@protoc_insertion_point(class_scope:v1.InstanceLabels)
private static final com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels();
}
public static com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstanceLabels parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.InstanceLabels getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_Response_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_BatchWriteResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_BatchWriteResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_BatchQueryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_BatchQueryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_DiscoverResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_DiscoverResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_OptionSwitch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_OptionSwitch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_OptionSwitch_OptionsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_OptionSwitch_OptionsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_InstanceLabels_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_InstanceLabels_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_InstanceLabels_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_InstanceLabels_LabelsEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\016response.proto\022\002v1\032\036google/protobuf/wr" +
"appers.proto\032\031google/protobuf/any.proto\032" +
"\017namespace.proto\032\rservice.proto\032\rrouting" +
".proto\032\017ratelimit.proto\032\024circuitbreaker." +
"proto\032\013model.proto\032\014client.proto\032\023config" +
"release.proto\032\024fault_detector.proto\032\naut" +
"h.proto\032\016contract.proto\032\nlane.proto\"\375\006\n\010" +
"Response\022*\n\004code\030\001 \001(\0132\034.google.protobuf" +
".UInt32Value\022*\n\004info\030\002 \001(\0132\034.google.prot" +
"obuf.StringValue\022\032\n\006client\030\003 \001(\0132\n.v1.Cl" +
"ient\022 \n\tnamespace\030\004 \001(\0132\r.v1.Namespace\022\034" +
"\n\007service\030\005 \001(\0132\013.v1.Service\022\036\n\010instance" +
"\030\006 \001(\0132\014.v1.Instance\022\034\n\007routing\030\007 \001(\0132\013." +
"v1.Routing\022\037\n\005alias\030\010 \001(\0132\020.v1.ServiceAl" +
"ias\022\033\n\trateLimit\030\t \001(\0132\010.v1.Rule\022*\n\016circ" +
"uitBreaker\030\n \001(\0132\022.v1.CircuitBreaker\022(\n\r" +
"configRelease\030\013 \001(\0132\021.v1.ConfigRelease\022\026" +
"\n\004user\030\023 \001(\0132\010.v1.User\022 \n\tuserGroup\030\024 \001(" +
"\0132\r.v1.UserGroup\022&\n\014authStrategy\030\025 \001(\0132\020" +
".v1.AuthStrategy\022\'\n\010relation\030\026 \001(\0132\025.v1." +
"UserGroupRelation\022(\n\rloginResponse\030\027 \001(\013" +
"2\021.v1.LoginResponse\0222\n\022modifyAuthStrateg" +
"y\030\030 \001(\0132\026.v1.ModifyAuthStrategy\022,\n\017modif" +
"yUserGroup\030\031 \001(\0132\023.v1.ModifyUserGroup\022(\n" +
"\tresources\030\032 \001(\0132\025.v1.StrategyResources\022" +
"&\n\014optionSwitch\030\033 \001(\0132\020.v1.OptionSwitch\022" +
"*\n\016instanceLabels\030\034 \001(\0132\022.v1.InstanceLab" +
"els\022\"\n\004data\030\035 \001(\0132\024.google.protobuf.Any\022" +
",\n\017serviceContract\030\036 \001(\0132\023.v1.ServiceCon" +
"tractJ\004\010\014\020\023\"\271\001\n\022BatchWriteResponse\022*\n\004co" +
"de\030\001 \001(\0132\034.google.protobuf.UInt32Value\022*" +
"\n\004info\030\002 \001(\0132\034.google.protobuf.StringVal" +
"ue\022*\n\004size\030\003 \001(\0132\034.google.protobuf.UInt3" +
"2Value\022\037\n\tresponses\030\004 \003(\0132\014.v1.Response\"" +
"\207\005\n\022BatchQueryResponse\022*\n\004code\030\001 \001(\0132\034.g" +
"oogle.protobuf.UInt32Value\022*\n\004info\030\002 \001(\013" +
"2\034.google.protobuf.StringValue\022,\n\006amount" +
"\030\003 \001(\0132\034.google.protobuf.UInt32Value\022*\n\004" +
"size\030\004 \001(\0132\034.google.protobuf.UInt32Value" +
"\022!\n\nnamespaces\030\005 \003(\0132\r.v1.Namespace\022\035\n\010s" +
"ervices\030\006 \003(\0132\013.v1.Service\022\037\n\tinstances\030" +
"\007 \003(\0132\014.v1.Instance\022\035\n\010routings\030\010 \003(\0132\013." +
"v1.Routing\022!\n\007aliases\030\t \003(\0132\020.v1.Service" +
"Alias\022\034\n\nrateLimits\030\n \003(\0132\010.v1.Rule\0221\n\022c" +
"onfigWithServices\030\013 \003(\0132\025.v1.ConfigWithS" +
"ervice\022\027\n\005users\030\022 \003(\0132\010.v1.User\022!\n\nuserG" +
"roups\030\023 \003(\0132\r.v1.UserGroup\022(\n\016authStrate" +
"gies\030\024 \003(\0132\020.v1.AuthStrategy\022\033\n\007clients\030" +
"\025 \003(\0132\n.v1.Client\022\"\n\004data\030\026 \003(\0132\024.google" +
".protobuf.Any\022\034\n\007summary\030\027 \001(\0132\013.v1.Summ" +
"aryJ\004\010\014\020\022\"\362\005\n\020DiscoverResponse\022*\n\004code\030\001" +
" \001(\0132\034.google.protobuf.UInt32Value\022*\n\004in" +
"fo\030\002 \001(\0132\034.google.protobuf.StringValue\0227" +
"\n\004type\030\003 \001(\0162).v1.DiscoverResponse.Disco" +
"verResponseType\022\034\n\007service\030\004 \001(\0132\013.v1.Se" +
"rvice\022\037\n\tinstances\030\005 \003(\0132\014.v1.Instance\022\034" +
"\n\007routing\030\006 \001(\0132\013.v1.Routing\022 \n\trateLimi" +
"t\030\007 \001(\0132\r.v1.RateLimit\022*\n\016circuitBreaker" +
"\030\010 \001(\0132\022.v1.CircuitBreaker\022\035\n\010services\030\t" +
" \003(\0132\013.v1.Service\022!\n\nnamespaces\030\n \003(\0132\r." +
"v1.Namespace\022(\n\rfaultDetector\030\013 \001(\0132\021.v1" +
".FaultDetector\022\035\n\010aliasFor\030\025 \001(\0132\013.v1.Se" +
"rvice\022\034\n\005lanes\030\026 \003(\0132\r.v1.LaneGroup\"\362\001\n\024" +
"DiscoverResponseType\022\013\n\007UNKNOWN\020\000\022\014\n\010INS" +
"TANCE\020\001\022\013\n\007CLUSTER\020\002\022\013\n\007ROUTING\020\003\022\016\n\nRAT" +
"E_LIMIT\020\004\022\023\n\017CIRCUIT_BREAKER\020\005\022\014\n\010SERVIC" +
"ES\020\006\022\016\n\nNAMESPACES\020\014\022\022\n\016FAULT_DETECTOR\020\r" +
"\022\010\n\004LANE\020d\"\004\010\007\020\013\"\004\010\016\020c*\004MESH*\013MESH_CONFI" +
"G*\016FLUX_DBREFRESH*\010FLUX_SDK*\013FLUX_SERVER" +
"J\004\010\014\020\025\"n\n\014OptionSwitch\022.\n\007options\030\001 \003(\0132" +
"\035.v1.OptionSwitch.OptionsEntry\032.\n\014Option" +
"sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\177" +
"\n\016InstanceLabels\022.\n\006labels\030\001 \003(\0132\036.v1.In" +
"stanceLabels.LabelsEntry\032=\n\013LabelsEntry\022" +
"\013\n\003key\030\001 \001(\t\022\035\n\005value\030\002 \001(\0132\016.v1.StringL" +
"ist:\0028\001B\216\001\n7com.tencent.polaris.specific" +
"ation.api.v1.service.manageB\rResponsePro" +
"toZDgithub.com/polarismesh/specification" +
"/source/go/api/v1/service_manageb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.WrappersProto.getDescriptor(),
com.google.protobuf.AnyProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.model.NamespaceProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.model.ModelProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.security.SecurityProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.getDescriptor(),
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.getDescriptor(),
});
internal_static_v1_Response_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_v1_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_Response_descriptor,
new java.lang.String[] { "Code", "Info", "Client", "Namespace", "Service", "Instance", "Routing", "Alias", "RateLimit", "CircuitBreaker", "ConfigRelease", "User", "UserGroup", "AuthStrategy", "Relation", "LoginResponse", "ModifyAuthStrategy", "ModifyUserGroup", "Resources", "OptionSwitch", "InstanceLabels", "Data", "ServiceContract", });
internal_static_v1_BatchWriteResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_v1_BatchWriteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_BatchWriteResponse_descriptor,
new java.lang.String[] { "Code", "Info", "Size", "Responses", });
internal_static_v1_BatchQueryResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_v1_BatchQueryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_BatchQueryResponse_descriptor,
new java.lang.String[] { "Code", "Info", "Amount", "Size", "Namespaces", "Services", "Instances", "Routings", "Aliases", "RateLimits", "ConfigWithServices", "Users", "UserGroups", "AuthStrategies", "Clients", "Data", "Summary", });
internal_static_v1_DiscoverResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_v1_DiscoverResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_DiscoverResponse_descriptor,
new java.lang.String[] { "Code", "Info", "Type", "Service", "Instances", "Routing", "RateLimit", "CircuitBreaker", "Services", "Namespaces", "FaultDetector", "AliasFor", "Lanes", });
internal_static_v1_OptionSwitch_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_v1_OptionSwitch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_OptionSwitch_descriptor,
new java.lang.String[] { "Options", });
internal_static_v1_OptionSwitch_OptionsEntry_descriptor =
internal_static_v1_OptionSwitch_descriptor.getNestedTypes().get(0);
internal_static_v1_OptionSwitch_OptionsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_OptionSwitch_OptionsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_v1_InstanceLabels_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_v1_InstanceLabels_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_InstanceLabels_descriptor,
new java.lang.String[] { "Labels", });
internal_static_v1_InstanceLabels_LabelsEntry_descriptor =
internal_static_v1_InstanceLabels_descriptor.getNestedTypes().get(0);
internal_static_v1_InstanceLabels_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_InstanceLabels_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
com.google.protobuf.WrappersProto.getDescriptor();
com.google.protobuf.AnyProto.getDescriptor();
com.tencent.polaris.specification.api.v1.model.NamespaceProto.getDescriptor();
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.getDescriptor();
com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.getDescriptor();
com.tencent.polaris.specification.api.v1.traffic.manage.RateLimitProto.getDescriptor();
com.tencent.polaris.specification.api.v1.fault.tolerance.CircuitBreakerProto.getDescriptor();
com.tencent.polaris.specification.api.v1.model.ModelProto.getDescriptor();
com.tencent.polaris.specification.api.v1.service.manage.ClientProto.getDescriptor();
com.tencent.polaris.specification.api.v1.service.manage.ConfigReleaseProto.getDescriptor();
com.tencent.polaris.specification.api.v1.fault.tolerance.FaultDetectorProto.getDescriptor();
com.tencent.polaris.specification.api.v1.security.SecurityProto.getDescriptor();
com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.getDescriptor();
com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy