com.tencent.polaris.specification.api.v1.model.ModelProto 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: model.proto
package com.tencent.polaris.specification.api.v1.model;
public final class ModelProto {
private ModelProto() {}
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 LocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.Location)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.StringValue region = 1;
* @return Whether the region field is set.
*/
boolean hasRegion();
/**
* .google.protobuf.StringValue region = 1;
* @return The region.
*/
com.google.protobuf.StringValue getRegion();
/**
* .google.protobuf.StringValue region = 1;
*/
com.google.protobuf.StringValueOrBuilder getRegionOrBuilder();
/**
* .google.protobuf.StringValue zone = 2;
* @return Whether the zone field is set.
*/
boolean hasZone();
/**
* .google.protobuf.StringValue zone = 2;
* @return The zone.
*/
com.google.protobuf.StringValue getZone();
/**
* .google.protobuf.StringValue zone = 2;
*/
com.google.protobuf.StringValueOrBuilder getZoneOrBuilder();
/**
* .google.protobuf.StringValue campus = 3;
* @return Whether the campus field is set.
*/
boolean hasCampus();
/**
* .google.protobuf.StringValue campus = 3;
* @return The campus.
*/
com.google.protobuf.StringValue getCampus();
/**
* .google.protobuf.StringValue campus = 3;
*/
com.google.protobuf.StringValueOrBuilder getCampusOrBuilder();
}
/**
* Protobuf type {@code v1.Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Location() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Location();
}
@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.model.ModelProto.internal_static_v1_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.Location.class, com.tencent.polaris.specification.api.v1.model.ModelProto.Location.Builder.class);
}
public static final int REGION_FIELD_NUMBER = 1;
private com.google.protobuf.StringValue region_;
/**
* .google.protobuf.StringValue region = 1;
* @return Whether the region field is set.
*/
@java.lang.Override
public boolean hasRegion() {
return region_ != null;
}
/**
* .google.protobuf.StringValue region = 1;
* @return The region.
*/
@java.lang.Override
public com.google.protobuf.StringValue getRegion() {
return region_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : region_;
}
/**
* .google.protobuf.StringValue region = 1;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getRegionOrBuilder() {
return getRegion();
}
public static final int ZONE_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue zone_;
/**
* .google.protobuf.StringValue zone = 2;
* @return Whether the zone field is set.
*/
@java.lang.Override
public boolean hasZone() {
return zone_ != null;
}
/**
* .google.protobuf.StringValue zone = 2;
* @return The zone.
*/
@java.lang.Override
public com.google.protobuf.StringValue getZone() {
return zone_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : zone_;
}
/**
* .google.protobuf.StringValue zone = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getZoneOrBuilder() {
return getZone();
}
public static final int CAMPUS_FIELD_NUMBER = 3;
private com.google.protobuf.StringValue campus_;
/**
* .google.protobuf.StringValue campus = 3;
* @return Whether the campus field is set.
*/
@java.lang.Override
public boolean hasCampus() {
return campus_ != null;
}
/**
* .google.protobuf.StringValue campus = 3;
* @return The campus.
*/
@java.lang.Override
public com.google.protobuf.StringValue getCampus() {
return campus_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campus_;
}
/**
* .google.protobuf.StringValue campus = 3;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getCampusOrBuilder() {
return getCampus();
}
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 (region_ != null) {
output.writeMessage(1, getRegion());
}
if (zone_ != null) {
output.writeMessage(2, getZone());
}
if (campus_ != null) {
output.writeMessage(3, getCampus());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (region_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRegion());
}
if (zone_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getZone());
}
if (campus_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCampus());
}
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.model.ModelProto.Location)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.model.ModelProto.Location other = (com.tencent.polaris.specification.api.v1.model.ModelProto.Location) obj;
if (hasRegion() != other.hasRegion()) return false;
if (hasRegion()) {
if (!getRegion()
.equals(other.getRegion())) return false;
}
if (hasZone() != other.hasZone()) return false;
if (hasZone()) {
if (!getZone()
.equals(other.getZone())) return false;
}
if (hasCampus() != other.hasCampus()) return false;
if (hasCampus()) {
if (!getCampus()
.equals(other.getCampus())) 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 (hasRegion()) {
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
}
if (hasZone()) {
hash = (37 * hash) + ZONE_FIELD_NUMBER;
hash = (53 * hash) + getZone().hashCode();
}
if (hasCampus()) {
hash = (37 * hash) + CAMPUS_FIELD_NUMBER;
hash = (53 * hash) + getCampus().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Location parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Location 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.model.ModelProto.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Location 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.model.ModelProto.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Location 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.model.ModelProto.Location 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.model.ModelProto.Location 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.model.ModelProto.Location 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.model.ModelProto.Location 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.model.ModelProto.Location 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.model.ModelProto.Location 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.model.ModelProto.Location 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.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.Location)
com.tencent.polaris.specification.api.v1.model.ModelProto.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.Location.class, com.tencent.polaris.specification.api.v1.model.ModelProto.Location.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.model.ModelProto.Location.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (regionBuilder_ == null) {
region_ = null;
} else {
region_ = null;
regionBuilder_ = null;
}
if (zoneBuilder_ == null) {
zone_ = null;
} else {
zone_ = null;
zoneBuilder_ = null;
}
if (campusBuilder_ == null) {
campus_ = null;
} else {
campus_ = null;
campusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Location_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Location getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.Location.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Location build() {
com.tencent.polaris.specification.api.v1.model.ModelProto.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Location buildPartial() {
com.tencent.polaris.specification.api.v1.model.ModelProto.Location result = new com.tencent.polaris.specification.api.v1.model.ModelProto.Location(this);
if (regionBuilder_ == null) {
result.region_ = region_;
} else {
result.region_ = regionBuilder_.build();
}
if (zoneBuilder_ == null) {
result.zone_ = zone_;
} else {
result.zone_ = zoneBuilder_.build();
}
if (campusBuilder_ == null) {
result.campus_ = campus_;
} else {
result.campus_ = campusBuilder_.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.model.ModelProto.Location) {
return mergeFrom((com.tencent.polaris.specification.api.v1.model.ModelProto.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.model.ModelProto.Location other) {
if (other == com.tencent.polaris.specification.api.v1.model.ModelProto.Location.getDefaultInstance()) return this;
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
if (other.hasZone()) {
mergeZone(other.getZone());
}
if (other.hasCampus()) {
mergeCampus(other.getCampus());
}
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(
getRegionFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getZoneFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getCampusFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
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.StringValue region_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> regionBuilder_;
/**
* .google.protobuf.StringValue region = 1;
* @return Whether the region field is set.
*/
public boolean hasRegion() {
return regionBuilder_ != null || region_ != null;
}
/**
* .google.protobuf.StringValue region = 1;
* @return The region.
*/
public com.google.protobuf.StringValue getRegion() {
if (regionBuilder_ == null) {
return region_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : region_;
} else {
return regionBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue region = 1;
*/
public Builder setRegion(com.google.protobuf.StringValue value) {
if (regionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
onChanged();
} else {
regionBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue region = 1;
*/
public Builder setRegion(
com.google.protobuf.StringValue.Builder builderForValue) {
if (regionBuilder_ == null) {
region_ = builderForValue.build();
onChanged();
} else {
regionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue region = 1;
*/
public Builder mergeRegion(com.google.protobuf.StringValue value) {
if (regionBuilder_ == null) {
if (region_ != null) {
region_ =
com.google.protobuf.StringValue.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
onChanged();
} else {
regionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue region = 1;
*/
public Builder clearRegion() {
if (regionBuilder_ == null) {
region_ = null;
onChanged();
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue region = 1;
*/
public com.google.protobuf.StringValue.Builder getRegionBuilder() {
onChanged();
return getRegionFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue region = 1;
*/
public com.google.protobuf.StringValueOrBuilder getRegionOrBuilder() {
if (regionBuilder_ != null) {
return regionBuilder_.getMessageOrBuilder();
} else {
return region_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : region_;
}
}
/**
* .google.protobuf.StringValue region = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getRegionFieldBuilder() {
if (regionBuilder_ == null) {
regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getRegion(),
getParentForChildren(),
isClean());
region_ = null;
}
return regionBuilder_;
}
private com.google.protobuf.StringValue zone_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> zoneBuilder_;
/**
* .google.protobuf.StringValue zone = 2;
* @return Whether the zone field is set.
*/
public boolean hasZone() {
return zoneBuilder_ != null || zone_ != null;
}
/**
* .google.protobuf.StringValue zone = 2;
* @return The zone.
*/
public com.google.protobuf.StringValue getZone() {
if (zoneBuilder_ == null) {
return zone_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : zone_;
} else {
return zoneBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue zone = 2;
*/
public Builder setZone(com.google.protobuf.StringValue value) {
if (zoneBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
zone_ = value;
onChanged();
} else {
zoneBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue zone = 2;
*/
public Builder setZone(
com.google.protobuf.StringValue.Builder builderForValue) {
if (zoneBuilder_ == null) {
zone_ = builderForValue.build();
onChanged();
} else {
zoneBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue zone = 2;
*/
public Builder mergeZone(com.google.protobuf.StringValue value) {
if (zoneBuilder_ == null) {
if (zone_ != null) {
zone_ =
com.google.protobuf.StringValue.newBuilder(zone_).mergeFrom(value).buildPartial();
} else {
zone_ = value;
}
onChanged();
} else {
zoneBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue zone = 2;
*/
public Builder clearZone() {
if (zoneBuilder_ == null) {
zone_ = null;
onChanged();
} else {
zone_ = null;
zoneBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue zone = 2;
*/
public com.google.protobuf.StringValue.Builder getZoneBuilder() {
onChanged();
return getZoneFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue zone = 2;
*/
public com.google.protobuf.StringValueOrBuilder getZoneOrBuilder() {
if (zoneBuilder_ != null) {
return zoneBuilder_.getMessageOrBuilder();
} else {
return zone_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : zone_;
}
}
/**
* .google.protobuf.StringValue zone = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getZoneFieldBuilder() {
if (zoneBuilder_ == null) {
zoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getZone(),
getParentForChildren(),
isClean());
zone_ = null;
}
return zoneBuilder_;
}
private com.google.protobuf.StringValue campus_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> campusBuilder_;
/**
* .google.protobuf.StringValue campus = 3;
* @return Whether the campus field is set.
*/
public boolean hasCampus() {
return campusBuilder_ != null || campus_ != null;
}
/**
* .google.protobuf.StringValue campus = 3;
* @return The campus.
*/
public com.google.protobuf.StringValue getCampus() {
if (campusBuilder_ == null) {
return campus_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campus_;
} else {
return campusBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue campus = 3;
*/
public Builder setCampus(com.google.protobuf.StringValue value) {
if (campusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
campus_ = value;
onChanged();
} else {
campusBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue campus = 3;
*/
public Builder setCampus(
com.google.protobuf.StringValue.Builder builderForValue) {
if (campusBuilder_ == null) {
campus_ = builderForValue.build();
onChanged();
} else {
campusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue campus = 3;
*/
public Builder mergeCampus(com.google.protobuf.StringValue value) {
if (campusBuilder_ == null) {
if (campus_ != null) {
campus_ =
com.google.protobuf.StringValue.newBuilder(campus_).mergeFrom(value).buildPartial();
} else {
campus_ = value;
}
onChanged();
} else {
campusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue campus = 3;
*/
public Builder clearCampus() {
if (campusBuilder_ == null) {
campus_ = null;
onChanged();
} else {
campus_ = null;
campusBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue campus = 3;
*/
public com.google.protobuf.StringValue.Builder getCampusBuilder() {
onChanged();
return getCampusFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue campus = 3;
*/
public com.google.protobuf.StringValueOrBuilder getCampusOrBuilder() {
if (campusBuilder_ != null) {
return campusBuilder_.getMessageOrBuilder();
} else {
return campus_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : campus_;
}
}
/**
* .google.protobuf.StringValue campus = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getCampusFieldBuilder() {
if (campusBuilder_ == null) {
campusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getCampus(),
getParentForChildren(),
isClean());
campus_ = null;
}
return campusBuilder_;
}
@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.Location)
}
// @@protoc_insertion_point(class_scope:v1.Location)
private static final com.tencent.polaris.specification.api.v1.model.ModelProto.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.model.ModelProto.Location();
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Location 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.model.ModelProto.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MatchStringOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.MatchString)
com.google.protobuf.MessageOrBuilder {
/**
* .v1.MatchString.MatchStringType type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .v1.MatchString.MatchStringType type = 1;
* @return The type.
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType getType();
/**
* .google.protobuf.StringValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .google.protobuf.StringValue value = 2;
* @return The value.
*/
com.google.protobuf.StringValue getValue();
/**
* .google.protobuf.StringValue value = 2;
*/
com.google.protobuf.StringValueOrBuilder getValueOrBuilder();
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return The enum numeric value on the wire for valueType.
*/
int getValueTypeValue();
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return The valueType.
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType getValueType();
}
/**
* Protobuf type {@code v1.MatchString}
*/
public static final class MatchString extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.MatchString)
MatchStringOrBuilder {
private static final long serialVersionUID = 0L;
// Use MatchString.newBuilder() to construct.
private MatchString(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MatchString() {
type_ = 0;
valueType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MatchString();
}
@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.model.ModelProto.internal_static_v1_MatchString_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_MatchString_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.class, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder.class);
}
/**
* Protobuf enum {@code v1.MatchString.MatchStringType}
*/
public enum MatchStringType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Equivalent match
*
*
* EXACT = 0;
*/
EXACT(0),
/**
*
* Regular match
*
*
* REGEX = 1;
*/
REGEX(1),
/**
*
* Not equals match
*
*
* NOT_EQUALS = 2;
*/
NOT_EQUALS(2),
/**
*
* Include match
*
*
* IN = 3;
*/
IN(3),
/**
*
* Not include match
*
*
* NOT_IN = 4;
*/
NOT_IN(4),
/**
*
* Range match
*
*
* RANGE = 5;
*/
RANGE(5),
UNRECOGNIZED(-1),
;
/**
*
* Equivalent match
*
*
* EXACT = 0;
*/
public static final int EXACT_VALUE = 0;
/**
*
* Regular match
*
*
* REGEX = 1;
*/
public static final int REGEX_VALUE = 1;
/**
*
* Not equals match
*
*
* NOT_EQUALS = 2;
*/
public static final int NOT_EQUALS_VALUE = 2;
/**
*
* Include match
*
*
* IN = 3;
*/
public static final int IN_VALUE = 3;
/**
*
* Not include match
*
*
* NOT_IN = 4;
*/
public static final int NOT_IN_VALUE = 4;
/**
*
* Range match
*
*
* RANGE = 5;
*/
public static final int RANGE_VALUE = 5;
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 MatchStringType 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 MatchStringType forNumber(int value) {
switch (value) {
case 0: return EXACT;
case 1: return REGEX;
case 2: return NOT_EQUALS;
case 3: return IN;
case 4: return NOT_IN;
case 5: return RANGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MatchStringType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MatchStringType findValueByNumber(int number) {
return MatchStringType.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.model.ModelProto.MatchString.getDescriptor().getEnumTypes().get(0);
}
private static final MatchStringType[] VALUES = values();
public static MatchStringType 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 MatchStringType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:v1.MatchString.MatchStringType)
}
/**
* Protobuf enum {@code v1.MatchString.ValueType}
*/
public enum ValueType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TEXT = 0;
*/
TEXT(0),
/**
* PARAMETER = 1;
*/
PARAMETER(1),
/**
* VARIABLE = 2;
*/
VARIABLE(2),
UNRECOGNIZED(-1),
;
/**
* TEXT = 0;
*/
public static final int TEXT_VALUE = 0;
/**
* PARAMETER = 1;
*/
public static final int PARAMETER_VALUE = 1;
/**
* VARIABLE = 2;
*/
public static final int VARIABLE_VALUE = 2;
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 ValueType 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 ValueType forNumber(int value) {
switch (value) {
case 0: return TEXT;
case 1: return PARAMETER;
case 2: return VARIABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ValueType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ValueType findValueByNumber(int number) {
return ValueType.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.model.ModelProto.MatchString.getDescriptor().getEnumTypes().get(1);
}
private static final ValueType[] VALUES = values();
public static ValueType 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 ValueType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:v1.MatchString.ValueType)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .v1.MatchString.MatchStringType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .v1.MatchString.MatchStringType type = 1;
* @return The type.
*/
@java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType getType() {
@SuppressWarnings("deprecation")
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType result = com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType.valueOf(type_);
return result == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue value_;
/**
* .google.protobuf.StringValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
* .google.protobuf.StringValue value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.StringValue getValue() {
return value_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : value_;
}
/**
* .google.protobuf.StringValue value = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getValueOrBuilder() {
return getValue();
}
public static final int VALUE_TYPE_FIELD_NUMBER = 3;
private int valueType_;
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return The enum numeric value on the wire for valueType.
*/
@java.lang.Override public int getValueTypeValue() {
return valueType_;
}
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return The valueType.
*/
@java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType getValueType() {
@SuppressWarnings("deprecation")
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType result = com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType.valueOf(valueType_);
return result == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType.UNRECOGNIZED : result;
}
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 (type_ != com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType.EXACT.getNumber()) {
output.writeEnum(1, type_);
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
if (valueType_ != com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType.TEXT.getNumber()) {
output.writeEnum(3, valueType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType.EXACT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
if (valueType_ != com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType.TEXT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, valueType_);
}
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.model.ModelProto.MatchString)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString other = (com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString) obj;
if (type_ != other.type_) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (valueType_ != other.valueType_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + valueType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString 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.model.ModelProto.MatchString parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString 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.model.ModelProto.MatchString parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.model.ModelProto.MatchString 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.MatchString}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.MatchString)
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_MatchString_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_MatchString_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.class, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
valueType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_MatchString_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString build() {
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString buildPartial() {
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString result = new com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString(this);
result.type_ = type_;
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
result.valueType_ = valueType_;
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.model.ModelProto.MatchString) {
return mergeFrom((com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString other) {
if (other == com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
if (other.valueType_ != 0) {
setValueTypeValue(other.getValueTypeValue());
}
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 8: {
type_ = input.readEnum();
break;
} // case 8
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 24: {
valueType_ = input.readEnum();
break;
} // case 24
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 type_ = 0;
/**
* .v1.MatchString.MatchStringType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .v1.MatchString.MatchStringType type = 1;
* @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.MatchString.MatchStringType type = 1;
* @return The type.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType getType() {
@SuppressWarnings("deprecation")
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType result = com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType.valueOf(type_);
return result == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType.UNRECOGNIZED : result;
}
/**
* .v1.MatchString.MatchStringType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.MatchStringType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .v1.MatchString.MatchStringType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.StringValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valueBuilder_;
/**
* .google.protobuf.StringValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .google.protobuf.StringValue value = 2;
* @return The value.
*/
public com.google.protobuf.StringValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue value = 2;
*/
public Builder setValue(com.google.protobuf.StringValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue value = 2;
*/
public Builder setValue(
com.google.protobuf.StringValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue value = 2;
*/
public Builder mergeValue(com.google.protobuf.StringValue value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
com.google.protobuf.StringValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue value = 2;
*/
public com.google.protobuf.StringValue.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue value = 2;
*/
public com.google.protobuf.StringValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : value_;
}
}
/**
* .google.protobuf.StringValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
private int valueType_ = 0;
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return The enum numeric value on the wire for valueType.
*/
@java.lang.Override public int getValueTypeValue() {
return valueType_;
}
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @param value The enum numeric value on the wire for valueType to set.
* @return This builder for chaining.
*/
public Builder setValueTypeValue(int value) {
valueType_ = value;
onChanged();
return this;
}
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return The valueType.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType getValueType() {
@SuppressWarnings("deprecation")
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType result = com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType.valueOf(valueType_);
return result == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType.UNRECOGNIZED : result;
}
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @param value The valueType to set.
* @return This builder for chaining.
*/
public Builder setValueType(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.ValueType value) {
if (value == null) {
throw new NullPointerException();
}
valueType_ = value.getNumber();
onChanged();
return this;
}
/**
* .v1.MatchString.ValueType value_type = 3 [json_name = "value_type"];
* @return This builder for chaining.
*/
public Builder clearValueType() {
valueType_ = 0;
onChanged();
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.MatchString)
}
// @@protoc_insertion_point(class_scope:v1.MatchString)
private static final com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString();
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MatchString 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.model.ModelProto.MatchString getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringListOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.StringList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string values = 1;
* @return A list containing the values.
*/
java.util.List
getValuesList();
/**
* repeated string values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
com.google.protobuf.ByteString
getValuesBytes(int index);
}
/**
* Protobuf type {@code v1.StringList}
*/
public static final class StringList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.StringList)
StringListOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringList.newBuilder() to construct.
private StringList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringList() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StringList();
}
@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.model.ModelProto.internal_static_v1_StringList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_StringList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.class, com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList values_;
/**
* repeated string values = 1;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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.model.ModelProto.StringList)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList other = (com.tencent.polaris.specification.api.v1.model.ModelProto.StringList) obj;
if (!getValuesList()
.equals(other.getValuesList())) 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 (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.StringList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.StringList 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.model.ModelProto.StringList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.StringList 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.model.ModelProto.StringList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.StringList 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.model.ModelProto.StringList 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.model.ModelProto.StringList 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.model.ModelProto.StringList 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.model.ModelProto.StringList 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.model.ModelProto.StringList 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.model.ModelProto.StringList 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.model.ModelProto.StringList 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.StringList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.StringList)
com.tencent.polaris.specification.api.v1.model.ModelProto.StringListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_StringList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_StringList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.class, com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_StringList_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList build() {
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.StringList buildPartial() {
com.tencent.polaris.specification.api.v1.model.ModelProto.StringList result = new com.tencent.polaris.specification.api.v1.model.ModelProto.StringList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
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.model.ModelProto.StringList) {
return mergeFrom((com.tencent.polaris.specification.api.v1.model.ModelProto.StringList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.model.ModelProto.StringList other) {
if (other == com.tencent.polaris.specification.api.v1.model.ModelProto.StringList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureValuesIsMutable();
values_.add(s);
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.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string values = 1;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
* repeated string values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @param value The bytes of the values to add.
* @return This builder for chaining.
*/
public Builder addValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValuesIsMutable();
values_.add(value);
onChanged();
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.StringList)
}
// @@protoc_insertion_point(class_scope:v1.StringList)
private static final com.tencent.polaris.specification.api.v1.model.ModelProto.StringList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.model.ModelProto.StringList();
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.StringList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StringList 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.model.ModelProto.StringList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SummaryOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.Summary)
com.google.protobuf.MessageOrBuilder {
/**
*
* 服务总数
*
*
* uint32 total_service_count = 1 [json_name = "total_service_count"];
* @return The totalServiceCount.
*/
int getTotalServiceCount();
/**
*
* 健康实例总数
*
*
* uint32 total_health_instance_count = 2 [json_name = "total_health_instance_count"];
* @return The totalHealthInstanceCount.
*/
int getTotalHealthInstanceCount();
/**
*
* 实例总数
*
*
* uint32 total_instance_count = 3 [json_name = "total_instance_count"];
* @return The totalInstanceCount.
*/
int getTotalInstanceCount();
}
/**
*
* 汇总查询数据
*
*
* Protobuf type {@code v1.Summary}
*/
public static final class Summary extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.Summary)
SummaryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Summary.newBuilder() to construct.
private Summary(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Summary() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Summary();
}
@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.model.ModelProto.internal_static_v1_Summary_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Summary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.class, com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder.class);
}
public static final int TOTAL_SERVICE_COUNT_FIELD_NUMBER = 1;
private int totalServiceCount_;
/**
*
* 服务总数
*
*
* uint32 total_service_count = 1 [json_name = "total_service_count"];
* @return The totalServiceCount.
*/
@java.lang.Override
public int getTotalServiceCount() {
return totalServiceCount_;
}
public static final int TOTAL_HEALTH_INSTANCE_COUNT_FIELD_NUMBER = 2;
private int totalHealthInstanceCount_;
/**
*
* 健康实例总数
*
*
* uint32 total_health_instance_count = 2 [json_name = "total_health_instance_count"];
* @return The totalHealthInstanceCount.
*/
@java.lang.Override
public int getTotalHealthInstanceCount() {
return totalHealthInstanceCount_;
}
public static final int TOTAL_INSTANCE_COUNT_FIELD_NUMBER = 3;
private int totalInstanceCount_;
/**
*
* 实例总数
*
*
* uint32 total_instance_count = 3 [json_name = "total_instance_count"];
* @return The totalInstanceCount.
*/
@java.lang.Override
public int getTotalInstanceCount() {
return totalInstanceCount_;
}
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 (totalServiceCount_ != 0) {
output.writeUInt32(1, totalServiceCount_);
}
if (totalHealthInstanceCount_ != 0) {
output.writeUInt32(2, totalHealthInstanceCount_);
}
if (totalInstanceCount_ != 0) {
output.writeUInt32(3, totalInstanceCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (totalServiceCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, totalServiceCount_);
}
if (totalHealthInstanceCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, totalHealthInstanceCount_);
}
if (totalInstanceCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, totalInstanceCount_);
}
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.model.ModelProto.Summary)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary other = (com.tencent.polaris.specification.api.v1.model.ModelProto.Summary) obj;
if (getTotalServiceCount()
!= other.getTotalServiceCount()) return false;
if (getTotalHealthInstanceCount()
!= other.getTotalHealthInstanceCount()) return false;
if (getTotalInstanceCount()
!= other.getTotalInstanceCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TOTAL_SERVICE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalServiceCount();
hash = (37 * hash) + TOTAL_HEALTH_INSTANCE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalHealthInstanceCount();
hash = (37 * hash) + TOTAL_INSTANCE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalInstanceCount();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Summary parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Summary 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.model.ModelProto.Summary parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Summary 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.model.ModelProto.Summary parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Summary 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.model.ModelProto.Summary 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.model.ModelProto.Summary 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.model.ModelProto.Summary 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.model.ModelProto.Summary 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.model.ModelProto.Summary 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.model.ModelProto.Summary 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.model.ModelProto.Summary 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.Summary}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.Summary)
com.tencent.polaris.specification.api.v1.model.ModelProto.SummaryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Summary_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Summary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.class, com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
totalServiceCount_ = 0;
totalHealthInstanceCount_ = 0;
totalInstanceCount_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_Summary_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Summary getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Summary build() {
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.Summary buildPartial() {
com.tencent.polaris.specification.api.v1.model.ModelProto.Summary result = new com.tencent.polaris.specification.api.v1.model.ModelProto.Summary(this);
result.totalServiceCount_ = totalServiceCount_;
result.totalHealthInstanceCount_ = totalHealthInstanceCount_;
result.totalInstanceCount_ = totalInstanceCount_;
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.model.ModelProto.Summary) {
return mergeFrom((com.tencent.polaris.specification.api.v1.model.ModelProto.Summary)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.model.ModelProto.Summary other) {
if (other == com.tencent.polaris.specification.api.v1.model.ModelProto.Summary.getDefaultInstance()) return this;
if (other.getTotalServiceCount() != 0) {
setTotalServiceCount(other.getTotalServiceCount());
}
if (other.getTotalHealthInstanceCount() != 0) {
setTotalHealthInstanceCount(other.getTotalHealthInstanceCount());
}
if (other.getTotalInstanceCount() != 0) {
setTotalInstanceCount(other.getTotalInstanceCount());
}
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 8: {
totalServiceCount_ = input.readUInt32();
break;
} // case 8
case 16: {
totalHealthInstanceCount_ = input.readUInt32();
break;
} // case 16
case 24: {
totalInstanceCount_ = input.readUInt32();
break;
} // case 24
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 totalServiceCount_ ;
/**
*
* 服务总数
*
*
* uint32 total_service_count = 1 [json_name = "total_service_count"];
* @return The totalServiceCount.
*/
@java.lang.Override
public int getTotalServiceCount() {
return totalServiceCount_;
}
/**
*
* 服务总数
*
*
* uint32 total_service_count = 1 [json_name = "total_service_count"];
* @param value The totalServiceCount to set.
* @return This builder for chaining.
*/
public Builder setTotalServiceCount(int value) {
totalServiceCount_ = value;
onChanged();
return this;
}
/**
*
* 服务总数
*
*
* uint32 total_service_count = 1 [json_name = "total_service_count"];
* @return This builder for chaining.
*/
public Builder clearTotalServiceCount() {
totalServiceCount_ = 0;
onChanged();
return this;
}
private int totalHealthInstanceCount_ ;
/**
*
* 健康实例总数
*
*
* uint32 total_health_instance_count = 2 [json_name = "total_health_instance_count"];
* @return The totalHealthInstanceCount.
*/
@java.lang.Override
public int getTotalHealthInstanceCount() {
return totalHealthInstanceCount_;
}
/**
*
* 健康实例总数
*
*
* uint32 total_health_instance_count = 2 [json_name = "total_health_instance_count"];
* @param value The totalHealthInstanceCount to set.
* @return This builder for chaining.
*/
public Builder setTotalHealthInstanceCount(int value) {
totalHealthInstanceCount_ = value;
onChanged();
return this;
}
/**
*
* 健康实例总数
*
*
* uint32 total_health_instance_count = 2 [json_name = "total_health_instance_count"];
* @return This builder for chaining.
*/
public Builder clearTotalHealthInstanceCount() {
totalHealthInstanceCount_ = 0;
onChanged();
return this;
}
private int totalInstanceCount_ ;
/**
*
* 实例总数
*
*
* uint32 total_instance_count = 3 [json_name = "total_instance_count"];
* @return The totalInstanceCount.
*/
@java.lang.Override
public int getTotalInstanceCount() {
return totalInstanceCount_;
}
/**
*
* 实例总数
*
*
* uint32 total_instance_count = 3 [json_name = "total_instance_count"];
* @param value The totalInstanceCount to set.
* @return This builder for chaining.
*/
public Builder setTotalInstanceCount(int value) {
totalInstanceCount_ = value;
onChanged();
return this;
}
/**
*
* 实例总数
*
*
* uint32 total_instance_count = 3 [json_name = "total_instance_count"];
* @return This builder for chaining.
*/
public Builder clearTotalInstanceCount() {
totalInstanceCount_ = 0;
onChanged();
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.Summary)
}
// @@protoc_insertion_point(class_scope:v1.Summary)
private static final com.tencent.polaris.specification.api.v1.model.ModelProto.Summary DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.model.ModelProto.Summary();
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.Summary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Summary 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.model.ModelProto.Summary getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientLabelOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.ClientLabel)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* .v1.MatchString value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .v1.MatchString value = 2;
* @return The value.
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getValue();
/**
* .v1.MatchString value = 2;
*/
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code v1.ClientLabel}
*/
public static final class ClientLabel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.ClientLabel)
ClientLabelOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientLabel.newBuilder() to construct.
private ClientLabel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientLabel() {
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientLabel();
}
@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.model.ModelProto.internal_static_v1_ClientLabel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_ClientLabel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.class, com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value_;
/**
* .v1.MatchString value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
* .v1.MatchString value = 2;
* @return The value.
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getValue() {
return value_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance() : value_;
}
/**
* .v1.MatchString value = 2;
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
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.model.ModelProto.ClientLabel)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel other = (com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.model.ModelProto.ClientLabel 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.ClientLabel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.ClientLabel)
com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_ClientLabel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_ClientLabel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.class, com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.internal_static_v1_ClientLabel_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel build() {
com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel buildPartial() {
com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel result = new com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel(this);
result.key_ = key_;
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.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.model.ModelProto.ClientLabel) {
return mergeFrom((com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel other) {
if (other == com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
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: {
key_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value_;
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder> valueBuilder_;
/**
* .v1.MatchString value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .v1.MatchString value = 2;
* @return The value.
*/
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .v1.MatchString value = 2;
*/
public Builder setValue(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.MatchString value = 2;
*/
public Builder setValue(
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.MatchString value = 2;
*/
public Builder mergeValue(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.MatchString value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .v1.MatchString value = 2;
*/
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .v1.MatchString value = 2;
*/
public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance() : value_;
}
}
/**
* .v1.MatchString value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@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.ClientLabel)
}
// @@protoc_insertion_point(class_scope:v1.ClientLabel)
private static final com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel();
}
public static com.tencent.polaris.specification.api.v1.model.ModelProto.ClientLabel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientLabel 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.model.ModelProto.ClientLabel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_Location_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_Location_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_MatchString_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_MatchString_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_StringList_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_StringList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_Summary_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_Summary_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_ClientLabel_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_ClientLabel_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\013model.proto\022\002v1\032\036google/protobuf/wrapp" +
"ers.proto\"\222\001\n\010Location\022,\n\006region\030\001 \001(\0132\034" +
".google.protobuf.StringValue\022*\n\004zone\030\002 \001" +
"(\0132\034.google.protobuf.StringValue\022,\n\006camp" +
"us\030\003 \001(\0132\034.google.protobuf.StringValue\"\260" +
"\002\n\013MatchString\022-\n\004type\030\001 \001(\0162\037.v1.MatchS" +
"tring.MatchStringType\022+\n\005value\030\002 \001(\0132\034.g" +
"oogle.protobuf.StringValue\0229\n\nvalue_type" +
"\030\003 \001(\0162\031.v1.MatchString.ValueTypeR\nvalue" +
"_type\"V\n\017MatchStringType\022\t\n\005EXACT\020\000\022\t\n\005R" +
"EGEX\020\001\022\016\n\nNOT_EQUALS\020\002\022\006\n\002IN\020\003\022\n\n\006NOT_IN" +
"\020\004\022\t\n\005RANGE\020\005\"2\n\tValueType\022\010\n\004TEXT\020\000\022\r\n\t" +
"PARAMETER\020\001\022\014\n\010VARIABLE\020\002\"\034\n\nStringList\022" +
"\016\n\006values\030\001 \003(\t\"\261\001\n\007Summary\0220\n\023total_ser" +
"vice_count\030\001 \001(\rR\023total_service_count\022@\n" +
"\033total_health_instance_count\030\002 \001(\rR\033tota" +
"l_health_instance_count\0222\n\024total_instanc" +
"e_count\030\003 \001(\rR\024total_instance_count\":\n\013C" +
"lientLabel\022\013\n\003key\030\001 \001(\t\022\036\n\005value\030\002 \001(\0132\017" +
".v1.MatchStringBy\n.com.tencent.polaris.s" +
"pecification.api.v1.modelB\nModelProtoZ;g" +
"ithub.com/polarismesh/specification/sour" +
"ce/go/api/v1/modelb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.WrappersProto.getDescriptor(),
});
internal_static_v1_Location_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_v1_Location_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_Location_descriptor,
new java.lang.String[] { "Region", "Zone", "Campus", });
internal_static_v1_MatchString_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_v1_MatchString_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_MatchString_descriptor,
new java.lang.String[] { "Type", "Value", "ValueType", });
internal_static_v1_StringList_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_v1_StringList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_StringList_descriptor,
new java.lang.String[] { "Values", });
internal_static_v1_Summary_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_v1_Summary_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_Summary_descriptor,
new java.lang.String[] { "TotalServiceCount", "TotalHealthInstanceCount", "TotalInstanceCount", });
internal_static_v1_ClientLabel_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_v1_ClientLabel_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_ClientLabel_descriptor,
new java.lang.String[] { "Key", "Value", });
com.google.protobuf.WrappersProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy