From 81a0af4fdb2cef413e0c93ad978bd07688d9ca2f Mon Sep 17 00:00:00 2001 From: lennon310 Date: Mon, 28 Oct 2019 17:39:58 -0400 Subject: [PATCH] Delete DeploymentProtos.java --- .../io/seldon/protos/DeploymentProtos.java | 19319 ---------------- 1 file changed, 19319 deletions(-) delete mode 100644 engine/src/main/proto/io/seldon/protos/DeploymentProtos.java diff --git a/engine/src/main/proto/io/seldon/protos/DeploymentProtos.java b/engine/src/main/proto/io/seldon/protos/DeploymentProtos.java deleted file mode 100644 index ed54af092a..0000000000 --- a/engine/src/main/proto/io/seldon/protos/DeploymentProtos.java +++ /dev/null @@ -1,19319 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: seldon_deployment.proto - -package io.seldon.protos; - -public final class DeploymentProtos { - private DeploymentProtos() {} - 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 SeldonDeploymentOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.SeldonDeployment) - com.google.protobuf.MessageOrBuilder { - - /** - * required string apiVersion = 1; - */ - boolean hasApiVersion(); - /** - * required string apiVersion = 1; - */ - java.lang.String getApiVersion(); - /** - * required string apiVersion = 1; - */ - com.google.protobuf.ByteString - getApiVersionBytes(); - - /** - * required string kind = 2; - */ - boolean hasKind(); - /** - * required string kind = 2; - */ - java.lang.String getKind(); - /** - * required string kind = 2; - */ - com.google.protobuf.ByteString - getKindBytes(); - - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - boolean hasMetadata(); - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); - - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - boolean hasSpec(); - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - io.seldon.protos.DeploymentProtos.DeploymentSpec getSpec(); - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder getSpecOrBuilder(); - - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - boolean hasStatus(); - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - io.seldon.protos.DeploymentProtos.DeploymentStatus getStatus(); - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder getStatusOrBuilder(); - } - /** - * Protobuf type {@code seldon.protos.SeldonDeployment} - */ - public static final class SeldonDeployment extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.SeldonDeployment) - SeldonDeploymentOrBuilder { - private static final long serialVersionUID = 0L; - // Use SeldonDeployment.newBuilder() to construct. - private SeldonDeployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SeldonDeployment() { - apiVersion_ = ""; - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SeldonDeployment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SeldonDeployment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - apiVersion_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - kind_ = bs; - break; - } - case 26: { - io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) != 0)) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(io.seldon.protos.DeploymentProtos.DeploymentSpec.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) != 0)) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(io.seldon.protos.DeploymentProtos.DeploymentStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonDeployment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonDeployment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SeldonDeployment.class, io.seldon.protos.DeploymentProtos.SeldonDeployment.Builder.class); - } - - private int bitField0_; - public static final int APIVERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object apiVersion_; - /** - * required string apiVersion = 1; - */ - public boolean hasApiVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string apiVersion = 1; - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - 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(); - if (bs.isValidUtf8()) { - apiVersion_ = s; - } - return s; - } - } - /** - * required string apiVersion = 1; - */ - public com.google.protobuf.ByteString - getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 2; - private volatile java.lang.Object kind_; - /** - * required string kind = 2; - */ - public boolean hasKind() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string kind = 2; - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - 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(); - if (bs.isValidUtf8()) { - kind_ = s; - } - return s; - } - } - /** - * required string kind = 2; - */ - public com.google.protobuf.ByteString - getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - - public static final int SPEC_FIELD_NUMBER = 4; - private io.seldon.protos.DeploymentProtos.DeploymentSpec spec_; - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public boolean hasSpec() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public io.seldon.protos.DeploymentProtos.DeploymentSpec getSpec() { - return spec_ == null ? io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance() : spec_; - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder getSpecOrBuilder() { - return spec_ == null ? io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance() : spec_; - } - - public static final int STATUS_FIELD_NUMBER = 5; - private io.seldon.protos.DeploymentProtos.DeploymentStatus status_; - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public io.seldon.protos.DeploymentProtos.DeploymentStatus getStatus() { - return status_ == null ? io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance() : status_; - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder getStatusOrBuilder() { - return status_ == null ? io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance() : status_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasApiVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasKind()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasSpec()) { - memoizedIsInitialized = 0; - return false; - } - if (!getSpec().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - if (hasStatus()) { - if (!getStatus().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getMetadata()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getSpec()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(5, getStatus()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStatus()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.SeldonDeployment)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.SeldonDeployment other = (io.seldon.protos.DeploymentProtos.SeldonDeployment) obj; - - if (hasApiVersion() != other.hasApiVersion()) return false; - if (hasApiVersion()) { - if (!getApiVersion() - .equals(other.getApiVersion())) return false; - } - if (hasKind() != other.hasKind()) return false; - if (hasKind()) { - if (!getKind() - .equals(other.getKind())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasApiVersion()) { - hash = (37 * hash) + APIVERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); - } - if (hasKind()) { - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment 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 io.seldon.protos.DeploymentProtos.SeldonDeployment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment 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 io.seldon.protos.DeploymentProtos.SeldonDeployment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonDeployment 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(io.seldon.protos.DeploymentProtos.SeldonDeployment 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 seldon.protos.SeldonDeployment} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.SeldonDeployment) - io.seldon.protos.DeploymentProtos.SeldonDeploymentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonDeployment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonDeployment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SeldonDeployment.class, io.seldon.protos.DeploymentProtos.SeldonDeployment.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.SeldonDeployment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - getSpecFieldBuilder(); - getStatusFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - apiVersion_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - kind_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (specBuilder_ == null) { - spec_ = null; - } else { - specBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (statusBuilder_ == null) { - status_ = null; - } else { - statusBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonDeployment_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonDeployment getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.SeldonDeployment.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonDeployment build() { - io.seldon.protos.DeploymentProtos.SeldonDeployment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonDeployment buildPartial() { - io.seldon.protos.DeploymentProtos.SeldonDeployment result = new io.seldon.protos.DeploymentProtos.SeldonDeployment(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.apiVersion_ = apiVersion_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.kind_ = kind_; - if (((from_bitField0_ & 0x00000004) != 0)) { - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - to_bitField0_ |= 0x00000010; - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.SeldonDeployment) { - return mergeFrom((io.seldon.protos.DeploymentProtos.SeldonDeployment)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.SeldonDeployment other) { - if (other == io.seldon.protos.DeploymentProtos.SeldonDeployment.getDefaultInstance()) return this; - if (other.hasApiVersion()) { - bitField0_ |= 0x00000001; - apiVersion_ = other.apiVersion_; - onChanged(); - } - if (other.hasKind()) { - bitField0_ |= 0x00000002; - kind_ = other.kind_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasApiVersion()) { - return false; - } - if (!hasKind()) { - return false; - } - if (!hasSpec()) { - return false; - } - if (!getSpec().isInitialized()) { - return false; - } - if (hasStatus()) { - if (!getStatus().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.SeldonDeployment parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.SeldonDeployment) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object apiVersion_ = ""; - /** - * required string apiVersion = 1; - */ - public boolean hasApiVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string apiVersion = 1; - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - apiVersion_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string apiVersion = 1; - */ - public com.google.protobuf.ByteString - getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string apiVersion = 1; - */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - apiVersion_ = value; - onChanged(); - return this; - } - /** - * required string apiVersion = 1; - */ - public Builder clearApiVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - apiVersion_ = getDefaultInstance().getApiVersion(); - onChanged(); - return this; - } - /** - * required string apiVersion = 1; - */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - apiVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object kind_ = ""; - /** - * required string kind = 2; - */ - public boolean hasKind() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string kind = 2; - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - kind_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string kind = 2; - */ - public com.google.protobuf.ByteString - getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string kind = 2; - */ - public Builder setKind( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - kind_ = value; - onChanged(); - return this; - } - /** - * required string kind = 2; - */ - public Builder clearKind() { - bitField0_ = (bitField0_ & ~0x00000002); - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - * required string kind = 2; - */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - kind_ = value; - onChanged(); - return this; - } - - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public Builder setMetadata( - io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - metadata_ != null && - metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { - metadata_ = - io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private io.seldon.protos.DeploymentProtos.DeploymentSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.DeploymentSpec, io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder, io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder> specBuilder_; - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public boolean hasSpec() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public io.seldon.protos.DeploymentProtos.DeploymentSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public Builder setSpec(io.seldon.protos.DeploymentProtos.DeploymentSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public Builder setSpec( - io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public Builder mergeSpec(io.seldon.protos.DeploymentProtos.DeploymentSpec value) { - if (specBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - spec_ != null && - spec_ != io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance()) { - spec_ = - io.seldon.protos.DeploymentProtos.DeploymentSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - specBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder getSpecBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - public io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance() : spec_; - } - } - /** - * required .seldon.protos.DeploymentSpec spec = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.DeploymentSpec, io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder, io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.DeploymentSpec, io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder, io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private io.seldon.protos.DeploymentProtos.DeploymentStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.DeploymentStatus, io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder, io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder> statusBuilder_; - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public io.seldon.protos.DeploymentProtos.DeploymentStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance() : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public Builder setStatus(io.seldon.protos.DeploymentProtos.DeploymentStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public Builder setStatus( - io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public Builder mergeStatus(io.seldon.protos.DeploymentProtos.DeploymentStatus value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - status_ != null && - status_ != io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance()) { - status_ = - io.seldon.protos.DeploymentProtos.DeploymentStatus.newBuilder(status_).mergeFrom(value).buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - statusBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - public io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null ? - io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance() : status_; - } - } - /** - * optional .seldon.protos.DeploymentStatus status = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.DeploymentStatus, io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder, io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.DeploymentStatus, io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder, io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); - status_ = null; - } - return statusBuilder_; - } - @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:seldon.protos.SeldonDeployment) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.SeldonDeployment) - private static final io.seldon.protos.DeploymentProtos.SeldonDeployment DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.SeldonDeployment(); - } - - public static io.seldon.protos.DeploymentProtos.SeldonDeployment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeldonDeployment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SeldonDeployment(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonDeployment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeploymentStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.DeploymentStatus) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A short status value for the deployment.
-     * 
- * - * optional string state = 1; - */ - boolean hasState(); - /** - *
-     * A short status value for the deployment.
-     * 
- * - * optional string state = 1; - */ - java.lang.String getState(); - /** - *
-     * A short status value for the deployment.
-     * 
- * - * optional string state = 1; - */ - com.google.protobuf.ByteString - getStateBytes(); - - /** - *
-     * A longer description describing the current state.
-     * 
- * - * optional string description = 2; - */ - boolean hasDescription(); - /** - *
-     * A longer description describing the current state.
-     * 
- * - * optional string description = 2; - */ - java.lang.String getDescription(); - /** - *
-     * A longer description describing the current state.
-     * 
- * - * optional string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - java.util.List - getPredictorStatusList(); - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - io.seldon.protos.DeploymentProtos.PredictorStatus getPredictorStatus(int index); - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - int getPredictorStatusCount(); - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - java.util.List - getPredictorStatusOrBuilderList(); - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder getPredictorStatusOrBuilder( - int index); - } - /** - *
-   **
-   * Status for seldon deployment
-   * 
- * - * Protobuf type {@code seldon.protos.DeploymentStatus} - */ - public static final class DeploymentStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.DeploymentStatus) - DeploymentStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeploymentStatus.newBuilder() to construct. - private DeploymentStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeploymentStatus() { - state_ = ""; - description_ = ""; - predictorStatus_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeploymentStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeploymentStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - state_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - description_ = bs; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - predictorStatus_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - predictorStatus_.add( - input.readMessage(io.seldon.protos.DeploymentProtos.PredictorStatus.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - predictorStatus_ = java.util.Collections.unmodifiableList(predictorStatus_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.DeploymentStatus.class, io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder.class); - } - - private int bitField0_; - public static final int STATE_FIELD_NUMBER = 1; - private volatile java.lang.Object state_; - /** - *
-     * A short status value for the deployment.
-     * 
- * - * optional string state = 1; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * A short status value for the deployment.
-     * 
- * - * optional string state = 1; - */ - public java.lang.String getState() { - java.lang.Object ref = state_; - 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(); - if (bs.isValidUtf8()) { - state_ = s; - } - return s; - } - } - /** - *
-     * A short status value for the deployment.
-     * 
- * - * optional string state = 1; - */ - public com.google.protobuf.ByteString - getStateBytes() { - java.lang.Object ref = state_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - state_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-     * A longer description describing the current state.
-     * 
- * - * optional string description = 2; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * A longer description describing the current state.
-     * 
- * - * optional string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - *
-     * A longer description describing the current state.
-     * 
- * - * optional string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREDICTORSTATUS_FIELD_NUMBER = 3; - private java.util.List predictorStatus_; - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public java.util.List getPredictorStatusList() { - return predictorStatus_; - } - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public java.util.List - getPredictorStatusOrBuilderList() { - return predictorStatus_; - } - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public int getPredictorStatusCount() { - return predictorStatus_.size(); - } - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatus getPredictorStatus(int index) { - return predictorStatus_.get(index); - } - /** - *
-     * A list of individual statuses for each running predictor.
-     * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder getPredictorStatusOrBuilder( - int index) { - return predictorStatus_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getPredictorStatusCount(); i++) { - if (!getPredictorStatus(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, state_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - for (int i = 0; i < predictorStatus_.size(); i++) { - output.writeMessage(3, predictorStatus_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, state_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - for (int i = 0; i < predictorStatus_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, predictorStatus_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.DeploymentStatus)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.DeploymentStatus other = (io.seldon.protos.DeploymentProtos.DeploymentStatus) obj; - - if (hasState() != other.hasState()) return false; - if (hasState()) { - if (!getState() - .equals(other.getState())) return false; - } - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; - } - if (!getPredictorStatusList() - .equals(other.getPredictorStatusList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (getPredictorStatusCount() > 0) { - hash = (37 * hash) + PREDICTORSTATUS_FIELD_NUMBER; - hash = (53 * hash) + getPredictorStatusList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus 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 io.seldon.protos.DeploymentProtos.DeploymentStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus 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 io.seldon.protos.DeploymentProtos.DeploymentStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.DeploymentStatus 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(io.seldon.protos.DeploymentProtos.DeploymentStatus 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; - } - /** - *
-     **
-     * Status for seldon deployment
-     * 
- * - * Protobuf type {@code seldon.protos.DeploymentStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.DeploymentStatus) - io.seldon.protos.DeploymentProtos.DeploymentStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.DeploymentStatus.class, io.seldon.protos.DeploymentProtos.DeploymentStatus.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.DeploymentStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPredictorStatusFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (predictorStatusBuilder_ == null) { - predictorStatus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - predictorStatusBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentStatus_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentStatus getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentStatus build() { - io.seldon.protos.DeploymentProtos.DeploymentStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentStatus buildPartial() { - io.seldon.protos.DeploymentProtos.DeploymentStatus result = new io.seldon.protos.DeploymentProtos.DeploymentStatus(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.state_ = state_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.description_ = description_; - if (predictorStatusBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - predictorStatus_ = java.util.Collections.unmodifiableList(predictorStatus_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.predictorStatus_ = predictorStatus_; - } else { - result.predictorStatus_ = predictorStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.DeploymentStatus) { - return mergeFrom((io.seldon.protos.DeploymentProtos.DeploymentStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.DeploymentStatus other) { - if (other == io.seldon.protos.DeploymentProtos.DeploymentStatus.getDefaultInstance()) return this; - if (other.hasState()) { - bitField0_ |= 0x00000001; - state_ = other.state_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000002; - description_ = other.description_; - onChanged(); - } - if (predictorStatusBuilder_ == null) { - if (!other.predictorStatus_.isEmpty()) { - if (predictorStatus_.isEmpty()) { - predictorStatus_ = other.predictorStatus_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePredictorStatusIsMutable(); - predictorStatus_.addAll(other.predictorStatus_); - } - onChanged(); - } - } else { - if (!other.predictorStatus_.isEmpty()) { - if (predictorStatusBuilder_.isEmpty()) { - predictorStatusBuilder_.dispose(); - predictorStatusBuilder_ = null; - predictorStatus_ = other.predictorStatus_; - bitField0_ = (bitField0_ & ~0x00000004); - predictorStatusBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPredictorStatusFieldBuilder() : null; - } else { - predictorStatusBuilder_.addAllMessages(other.predictorStatus_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getPredictorStatusCount(); i++) { - if (!getPredictorStatus(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.DeploymentStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.DeploymentStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object state_ = ""; - /** - *
-       * A short status value for the deployment.
-       * 
- * - * optional string state = 1; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * A short status value for the deployment.
-       * 
- * - * optional string state = 1; - */ - public java.lang.String getState() { - java.lang.Object ref = state_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - state_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A short status value for the deployment.
-       * 
- * - * optional string state = 1; - */ - public com.google.protobuf.ByteString - getStateBytes() { - java.lang.Object ref = state_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - state_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A short status value for the deployment.
-       * 
- * - * optional string state = 1; - */ - public Builder setState( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value; - onChanged(); - return this; - } - /** - *
-       * A short status value for the deployment.
-       * 
- * - * optional string state = 1; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); - state_ = getDefaultInstance().getState(); - onChanged(); - return this; - } - /** - *
-       * A short status value for the deployment.
-       * 
- * - * optional string state = 1; - */ - public Builder setStateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * A longer description describing the current state.
-       * 
- * - * optional string description = 2; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * A longer description describing the current state.
-       * 
- * - * optional string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A longer description describing the current state.
-       * 
- * - * optional string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A longer description describing the current state.
-       * 
- * - * optional string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - /** - *
-       * A longer description describing the current state.
-       * 
- * - * optional string description = 2; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000002); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * A longer description describing the current state.
-       * 
- * - * optional string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - - private java.util.List predictorStatus_ = - java.util.Collections.emptyList(); - private void ensurePredictorStatusIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - predictorStatus_ = new java.util.ArrayList(predictorStatus_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictorStatus, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder, io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder> predictorStatusBuilder_; - - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public java.util.List getPredictorStatusList() { - if (predictorStatusBuilder_ == null) { - return java.util.Collections.unmodifiableList(predictorStatus_); - } else { - return predictorStatusBuilder_.getMessageList(); - } - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public int getPredictorStatusCount() { - if (predictorStatusBuilder_ == null) { - return predictorStatus_.size(); - } else { - return predictorStatusBuilder_.getCount(); - } - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatus getPredictorStatus(int index) { - if (predictorStatusBuilder_ == null) { - return predictorStatus_.get(index); - } else { - return predictorStatusBuilder_.getMessage(index); - } - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder setPredictorStatus( - int index, io.seldon.protos.DeploymentProtos.PredictorStatus value) { - if (predictorStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePredictorStatusIsMutable(); - predictorStatus_.set(index, value); - onChanged(); - } else { - predictorStatusBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder setPredictorStatus( - int index, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder builderForValue) { - if (predictorStatusBuilder_ == null) { - ensurePredictorStatusIsMutable(); - predictorStatus_.set(index, builderForValue.build()); - onChanged(); - } else { - predictorStatusBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder addPredictorStatus(io.seldon.protos.DeploymentProtos.PredictorStatus value) { - if (predictorStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePredictorStatusIsMutable(); - predictorStatus_.add(value); - onChanged(); - } else { - predictorStatusBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder addPredictorStatus( - int index, io.seldon.protos.DeploymentProtos.PredictorStatus value) { - if (predictorStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePredictorStatusIsMutable(); - predictorStatus_.add(index, value); - onChanged(); - } else { - predictorStatusBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder addPredictorStatus( - io.seldon.protos.DeploymentProtos.PredictorStatus.Builder builderForValue) { - if (predictorStatusBuilder_ == null) { - ensurePredictorStatusIsMutable(); - predictorStatus_.add(builderForValue.build()); - onChanged(); - } else { - predictorStatusBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder addPredictorStatus( - int index, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder builderForValue) { - if (predictorStatusBuilder_ == null) { - ensurePredictorStatusIsMutable(); - predictorStatus_.add(index, builderForValue.build()); - onChanged(); - } else { - predictorStatusBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder addAllPredictorStatus( - java.lang.Iterable values) { - if (predictorStatusBuilder_ == null) { - ensurePredictorStatusIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, predictorStatus_); - onChanged(); - } else { - predictorStatusBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder clearPredictorStatus() { - if (predictorStatusBuilder_ == null) { - predictorStatus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - predictorStatusBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public Builder removePredictorStatus(int index) { - if (predictorStatusBuilder_ == null) { - ensurePredictorStatusIsMutable(); - predictorStatus_.remove(index); - onChanged(); - } else { - predictorStatusBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatus.Builder getPredictorStatusBuilder( - int index) { - return getPredictorStatusFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder getPredictorStatusOrBuilder( - int index) { - if (predictorStatusBuilder_ == null) { - return predictorStatus_.get(index); } else { - return predictorStatusBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public java.util.List - getPredictorStatusOrBuilderList() { - if (predictorStatusBuilder_ != null) { - return predictorStatusBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(predictorStatus_); - } - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatus.Builder addPredictorStatusBuilder() { - return getPredictorStatusFieldBuilder().addBuilder( - io.seldon.protos.DeploymentProtos.PredictorStatus.getDefaultInstance()); - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictorStatus.Builder addPredictorStatusBuilder( - int index) { - return getPredictorStatusFieldBuilder().addBuilder( - index, io.seldon.protos.DeploymentProtos.PredictorStatus.getDefaultInstance()); - } - /** - *
-       * A list of individual statuses for each running predictor.
-       * 
- * - * repeated .seldon.protos.PredictorStatus predictorStatus = 3; - */ - public java.util.List - getPredictorStatusBuilderList() { - return getPredictorStatusFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictorStatus, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder, io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder> - getPredictorStatusFieldBuilder() { - if (predictorStatusBuilder_ == null) { - predictorStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictorStatus, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder, io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder>( - predictorStatus_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - predictorStatus_ = null; - } - return predictorStatusBuilder_; - } - @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:seldon.protos.DeploymentStatus) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.DeploymentStatus) - private static final io.seldon.protos.DeploymentProtos.DeploymentStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.DeploymentStatus(); - } - - public static io.seldon.protos.DeploymentProtos.DeploymentStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeploymentStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeploymentStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PredictorStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.PredictorStatus) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the predictor.
-     * 
- * - * required string name = 1; - */ - boolean hasName(); - /** - *
-     * The name of the predictor.
-     * 
- * - * required string name = 1; - */ - java.lang.String getName(); - /** - *
-     * The name of the predictor.
-     * 
- * - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * A short status value.
-     * 
- * - * optional string status = 2; - */ - boolean hasStatus(); - /** - *
-     * A short status value.
-     * 
- * - * optional string status = 2; - */ - java.lang.String getStatus(); - /** - *
-     * A short status value.
-     * 
- * - * optional string status = 2; - */ - com.google.protobuf.ByteString - getStatusBytes(); - - /** - *
-     * A longer description of the current status.
-     * 
- * - * optional string description = 3; - */ - boolean hasDescription(); - /** - *
-     * A longer description of the current status.
-     * 
- * - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - *
-     * A longer description of the current status.
-     * 
- * - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * The number of replicas requested.
-     * 
- * - * optional int32 replicas = 4; - */ - boolean hasReplicas(); - /** - *
-     * The number of replicas requested.
-     * 
- * - * optional int32 replicas = 4; - */ - int getReplicas(); - - /** - *
-     * The number of replicas available.
-     * 
- * - * optional int32 replicasAvailable = 5; - */ - boolean hasReplicasAvailable(); - /** - *
-     * The number of replicas available.
-     * 
- * - * optional int32 replicasAvailable = 5; - */ - int getReplicasAvailable(); - } - /** - * Protobuf type {@code seldon.protos.PredictorStatus} - */ - public static final class PredictorStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.PredictorStatus) - PredictorStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use PredictorStatus.newBuilder() to construct. - private PredictorStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PredictorStatus() { - name_ = ""; - status_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PredictorStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PredictorStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - status_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - replicas_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - replicasAvailable_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.PredictorStatus.class, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * The name of the predictor.
-     * 
- * - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The name of the predictor.
-     * 
- * - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - *
-     * The name of the predictor.
-     * 
- * - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private volatile java.lang.Object status_; - /** - *
-     * A short status value.
-     * 
- * - * optional string status = 2; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * A short status value.
-     * 
- * - * optional string status = 2; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - 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(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } - } - /** - *
-     * A short status value.
-     * 
- * - * optional string status = 2; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
-     * A longer description of the current status.
-     * 
- * - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * A longer description of the current status.
-     * 
- * - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - *
-     * A longer description of the current status.
-     * 
- * - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPLICAS_FIELD_NUMBER = 4; - private int replicas_; - /** - *
-     * The number of replicas requested.
-     * 
- * - * optional int32 replicas = 4; - */ - public boolean hasReplicas() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The number of replicas requested.
-     * 
- * - * optional int32 replicas = 4; - */ - public int getReplicas() { - return replicas_; - } - - public static final int REPLICASAVAILABLE_FIELD_NUMBER = 5; - private int replicasAvailable_; - /** - *
-     * The number of replicas available.
-     * 
- * - * optional int32 replicasAvailable = 5; - */ - public boolean hasReplicasAvailable() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The number of replicas available.
-     * 
- * - * optional int32 replicasAvailable = 5; - */ - public int getReplicasAvailable() { - return replicasAvailable_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt32(4, replicas_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, replicasAvailable_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, replicas_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, replicasAvailable_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.PredictorStatus)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.PredictorStatus other = (io.seldon.protos.DeploymentProtos.PredictorStatus) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; - } - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; - } - if (hasReplicas() != other.hasReplicas()) return false; - if (hasReplicas()) { - if (getReplicas() - != other.getReplicas()) return false; - } - if (hasReplicasAvailable() != other.hasReplicasAvailable()) return false; - if (hasReplicasAvailable()) { - if (getReplicasAvailable() - != other.getReplicasAvailable()) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (hasReplicas()) { - hash = (37 * hash) + REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getReplicas(); - } - if (hasReplicasAvailable()) { - hash = (37 * hash) + REPLICASAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + getReplicasAvailable(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus 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 io.seldon.protos.DeploymentProtos.PredictorStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus 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 io.seldon.protos.DeploymentProtos.PredictorStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictorStatus 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(io.seldon.protos.DeploymentProtos.PredictorStatus 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 seldon.protos.PredictorStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.PredictorStatus) - io.seldon.protos.DeploymentProtos.PredictorStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.PredictorStatus.class, io.seldon.protos.DeploymentProtos.PredictorStatus.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.PredictorStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - status_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - replicas_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - replicasAvailable_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorStatus_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorStatus getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.PredictorStatus.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorStatus build() { - io.seldon.protos.DeploymentProtos.PredictorStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorStatus buildPartial() { - io.seldon.protos.DeploymentProtos.PredictorStatus result = new io.seldon.protos.DeploymentProtos.PredictorStatus(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.replicas_ = replicas_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.replicasAvailable_ = replicasAvailable_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.PredictorStatus) { - return mergeFrom((io.seldon.protos.DeploymentProtos.PredictorStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.PredictorStatus other) { - if (other == io.seldon.protos.DeploymentProtos.PredictorStatus.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000002; - status_ = other.status_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasReplicas()) { - setReplicas(other.getReplicas()); - } - if (other.hasReplicasAvailable()) { - setReplicasAvailable(other.getReplicasAvailable()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.PredictorStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.PredictorStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the predictor.
-       * 
- * - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The name of the predictor.
-       * 
- * - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the predictor.
-       * 
- * - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the predictor.
-       * 
- * - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the predictor.
-       * 
- * - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * The name of the predictor.
-       * 
- * - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object status_ = ""; - /** - *
-       * A short status value.
-       * 
- * - * optional string status = 2; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * A short status value.
-       * 
- * - * optional string status = 2; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A short status value.
-       * 
- * - * optional string status = 2; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A short status value.
-       * 
- * - * optional string status = 2; - */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - status_ = value; - onChanged(); - return this; - } - /** - *
-       * A short status value.
-       * 
- * - * optional string status = 2; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000002); - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; - } - /** - *
-       * A short status value.
-       * 
- * - * optional string status = 2; - */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - status_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * A longer description of the current status.
-       * 
- * - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * A longer description of the current status.
-       * 
- * - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A longer description of the current status.
-       * 
- * - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A longer description of the current status.
-       * 
- * - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - *
-       * A longer description of the current status.
-       * 
- * - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * A longer description of the current status.
-       * 
- * - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private int replicas_ ; - /** - *
-       * The number of replicas requested.
-       * 
- * - * optional int32 replicas = 4; - */ - public boolean hasReplicas() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The number of replicas requested.
-       * 
- * - * optional int32 replicas = 4; - */ - public int getReplicas() { - return replicas_; - } - /** - *
-       * The number of replicas requested.
-       * 
- * - * optional int32 replicas = 4; - */ - public Builder setReplicas(int value) { - bitField0_ |= 0x00000008; - replicas_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of replicas requested.
-       * 
- * - * optional int32 replicas = 4; - */ - public Builder clearReplicas() { - bitField0_ = (bitField0_ & ~0x00000008); - replicas_ = 0; - onChanged(); - return this; - } - - private int replicasAvailable_ ; - /** - *
-       * The number of replicas available.
-       * 
- * - * optional int32 replicasAvailable = 5; - */ - public boolean hasReplicasAvailable() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The number of replicas available.
-       * 
- * - * optional int32 replicasAvailable = 5; - */ - public int getReplicasAvailable() { - return replicasAvailable_; - } - /** - *
-       * The number of replicas available.
-       * 
- * - * optional int32 replicasAvailable = 5; - */ - public Builder setReplicasAvailable(int value) { - bitField0_ |= 0x00000010; - replicasAvailable_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of replicas available.
-       * 
- * - * optional int32 replicasAvailable = 5; - */ - public Builder clearReplicasAvailable() { - bitField0_ = (bitField0_ & ~0x00000010); - replicasAvailable_ = 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:seldon.protos.PredictorStatus) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.PredictorStatus) - private static final io.seldon.protos.DeploymentProtos.PredictorStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.PredictorStatus(); - } - - public static io.seldon.protos.DeploymentProtos.PredictorStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictorStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictorStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeploymentSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.DeploymentSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique name within the namespace.
-     * 
- * - * optional string name = 1; - */ - boolean hasName(); - /** - *
-     * A unique name within the namespace.
-     * 
- * - * optional string name = 1; - */ - java.lang.String getName(); - /** - *
-     * A unique name within the namespace.
-     * 
- * - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - java.util.List - getPredictorsList(); - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - io.seldon.protos.DeploymentProtos.PredictorSpec getPredictors(int index); - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - int getPredictorsCount(); - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - java.util.List - getPredictorsOrBuilderList(); - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder getPredictorsOrBuilder( - int index); - - /** - *
-     * The oauth key for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_key = 3; - */ - boolean hasOauthKey(); - /** - *
-     * The oauth key for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_key = 3; - */ - java.lang.String getOauthKey(); - /** - *
-     * The oauth key for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_key = 3; - */ - com.google.protobuf.ByteString - getOauthKeyBytes(); - - /** - *
-     * The oauth secret for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_secret = 4; - */ - boolean hasOauthSecret(); - /** - *
-     * The oauth secret for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_secret = 4; - */ - java.lang.String getOauthSecret(); - /** - *
-     * The oauth secret for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_secret = 4; - */ - com.google.protobuf.ByteString - getOauthSecretBytes(); - - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - int getAnnotationsCount(); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code seldon.protos.DeploymentSpec} - */ - public static final class DeploymentSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.DeploymentSpec) - DeploymentSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeploymentSpec.newBuilder() to construct. - private DeploymentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeploymentSpec() { - name_ = ""; - predictors_ = java.util.Collections.emptyList(); - oauthKey_ = ""; - oauthSecret_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeploymentSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeploymentSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - predictors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - predictors_.add( - input.readMessage(io.seldon.protos.DeploymentProtos.PredictorSpec.PARSER, extensionRegistry)); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - oauthKey_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - oauthSecret_ = bs; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - predictors_ = java.util.Collections.unmodifiableList(predictors_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.DeploymentSpec.class, io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * A unique name within the namespace.
-     * 
- * - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * A unique name within the namespace.
-     * 
- * - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - *
-     * A unique name within the namespace.
-     * 
- * - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREDICTORS_FIELD_NUMBER = 2; - private java.util.List predictors_; - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public java.util.List getPredictorsList() { - return predictors_; - } - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public java.util.List - getPredictorsOrBuilderList() { - return predictors_; - } - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public int getPredictorsCount() { - return predictors_.size(); - } - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpec getPredictors(int index) { - return predictors_.get(index); - } - /** - *
-     * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-     * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder getPredictorsOrBuilder( - int index) { - return predictors_.get(index); - } - - public static final int OAUTH_KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object oauthKey_; - /** - *
-     * The oauth key for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_key = 3; - */ - public boolean hasOauthKey() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The oauth key for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_key = 3; - */ - public java.lang.String getOauthKey() { - java.lang.Object ref = oauthKey_; - 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(); - if (bs.isValidUtf8()) { - oauthKey_ = s; - } - return s; - } - } - /** - *
-     * The oauth key for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_key = 3; - */ - public com.google.protobuf.ByteString - getOauthKeyBytes() { - java.lang.Object ref = oauthKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauthKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OAUTH_SECRET_FIELD_NUMBER = 4; - private volatile java.lang.Object oauthSecret_; - /** - *
-     * The oauth secret for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_secret = 4; - */ - public boolean hasOauthSecret() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The oauth secret for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_secret = 4; - */ - public java.lang.String getOauthSecret() { - java.lang.Object ref = oauthSecret_; - 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(); - if (bs.isValidUtf8()) { - oauthSecret_ = s; - } - return s; - } - } - /** - *
-     * The oauth secret for external users to use this deployment via an API.
-     * 
- * - * optional string oauth_secret = 4; - */ - public com.google.protobuf.ByteString - getOauthSecretBytes() { - java.lang.Object ref = oauthSecret_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauthSecret_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentSpec_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getPredictorsCount(); i++) { - if (!getPredictors(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < predictors_.size(); i++) { - output.writeMessage(2, predictors_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthKey_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oauthSecret_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < predictors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, predictors_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauthKey_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oauthSecret_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.DeploymentSpec)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.DeploymentSpec other = (io.seldon.protos.DeploymentProtos.DeploymentSpec) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (!getPredictorsList() - .equals(other.getPredictorsList())) return false; - if (hasOauthKey() != other.hasOauthKey()) return false; - if (hasOauthKey()) { - if (!getOauthKey() - .equals(other.getOauthKey())) return false; - } - if (hasOauthSecret() != other.hasOauthSecret()) return false; - if (hasOauthSecret()) { - if (!getOauthSecret() - .equals(other.getOauthSecret())) return false; - } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (getPredictorsCount() > 0) { - hash = (37 * hash) + PREDICTORS_FIELD_NUMBER; - hash = (53 * hash) + getPredictorsList().hashCode(); - } - if (hasOauthKey()) { - hash = (37 * hash) + OAUTH_KEY_FIELD_NUMBER; - hash = (53 * hash) + getOauthKey().hashCode(); - } - if (hasOauthSecret()) { - hash = (37 * hash) + OAUTH_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getOauthSecret().hashCode(); - } - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec 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 io.seldon.protos.DeploymentProtos.DeploymentSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec 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 io.seldon.protos.DeploymentProtos.DeploymentSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.DeploymentSpec 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(io.seldon.protos.DeploymentProtos.DeploymentSpec 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 seldon.protos.DeploymentSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.DeploymentSpec) - io.seldon.protos.DeploymentProtos.DeploymentSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.DeploymentSpec.class, io.seldon.protos.DeploymentProtos.DeploymentSpec.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.DeploymentSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPredictorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (predictorsBuilder_ == null) { - predictors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - predictorsBuilder_.clear(); - } - oauthKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - oauthSecret_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableAnnotations().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_DeploymentSpec_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentSpec getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentSpec build() { - io.seldon.protos.DeploymentProtos.DeploymentSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentSpec buildPartial() { - io.seldon.protos.DeploymentProtos.DeploymentSpec result = new io.seldon.protos.DeploymentProtos.DeploymentSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (predictorsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - predictors_ = java.util.Collections.unmodifiableList(predictors_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.predictors_ = predictors_; - } else { - result.predictors_ = predictorsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.oauthKey_ = oauthKey_; - if (((from_bitField0_ & 0x00000008) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.oauthSecret_ = oauthSecret_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.DeploymentSpec) { - return mergeFrom((io.seldon.protos.DeploymentProtos.DeploymentSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.DeploymentSpec other) { - if (other == io.seldon.protos.DeploymentProtos.DeploymentSpec.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (predictorsBuilder_ == null) { - if (!other.predictors_.isEmpty()) { - if (predictors_.isEmpty()) { - predictors_ = other.predictors_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePredictorsIsMutable(); - predictors_.addAll(other.predictors_); - } - onChanged(); - } - } else { - if (!other.predictors_.isEmpty()) { - if (predictorsBuilder_.isEmpty()) { - predictorsBuilder_.dispose(); - predictorsBuilder_ = null; - predictors_ = other.predictors_; - bitField0_ = (bitField0_ & ~0x00000002); - predictorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPredictorsFieldBuilder() : null; - } else { - predictorsBuilder_.addAllMessages(other.predictors_); - } - } - } - if (other.hasOauthKey()) { - bitField0_ |= 0x00000004; - oauthKey_ = other.oauthKey_; - onChanged(); - } - if (other.hasOauthSecret()) { - bitField0_ |= 0x00000008; - oauthSecret_ = other.oauthSecret_; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getPredictorsCount(); i++) { - if (!getPredictors(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.DeploymentSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.DeploymentSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * A unique name within the namespace.
-       * 
- * - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * A unique name within the namespace.
-       * 
- * - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A unique name within the namespace.
-       * 
- * - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A unique name within the namespace.
-       * 
- * - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique name within the namespace.
-       * 
- * - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * A unique name within the namespace.
-       * 
- * - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.util.List predictors_ = - java.util.Collections.emptyList(); - private void ensurePredictorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - predictors_ = new java.util.ArrayList(predictors_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictorSpec, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder, io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder> predictorsBuilder_; - - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public java.util.List getPredictorsList() { - if (predictorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(predictors_); - } else { - return predictorsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public int getPredictorsCount() { - if (predictorsBuilder_ == null) { - return predictors_.size(); - } else { - return predictorsBuilder_.getCount(); - } - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpec getPredictors(int index) { - if (predictorsBuilder_ == null) { - return predictors_.get(index); - } else { - return predictorsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder setPredictors( - int index, io.seldon.protos.DeploymentProtos.PredictorSpec value) { - if (predictorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePredictorsIsMutable(); - predictors_.set(index, value); - onChanged(); - } else { - predictorsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder setPredictors( - int index, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder builderForValue) { - if (predictorsBuilder_ == null) { - ensurePredictorsIsMutable(); - predictors_.set(index, builderForValue.build()); - onChanged(); - } else { - predictorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder addPredictors(io.seldon.protos.DeploymentProtos.PredictorSpec value) { - if (predictorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePredictorsIsMutable(); - predictors_.add(value); - onChanged(); - } else { - predictorsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder addPredictors( - int index, io.seldon.protos.DeploymentProtos.PredictorSpec value) { - if (predictorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePredictorsIsMutable(); - predictors_.add(index, value); - onChanged(); - } else { - predictorsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder addPredictors( - io.seldon.protos.DeploymentProtos.PredictorSpec.Builder builderForValue) { - if (predictorsBuilder_ == null) { - ensurePredictorsIsMutable(); - predictors_.add(builderForValue.build()); - onChanged(); - } else { - predictorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder addPredictors( - int index, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder builderForValue) { - if (predictorsBuilder_ == null) { - ensurePredictorsIsMutable(); - predictors_.add(index, builderForValue.build()); - onChanged(); - } else { - predictorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder addAllPredictors( - java.lang.Iterable values) { - if (predictorsBuilder_ == null) { - ensurePredictorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, predictors_); - onChanged(); - } else { - predictorsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder clearPredictors() { - if (predictorsBuilder_ == null) { - predictors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - predictorsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public Builder removePredictors(int index) { - if (predictorsBuilder_ == null) { - ensurePredictorsIsMutable(); - predictors_.remove(index); - onChanged(); - } else { - predictorsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpec.Builder getPredictorsBuilder( - int index) { - return getPredictorsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder getPredictorsOrBuilder( - int index) { - if (predictorsBuilder_ == null) { - return predictors_.get(index); } else { - return predictorsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public java.util.List - getPredictorsOrBuilderList() { - if (predictorsBuilder_ != null) { - return predictorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(predictors_); - } - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpec.Builder addPredictorsBuilder() { - return getPredictorsFieldBuilder().addBuilder( - io.seldon.protos.DeploymentProtos.PredictorSpec.getDefaultInstance()); - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictorSpec.Builder addPredictorsBuilder( - int index) { - return getPredictorsFieldBuilder().addBuilder( - index, io.seldon.protos.DeploymentProtos.PredictorSpec.getDefaultInstance()); - } - /** - *
-       * A list of 1 or more predictors describing runtime machine learning deployment graphs.
-       * 
- * - * repeated .seldon.protos.PredictorSpec predictors = 2; - */ - public java.util.List - getPredictorsBuilderList() { - return getPredictorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictorSpec, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder, io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder> - getPredictorsFieldBuilder() { - if (predictorsBuilder_ == null) { - predictorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictorSpec, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder, io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder>( - predictors_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - predictors_ = null; - } - return predictorsBuilder_; - } - - private java.lang.Object oauthKey_ = ""; - /** - *
-       * The oauth key for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_key = 3; - */ - public boolean hasOauthKey() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * The oauth key for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_key = 3; - */ - public java.lang.String getOauthKey() { - java.lang.Object ref = oauthKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oauthKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The oauth key for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_key = 3; - */ - public com.google.protobuf.ByteString - getOauthKeyBytes() { - java.lang.Object ref = oauthKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauthKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The oauth key for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_key = 3; - */ - public Builder setOauthKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - oauthKey_ = value; - onChanged(); - return this; - } - /** - *
-       * The oauth key for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_key = 3; - */ - public Builder clearOauthKey() { - bitField0_ = (bitField0_ & ~0x00000004); - oauthKey_ = getDefaultInstance().getOauthKey(); - onChanged(); - return this; - } - /** - *
-       * The oauth key for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_key = 3; - */ - public Builder setOauthKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - oauthKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object oauthSecret_ = ""; - /** - *
-       * The oauth secret for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_secret = 4; - */ - public boolean hasOauthSecret() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The oauth secret for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_secret = 4; - */ - public java.lang.String getOauthSecret() { - java.lang.Object ref = oauthSecret_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oauthSecret_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The oauth secret for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_secret = 4; - */ - public com.google.protobuf.ByteString - getOauthSecretBytes() { - java.lang.Object ref = oauthSecret_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauthSecret_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The oauth secret for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_secret = 4; - */ - public Builder setOauthSecret( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - oauthSecret_ = value; - onChanged(); - return this; - } - /** - *
-       * The oauth secret for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_secret = 4; - */ - public Builder clearOauthSecret() { - bitField0_ = (bitField0_ & ~0x00000008); - oauthSecret_ = getDefaultInstance().getOauthSecret(); - onChanged(); - return this; - } - /** - *
-       * The oauth secret for external users to use this deployment via an API.
-       * 
- * - * optional string oauth_secret = 4; - */ - public Builder setOauthSecretBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - oauthSecret_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:seldon.protos.DeploymentSpec) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.DeploymentSpec) - private static final io.seldon.protos.DeploymentProtos.DeploymentSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.DeploymentSpec(); - } - - public static io.seldon.protos.DeploymentProtos.DeploymentSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeploymentSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeploymentSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.DeploymentSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExplainerOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.Explainer) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Type of explainer
-     * 
- * - * optional string type = 1; - */ - boolean hasType(); - /** - *
-     * Type of explainer
-     * 
- * - * optional string type = 1; - */ - java.lang.String getType(); - /** - *
-     * Type of explainer
-     * 
- * - * optional string type = 1; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * Bucket or PVC location of explainer model
-     * 
- * - * optional string modelUri = 2; - */ - boolean hasModelUri(); - /** - *
-     * Bucket or PVC location of explainer model
-     * 
- * - * optional string modelUri = 2; - */ - java.lang.String getModelUri(); - /** - *
-     * Bucket or PVC location of explainer model
-     * 
- * - * optional string modelUri = 2; - */ - com.google.protobuf.ByteString - getModelUriBytes(); - - /** - *
-     * Service account for pulling from bucket
-     * 
- * - * optional string serviceAccountName = 3; - */ - boolean hasServiceAccountName(); - /** - *
-     * Service account for pulling from bucket
-     * 
- * - * optional string serviceAccountName = 3; - */ - java.lang.String getServiceAccountName(); - /** - *
-     * Service account for pulling from bucket
-     * 
- * - * optional string serviceAccountName = 3; - */ - com.google.protobuf.ByteString - getServiceAccountNameBytes(); - - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 4; - */ - boolean hasEnvSecretRefName(); - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 4; - */ - java.lang.String getEnvSecretRefName(); - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 4; - */ - com.google.protobuf.ByteString - getEnvSecretRefNameBytes(); - - /** - *
-     * Custom spec for explainer
-     * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - boolean hasContainerSpec(); - /** - *
-     * Custom spec for explainer
-     * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - io.kubernetes.client.proto.V1.Container getContainerSpec(); - /** - *
-     * Custom spec for explainer
-     * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - io.kubernetes.client.proto.V1.ContainerOrBuilder getContainerSpecOrBuilder(); - } - /** - * Protobuf type {@code seldon.protos.Explainer} - */ - public static final class Explainer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.Explainer) - ExplainerOrBuilder { - private static final long serialVersionUID = 0L; - // Use Explainer.newBuilder() to construct. - private Explainer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Explainer() { - type_ = ""; - modelUri_ = ""; - serviceAccountName_ = ""; - envSecretRefName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Explainer(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Explainer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - type_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - modelUri_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - serviceAccountName_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - envSecretRefName_ = bs; - break; - } - case 42: { - io.kubernetes.client.proto.V1.Container.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) != 0)) { - subBuilder = containerSpec_.toBuilder(); - } - containerSpec_ = input.readMessage(io.kubernetes.client.proto.V1.Container.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(containerSpec_); - containerSpec_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Explainer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Explainer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.Explainer.class, io.seldon.protos.DeploymentProtos.Explainer.Builder.class); - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - *
-     * Type of explainer
-     * 
- * - * optional string type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Type of explainer
-     * 
- * - * optional string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } - } - /** - *
-     * Type of explainer
-     * 
- * - * optional string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODELURI_FIELD_NUMBER = 2; - private volatile java.lang.Object modelUri_; - /** - *
-     * Bucket or PVC location of explainer model
-     * 
- * - * optional string modelUri = 2; - */ - public boolean hasModelUri() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Bucket or PVC location of explainer model
-     * 
- * - * optional string modelUri = 2; - */ - public java.lang.String getModelUri() { - java.lang.Object ref = modelUri_; - 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(); - if (bs.isValidUtf8()) { - modelUri_ = s; - } - return s; - } - } - /** - *
-     * Bucket or PVC location of explainer model
-     * 
- * - * optional string modelUri = 2; - */ - public com.google.protobuf.ByteString - getModelUriBytes() { - java.lang.Object ref = modelUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - modelUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICEACCOUNTNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object serviceAccountName_; - /** - *
-     * Service account for pulling from bucket
-     * 
- * - * optional string serviceAccountName = 3; - */ - public boolean hasServiceAccountName() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Service account for pulling from bucket
-     * 
- * - * optional string serviceAccountName = 3; - */ - public java.lang.String getServiceAccountName() { - java.lang.Object ref = serviceAccountName_; - 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(); - if (bs.isValidUtf8()) { - serviceAccountName_ = s; - } - return s; - } - } - /** - *
-     * Service account for pulling from bucket
-     * 
- * - * optional string serviceAccountName = 3; - */ - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { - java.lang.Object ref = serviceAccountName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccountName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENVSECRETREFNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object envSecretRefName_; - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 4; - */ - public boolean hasEnvSecretRefName() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 4; - */ - public java.lang.String getEnvSecretRefName() { - java.lang.Object ref = envSecretRefName_; - 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(); - if (bs.isValidUtf8()) { - envSecretRefName_ = s; - } - return s; - } - } - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 4; - */ - public com.google.protobuf.ByteString - getEnvSecretRefNameBytes() { - java.lang.Object ref = envSecretRefName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - envSecretRefName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTAINERSPEC_FIELD_NUMBER = 5; - private io.kubernetes.client.proto.V1.Container containerSpec_; - /** - *
-     * Custom spec for explainer
-     * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public boolean hasContainerSpec() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Custom spec for explainer
-     * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public io.kubernetes.client.proto.V1.Container getContainerSpec() { - return containerSpec_ == null ? io.kubernetes.client.proto.V1.Container.getDefaultInstance() : containerSpec_; - } - /** - *
-     * Custom spec for explainer
-     * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public io.kubernetes.client.proto.V1.ContainerOrBuilder getContainerSpecOrBuilder() { - return containerSpec_ == null ? io.kubernetes.client.proto.V1.Container.getDefaultInstance() : containerSpec_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelUri_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountName_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, envSecretRefName_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(5, getContainerSpec()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelUri_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAccountName_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, envSecretRefName_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getContainerSpec()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.Explainer)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.Explainer other = (io.seldon.protos.DeploymentProtos.Explainer) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (hasModelUri() != other.hasModelUri()) return false; - if (hasModelUri()) { - if (!getModelUri() - .equals(other.getModelUri())) return false; - } - if (hasServiceAccountName() != other.hasServiceAccountName()) return false; - if (hasServiceAccountName()) { - if (!getServiceAccountName() - .equals(other.getServiceAccountName())) return false; - } - if (hasEnvSecretRefName() != other.hasEnvSecretRefName()) return false; - if (hasEnvSecretRefName()) { - if (!getEnvSecretRefName() - .equals(other.getEnvSecretRefName())) return false; - } - if (hasContainerSpec() != other.hasContainerSpec()) return false; - if (hasContainerSpec()) { - if (!getContainerSpec() - .equals(other.getContainerSpec())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - if (hasModelUri()) { - hash = (37 * hash) + MODELURI_FIELD_NUMBER; - hash = (53 * hash) + getModelUri().hashCode(); - } - if (hasServiceAccountName()) { - hash = (37 * hash) + SERVICEACCOUNTNAME_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountName().hashCode(); - } - if (hasEnvSecretRefName()) { - hash = (37 * hash) + ENVSECRETREFNAME_FIELD_NUMBER; - hash = (53 * hash) + getEnvSecretRefName().hashCode(); - } - if (hasContainerSpec()) { - hash = (37 * hash) + CONTAINERSPEC_FIELD_NUMBER; - hash = (53 * hash) + getContainerSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Explainer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Explainer 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 io.seldon.protos.DeploymentProtos.Explainer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Explainer 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 io.seldon.protos.DeploymentProtos.Explainer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Explainer 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(io.seldon.protos.DeploymentProtos.Explainer 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 seldon.protos.Explainer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.Explainer) - io.seldon.protos.DeploymentProtos.ExplainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Explainer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Explainer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.Explainer.class, io.seldon.protos.DeploymentProtos.Explainer.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.Explainer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getContainerSpecFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - modelUri_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - serviceAccountName_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - envSecretRefName_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - } else { - containerSpecBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Explainer_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Explainer getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Explainer build() { - io.seldon.protos.DeploymentProtos.Explainer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Explainer buildPartial() { - io.seldon.protos.DeploymentProtos.Explainer result = new io.seldon.protos.DeploymentProtos.Explainer(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.modelUri_ = modelUri_; - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.serviceAccountName_ = serviceAccountName_; - if (((from_bitField0_ & 0x00000008) != 0)) { - to_bitField0_ |= 0x00000008; - } - result.envSecretRefName_ = envSecretRefName_; - if (((from_bitField0_ & 0x00000010) != 0)) { - if (containerSpecBuilder_ == null) { - result.containerSpec_ = containerSpec_; - } else { - result.containerSpec_ = containerSpecBuilder_.build(); - } - to_bitField0_ |= 0x00000010; - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.Explainer) { - return mergeFrom((io.seldon.protos.DeploymentProtos.Explainer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.Explainer other) { - if (other == io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance()) return this; - if (other.hasType()) { - bitField0_ |= 0x00000001; - type_ = other.type_; - onChanged(); - } - if (other.hasModelUri()) { - bitField0_ |= 0x00000002; - modelUri_ = other.modelUri_; - onChanged(); - } - if (other.hasServiceAccountName()) { - bitField0_ |= 0x00000004; - serviceAccountName_ = other.serviceAccountName_; - onChanged(); - } - if (other.hasEnvSecretRefName()) { - bitField0_ |= 0x00000008; - envSecretRefName_ = other.envSecretRefName_; - onChanged(); - } - if (other.hasContainerSpec()) { - mergeContainerSpec(other.getContainerSpec()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - io.seldon.protos.DeploymentProtos.Explainer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.Explainer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object type_ = ""; - /** - *
-       * Type of explainer
-       * 
- * - * optional string type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Type of explainer
-       * 
- * - * optional string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Type of explainer
-       * 
- * - * optional string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Type of explainer
-       * 
- * - * optional string type = 1; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Type of explainer
-       * 
- * - * optional string type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * Type of explainer
-       * 
- * - * optional string type = 1; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - - private java.lang.Object modelUri_ = ""; - /** - *
-       * Bucket or PVC location of explainer model
-       * 
- * - * optional string modelUri = 2; - */ - public boolean hasModelUri() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Bucket or PVC location of explainer model
-       * 
- * - * optional string modelUri = 2; - */ - public java.lang.String getModelUri() { - java.lang.Object ref = modelUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - modelUri_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Bucket or PVC location of explainer model
-       * 
- * - * optional string modelUri = 2; - */ - public com.google.protobuf.ByteString - getModelUriBytes() { - java.lang.Object ref = modelUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - modelUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Bucket or PVC location of explainer model
-       * 
- * - * optional string modelUri = 2; - */ - public Builder setModelUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - modelUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Bucket or PVC location of explainer model
-       * 
- * - * optional string modelUri = 2; - */ - public Builder clearModelUri() { - bitField0_ = (bitField0_ & ~0x00000002); - modelUri_ = getDefaultInstance().getModelUri(); - onChanged(); - return this; - } - /** - *
-       * Bucket or PVC location of explainer model
-       * 
- * - * optional string modelUri = 2; - */ - public Builder setModelUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - modelUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceAccountName_ = ""; - /** - *
-       * Service account for pulling from bucket
-       * 
- * - * optional string serviceAccountName = 3; - */ - public boolean hasServiceAccountName() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Service account for pulling from bucket
-       * 
- * - * optional string serviceAccountName = 3; - */ - public java.lang.String getServiceAccountName() { - java.lang.Object ref = serviceAccountName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - serviceAccountName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Service account for pulling from bucket
-       * 
- * - * optional string serviceAccountName = 3; - */ - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { - java.lang.Object ref = serviceAccountName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccountName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Service account for pulling from bucket
-       * 
- * - * optional string serviceAccountName = 3; - */ - public Builder setServiceAccountName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - serviceAccountName_ = value; - onChanged(); - return this; - } - /** - *
-       * Service account for pulling from bucket
-       * 
- * - * optional string serviceAccountName = 3; - */ - public Builder clearServiceAccountName() { - bitField0_ = (bitField0_ & ~0x00000004); - serviceAccountName_ = getDefaultInstance().getServiceAccountName(); - onChanged(); - return this; - } - /** - *
-       * Service account for pulling from bucket
-       * 
- * - * optional string serviceAccountName = 3; - */ - public Builder setServiceAccountNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - serviceAccountName_ = value; - onChanged(); - return this; - } - - private java.lang.Object envSecretRefName_ = ""; - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 4; - */ - public boolean hasEnvSecretRefName() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 4; - */ - public java.lang.String getEnvSecretRefName() { - java.lang.Object ref = envSecretRefName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - envSecretRefName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 4; - */ - public com.google.protobuf.ByteString - getEnvSecretRefNameBytes() { - java.lang.Object ref = envSecretRefName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - envSecretRefName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 4; - */ - public Builder setEnvSecretRefName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - envSecretRefName_ = value; - onChanged(); - return this; - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 4; - */ - public Builder clearEnvSecretRefName() { - bitField0_ = (bitField0_ & ~0x00000008); - envSecretRefName_ = getDefaultInstance().getEnvSecretRefName(); - onChanged(); - return this; - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 4; - */ - public Builder setEnvSecretRefNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - envSecretRefName_ = value; - onChanged(); - return this; - } - - private io.kubernetes.client.proto.V1.Container containerSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder> containerSpecBuilder_; - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public boolean hasContainerSpec() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public io.kubernetes.client.proto.V1.Container getContainerSpec() { - if (containerSpecBuilder_ == null) { - return containerSpec_ == null ? io.kubernetes.client.proto.V1.Container.getDefaultInstance() : containerSpec_; - } else { - return containerSpecBuilder_.getMessage(); - } - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public Builder setContainerSpec(io.kubernetes.client.proto.V1.Container value) { - if (containerSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - containerSpec_ = value; - onChanged(); - } else { - containerSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public Builder setContainerSpec( - io.kubernetes.client.proto.V1.Container.Builder builderForValue) { - if (containerSpecBuilder_ == null) { - containerSpec_ = builderForValue.build(); - onChanged(); - } else { - containerSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public Builder mergeContainerSpec(io.kubernetes.client.proto.V1.Container value) { - if (containerSpecBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - containerSpec_ != null && - containerSpec_ != io.kubernetes.client.proto.V1.Container.getDefaultInstance()) { - containerSpec_ = - io.kubernetes.client.proto.V1.Container.newBuilder(containerSpec_).mergeFrom(value).buildPartial(); - } else { - containerSpec_ = value; - } - onChanged(); - } else { - containerSpecBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public Builder clearContainerSpec() { - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - onChanged(); - } else { - containerSpecBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public io.kubernetes.client.proto.V1.Container.Builder getContainerSpecBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getContainerSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - public io.kubernetes.client.proto.V1.ContainerOrBuilder getContainerSpecOrBuilder() { - if (containerSpecBuilder_ != null) { - return containerSpecBuilder_.getMessageOrBuilder(); - } else { - return containerSpec_ == null ? - io.kubernetes.client.proto.V1.Container.getDefaultInstance() : containerSpec_; - } - } - /** - *
-       * Custom spec for explainer
-       * 
- * - * optional .k8s.io.api.core.v1.Container containerSpec = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder> - getContainerSpecFieldBuilder() { - if (containerSpecBuilder_ == null) { - containerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder>( - getContainerSpec(), - getParentForChildren(), - isClean()); - containerSpec_ = null; - } - return containerSpecBuilder_; - } - @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:seldon.protos.Explainer) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.Explainer) - private static final io.seldon.protos.DeploymentProtos.Explainer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.Explainer(); - } - - public static io.seldon.protos.DeploymentProtos.Explainer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Explainer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Explainer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Explainer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PredictorSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.PredictorSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique name not used by any other predictor in the deployment.
-     * 
- * - * required string name = 1; - */ - boolean hasName(); - /** - *
-     * A unique name not used by any other predictor in the deployment.
-     * 
- * - * required string name = 1; - */ - java.lang.String getName(); - /** - *
-     * A unique name not used by any other predictor in the deployment.
-     * 
- * - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * A graph describing how the predictive units are connected together.
-     * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - boolean hasGraph(); - /** - *
-     * A graph describing how the predictive units are connected together.
-     * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnit getGraph(); - /** - *
-     * A graph describing how the predictive units are connected together.
-     * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder getGraphOrBuilder(); - - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - java.util.List - getComponentSpecsList(); - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - io.seldon.protos.DeploymentProtos.SeldonPodSpec getComponentSpecs(int index); - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - int getComponentSpecsCount(); - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - java.util.List - getComponentSpecsOrBuilderList(); - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder getComponentSpecsOrBuilder( - int index); - - /** - *
-     * The number of replicas of the predictor to create.
-     * 
- * - * optional int32 replicas = 4; - */ - boolean hasReplicas(); - /** - *
-     * The number of replicas of the predictor to create.
-     * 
- * - * optional int32 replicas = 4; - */ - int getReplicas(); - - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - int getAnnotationsCount(); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - - /** - *
-     * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-     * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasEngineResources(); - /** - *
-     * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-     * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated io.kubernetes.client.proto.V1.ResourceRequirements getEngineResources(); - /** - *
-     * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-     * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getEngineResourcesOrBuilder(); - - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - int getLabelsCount(); - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - java.util.Map - getLabelsMap(); - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-     * Service Orchestrator configuration
-     * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - boolean hasSvcOrchSpec(); - /** - *
-     * Service Orchestrator configuration
-     * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - io.seldon.protos.DeploymentProtos.SvcOrchSpec getSvcOrchSpec(); - /** - *
-     * Service Orchestrator configuration
-     * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder getSvcOrchSpecOrBuilder(); - - /** - *
-     * traffic weight for this predictor
-     * 
- * - * optional int32 traffic = 9; - */ - boolean hasTraffic(); - /** - *
-     * traffic weight for this predictor
-     * 
- * - * optional int32 traffic = 9; - */ - int getTraffic(); - - /** - *
-     * Explainer for predictor
-     * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - boolean hasExplainer(); - /** - *
-     * Explainer for predictor
-     * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - io.seldon.protos.DeploymentProtos.Explainer getExplainer(); - /** - *
-     * Explainer for predictor
-     * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - io.seldon.protos.DeploymentProtos.ExplainerOrBuilder getExplainerOrBuilder(); - } - /** - * Protobuf type {@code seldon.protos.PredictorSpec} - */ - public static final class PredictorSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.PredictorSpec) - PredictorSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use PredictorSpec.newBuilder() to construct. - private PredictorSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PredictorSpec() { - name_ = ""; - componentSpecs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PredictorSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PredictorSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = graph_.toBuilder(); - } - graph_ = input.readMessage(io.seldon.protos.DeploymentProtos.PredictiveUnit.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(graph_); - graph_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - componentSpecs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - componentSpecs_.add( - input.readMessage(io.seldon.protos.DeploymentProtos.SeldonPodSpec.PARSER, extensionRegistry)); - break; - } - case 32: { - bitField0_ |= 0x00000004; - replicas_ = input.readInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - case 50: { - io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) != 0)) { - subBuilder = engineResources_.toBuilder(); - } - engineResources_ = input.readMessage(io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(engineResources_); - engineResources_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 66: { - io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) != 0)) { - subBuilder = svcOrchSpec_.toBuilder(); - } - svcOrchSpec_ = input.readMessage(io.seldon.protos.DeploymentProtos.SvcOrchSpec.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(svcOrchSpec_); - svcOrchSpec_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 72: { - bitField0_ |= 0x00000020; - traffic_ = input.readInt32(); - break; - } - case 82: { - io.seldon.protos.DeploymentProtos.Explainer.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) != 0)) { - subBuilder = explainer_.toBuilder(); - } - explainer_ = input.readMessage(io.seldon.protos.DeploymentProtos.Explainer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(explainer_); - explainer_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - componentSpecs_ = java.util.Collections.unmodifiableList(componentSpecs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetAnnotations(); - case 7: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.PredictorSpec.class, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * A unique name not used by any other predictor in the deployment.
-     * 
- * - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * A unique name not used by any other predictor in the deployment.
-     * 
- * - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - *
-     * A unique name not used by any other predictor in the deployment.
-     * 
- * - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRAPH_FIELD_NUMBER = 2; - private io.seldon.protos.DeploymentProtos.PredictiveUnit graph_; - /** - *
-     * A graph describing how the predictive units are connected together.
-     * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * A graph describing how the predictive units are connected together.
-     * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit getGraph() { - return graph_ == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance() : graph_; - } - /** - *
-     * A graph describing how the predictive units are connected together.
-     * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder getGraphOrBuilder() { - return graph_ == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance() : graph_; - } - - public static final int COMPONENTSPECS_FIELD_NUMBER = 3; - private java.util.List componentSpecs_; - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public java.util.List getComponentSpecsList() { - return componentSpecs_; - } - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public java.util.List - getComponentSpecsOrBuilderList() { - return componentSpecs_; - } - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public int getComponentSpecsCount() { - return componentSpecs_.size(); - } - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpec getComponentSpecs(int index) { - return componentSpecs_.get(index); - } - /** - *
-     * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-     * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder getComponentSpecsOrBuilder( - int index) { - return componentSpecs_.get(index); - } - - public static final int REPLICAS_FIELD_NUMBER = 4; - private int replicas_; - /** - *
-     * The number of replicas of the predictor to create.
-     * 
- * - * optional int32 replicas = 4; - */ - public boolean hasReplicas() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The number of replicas of the predictor to create.
-     * 
- * - * optional int32 replicas = 4; - */ - public int getReplicas() { - return replicas_; - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Arbitrary annotations.
-     * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ENGINERESOURCES_FIELD_NUMBER = 6; - private io.kubernetes.client.proto.V1.ResourceRequirements engineResources_; - /** - *
-     * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-     * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasEngineResources() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-     * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public io.kubernetes.client.proto.V1.ResourceRequirements getEngineResources() { - return engineResources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : engineResources_; - } - /** - *
-     * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-     * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getEngineResourcesOrBuilder() { - return engineResources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : engineResources_; - } - - public static final int LABELS_FIELD_NUMBER = 7; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * labels to be attached to entry deplyment for this predictor
-     * 
- * - * map<string, string> labels = 7; - */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SVCORCHSPEC_FIELD_NUMBER = 8; - private io.seldon.protos.DeploymentProtos.SvcOrchSpec svcOrchSpec_; - /** - *
-     * Service Orchestrator configuration
-     * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public boolean hasSvcOrchSpec() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Service Orchestrator configuration
-     * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public io.seldon.protos.DeploymentProtos.SvcOrchSpec getSvcOrchSpec() { - return svcOrchSpec_ == null ? io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance() : svcOrchSpec_; - } - /** - *
-     * Service Orchestrator configuration
-     * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder getSvcOrchSpecOrBuilder() { - return svcOrchSpec_ == null ? io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance() : svcOrchSpec_; - } - - public static final int TRAFFIC_FIELD_NUMBER = 9; - private int traffic_; - /** - *
-     * traffic weight for this predictor
-     * 
- * - * optional int32 traffic = 9; - */ - public boolean hasTraffic() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * traffic weight for this predictor
-     * 
- * - * optional int32 traffic = 9; - */ - public int getTraffic() { - return traffic_; - } - - public static final int EXPLAINER_FIELD_NUMBER = 10; - private io.seldon.protos.DeploymentProtos.Explainer explainer_; - /** - *
-     * Explainer for predictor
-     * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public boolean hasExplainer() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Explainer for predictor
-     * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public io.seldon.protos.DeploymentProtos.Explainer getExplainer() { - return explainer_ == null ? io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance() : explainer_; - } - /** - *
-     * Explainer for predictor
-     * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public io.seldon.protos.DeploymentProtos.ExplainerOrBuilder getExplainerOrBuilder() { - return explainer_ == null ? io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance() : explainer_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasGraph()) { - memoizedIsInitialized = 0; - return false; - } - if (!getGraph().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getGraph()); - } - for (int i = 0; i < componentSpecs_.size(); i++) { - output.writeMessage(3, componentSpecs_.get(i)); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(4, replicas_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(6, getEngineResources()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(8, getSvcOrchSpec()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeInt32(9, traffic_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(10, getExplainer()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGraph()); - } - for (int i = 0; i < componentSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, componentSpecs_.get(i)); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, replicas_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEngineResources()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labels__); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSvcOrchSpec()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, traffic_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getExplainer()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.PredictorSpec)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.PredictorSpec other = (io.seldon.protos.DeploymentProtos.PredictorSpec) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (hasGraph() != other.hasGraph()) return false; - if (hasGraph()) { - if (!getGraph() - .equals(other.getGraph())) return false; - } - if (!getComponentSpecsList() - .equals(other.getComponentSpecsList())) return false; - if (hasReplicas() != other.hasReplicas()) return false; - if (hasReplicas()) { - if (getReplicas() - != other.getReplicas()) return false; - } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (hasEngineResources() != other.hasEngineResources()) return false; - if (hasEngineResources()) { - if (!getEngineResources() - .equals(other.getEngineResources())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (hasSvcOrchSpec() != other.hasSvcOrchSpec()) return false; - if (hasSvcOrchSpec()) { - if (!getSvcOrchSpec() - .equals(other.getSvcOrchSpec())) return false; - } - if (hasTraffic() != other.hasTraffic()) return false; - if (hasTraffic()) { - if (getTraffic() - != other.getTraffic()) return false; - } - if (hasExplainer() != other.hasExplainer()) return false; - if (hasExplainer()) { - if (!getExplainer() - .equals(other.getExplainer())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (getComponentSpecsCount() > 0) { - hash = (37 * hash) + COMPONENTSPECS_FIELD_NUMBER; - hash = (53 * hash) + getComponentSpecsList().hashCode(); - } - if (hasReplicas()) { - hash = (37 * hash) + REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getReplicas(); - } - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - if (hasEngineResources()) { - hash = (37 * hash) + ENGINERESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getEngineResources().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasSvcOrchSpec()) { - hash = (37 * hash) + SVCORCHSPEC_FIELD_NUMBER; - hash = (53 * hash) + getSvcOrchSpec().hashCode(); - } - if (hasTraffic()) { - hash = (37 * hash) + TRAFFIC_FIELD_NUMBER; - hash = (53 * hash) + getTraffic(); - } - if (hasExplainer()) { - hash = (37 * hash) + EXPLAINER_FIELD_NUMBER; - hash = (53 * hash) + getExplainer().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec 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 io.seldon.protos.DeploymentProtos.PredictorSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec 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 io.seldon.protos.DeploymentProtos.PredictorSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictorSpec 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(io.seldon.protos.DeploymentProtos.PredictorSpec 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 seldon.protos.PredictorSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.PredictorSpec) - io.seldon.protos.DeploymentProtos.PredictorSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetAnnotations(); - case 7: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableAnnotations(); - case 7: - return internalGetMutableLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.PredictorSpec.class, io.seldon.protos.DeploymentProtos.PredictorSpec.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.PredictorSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getGraphFieldBuilder(); - getComponentSpecsFieldBuilder(); - getEngineResourcesFieldBuilder(); - getSvcOrchSpecFieldBuilder(); - getExplainerFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (graphBuilder_ == null) { - graph_ = null; - } else { - graphBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (componentSpecsBuilder_ == null) { - componentSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - componentSpecsBuilder_.clear(); - } - replicas_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableAnnotations().clear(); - if (engineResourcesBuilder_ == null) { - engineResources_ = null; - } else { - engineResourcesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableLabels().clear(); - if (svcOrchSpecBuilder_ == null) { - svcOrchSpec_ = null; - } else { - svcOrchSpecBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - traffic_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - if (explainerBuilder_ == null) { - explainer_ = null; - } else { - explainerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictorSpec_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorSpec getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.PredictorSpec.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorSpec build() { - io.seldon.protos.DeploymentProtos.PredictorSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorSpec buildPartial() { - io.seldon.protos.DeploymentProtos.PredictorSpec result = new io.seldon.protos.DeploymentProtos.PredictorSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) != 0)) { - if (graphBuilder_ == null) { - result.graph_ = graph_; - } else { - result.graph_ = graphBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - if (componentSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - componentSpecs_ = java.util.Collections.unmodifiableList(componentSpecs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.componentSpecs_ = componentSpecs_; - } else { - result.componentSpecs_ = componentSpecsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.replicas_ = replicas_; - to_bitField0_ |= 0x00000004; - } - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - if (((from_bitField0_ & 0x00000020) != 0)) { - if (engineResourcesBuilder_ == null) { - result.engineResources_ = engineResources_; - } else { - result.engineResources_ = engineResourcesBuilder_.build(); - } - to_bitField0_ |= 0x00000008; - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (((from_bitField0_ & 0x00000080) != 0)) { - if (svcOrchSpecBuilder_ == null) { - result.svcOrchSpec_ = svcOrchSpec_; - } else { - result.svcOrchSpec_ = svcOrchSpecBuilder_.build(); - } - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.traffic_ = traffic_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - if (explainerBuilder_ == null) { - result.explainer_ = explainer_; - } else { - result.explainer_ = explainerBuilder_.build(); - } - to_bitField0_ |= 0x00000040; - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.PredictorSpec) { - return mergeFrom((io.seldon.protos.DeploymentProtos.PredictorSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.PredictorSpec other) { - if (other == io.seldon.protos.DeploymentProtos.PredictorSpec.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasGraph()) { - mergeGraph(other.getGraph()); - } - if (componentSpecsBuilder_ == null) { - if (!other.componentSpecs_.isEmpty()) { - if (componentSpecs_.isEmpty()) { - componentSpecs_ = other.componentSpecs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureComponentSpecsIsMutable(); - componentSpecs_.addAll(other.componentSpecs_); - } - onChanged(); - } - } else { - if (!other.componentSpecs_.isEmpty()) { - if (componentSpecsBuilder_.isEmpty()) { - componentSpecsBuilder_.dispose(); - componentSpecsBuilder_ = null; - componentSpecs_ = other.componentSpecs_; - bitField0_ = (bitField0_ & ~0x00000004); - componentSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getComponentSpecsFieldBuilder() : null; - } else { - componentSpecsBuilder_.addAllMessages(other.componentSpecs_); - } - } - } - if (other.hasReplicas()) { - setReplicas(other.getReplicas()); - } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - if (other.hasEngineResources()) { - mergeEngineResources(other.getEngineResources()); - } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.hasSvcOrchSpec()) { - mergeSvcOrchSpec(other.getSvcOrchSpec()); - } - if (other.hasTraffic()) { - setTraffic(other.getTraffic()); - } - if (other.hasExplainer()) { - mergeExplainer(other.getExplainer()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasGraph()) { - return false; - } - if (!getGraph().isInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.PredictorSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.PredictorSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * A unique name not used by any other predictor in the deployment.
-       * 
- * - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * A unique name not used by any other predictor in the deployment.
-       * 
- * - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A unique name not used by any other predictor in the deployment.
-       * 
- * - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A unique name not used by any other predictor in the deployment.
-       * 
- * - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique name not used by any other predictor in the deployment.
-       * 
- * - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * A unique name not used by any other predictor in the deployment.
-       * 
- * - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private io.seldon.protos.DeploymentProtos.PredictiveUnit graph_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictiveUnit, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder, io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder> graphBuilder_; - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit getGraph() { - if (graphBuilder_ == null) { - return graph_ == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance() : graph_; - } else { - return graphBuilder_.getMessage(); - } - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public Builder setGraph(io.seldon.protos.DeploymentProtos.PredictiveUnit value) { - if (graphBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - graph_ = value; - onChanged(); - } else { - graphBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public Builder setGraph( - io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder builderForValue) { - if (graphBuilder_ == null) { - graph_ = builderForValue.build(); - onChanged(); - } else { - graphBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public Builder mergeGraph(io.seldon.protos.DeploymentProtos.PredictiveUnit value) { - if (graphBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - graph_ != null && - graph_ != io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance()) { - graph_ = - io.seldon.protos.DeploymentProtos.PredictiveUnit.newBuilder(graph_).mergeFrom(value).buildPartial(); - } else { - graph_ = value; - } - onChanged(); - } else { - graphBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public Builder clearGraph() { - if (graphBuilder_ == null) { - graph_ = null; - onChanged(); - } else { - graphBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder getGraphBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getGraphFieldBuilder().getBuilder(); - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder getGraphOrBuilder() { - if (graphBuilder_ != null) { - return graphBuilder_.getMessageOrBuilder(); - } else { - return graph_ == null ? - io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance() : graph_; - } - } - /** - *
-       * A graph describing how the predictive units are connected together.
-       * 
- * - * required .seldon.protos.PredictiveUnit graph = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictiveUnit, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder, io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder> - getGraphFieldBuilder() { - if (graphBuilder_ == null) { - graphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictiveUnit, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder, io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder>( - getGraph(), - getParentForChildren(), - isClean()); - graph_ = null; - } - return graphBuilder_; - } - - private java.util.List componentSpecs_ = - java.util.Collections.emptyList(); - private void ensureComponentSpecsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - componentSpecs_ = new java.util.ArrayList(componentSpecs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SeldonPodSpec, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder, io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder> componentSpecsBuilder_; - - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public java.util.List getComponentSpecsList() { - if (componentSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(componentSpecs_); - } else { - return componentSpecsBuilder_.getMessageList(); - } - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public int getComponentSpecsCount() { - if (componentSpecsBuilder_ == null) { - return componentSpecs_.size(); - } else { - return componentSpecsBuilder_.getCount(); - } - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpec getComponentSpecs(int index) { - if (componentSpecsBuilder_ == null) { - return componentSpecs_.get(index); - } else { - return componentSpecsBuilder_.getMessage(index); - } - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder setComponentSpecs( - int index, io.seldon.protos.DeploymentProtos.SeldonPodSpec value) { - if (componentSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentSpecsIsMutable(); - componentSpecs_.set(index, value); - onChanged(); - } else { - componentSpecsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder setComponentSpecs( - int index, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder builderForValue) { - if (componentSpecsBuilder_ == null) { - ensureComponentSpecsIsMutable(); - componentSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - componentSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder addComponentSpecs(io.seldon.protos.DeploymentProtos.SeldonPodSpec value) { - if (componentSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentSpecsIsMutable(); - componentSpecs_.add(value); - onChanged(); - } else { - componentSpecsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder addComponentSpecs( - int index, io.seldon.protos.DeploymentProtos.SeldonPodSpec value) { - if (componentSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentSpecsIsMutable(); - componentSpecs_.add(index, value); - onChanged(); - } else { - componentSpecsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder addComponentSpecs( - io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder builderForValue) { - if (componentSpecsBuilder_ == null) { - ensureComponentSpecsIsMutable(); - componentSpecs_.add(builderForValue.build()); - onChanged(); - } else { - componentSpecsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder addComponentSpecs( - int index, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder builderForValue) { - if (componentSpecsBuilder_ == null) { - ensureComponentSpecsIsMutable(); - componentSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - componentSpecsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder addAllComponentSpecs( - java.lang.Iterable values) { - if (componentSpecsBuilder_ == null) { - ensureComponentSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, componentSpecs_); - onChanged(); - } else { - componentSpecsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder clearComponentSpecs() { - if (componentSpecsBuilder_ == null) { - componentSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - componentSpecsBuilder_.clear(); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public Builder removeComponentSpecs(int index) { - if (componentSpecsBuilder_ == null) { - ensureComponentSpecsIsMutable(); - componentSpecs_.remove(index); - onChanged(); - } else { - componentSpecsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder getComponentSpecsBuilder( - int index) { - return getComponentSpecsFieldBuilder().getBuilder(index); - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder getComponentSpecsOrBuilder( - int index) { - if (componentSpecsBuilder_ == null) { - return componentSpecs_.get(index); } else { - return componentSpecsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public java.util.List - getComponentSpecsOrBuilderList() { - if (componentSpecsBuilder_ != null) { - return componentSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(componentSpecs_); - } - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder addComponentSpecsBuilder() { - return getComponentSpecsFieldBuilder().addBuilder( - io.seldon.protos.DeploymentProtos.SeldonPodSpec.getDefaultInstance()); - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder addComponentSpecsBuilder( - int index) { - return getComponentSpecsFieldBuilder().addBuilder( - index, io.seldon.protos.DeploymentProtos.SeldonPodSpec.getDefaultInstance()); - } - /** - *
-       * A description of the set of containers used by the graph. One for each microservice defined in the graph. Can be split over 1 or more PodTemplateSpecs.
-       * 
- * - * repeated .seldon.protos.SeldonPodSpec componentSpecs = 3; - */ - public java.util.List - getComponentSpecsBuilderList() { - return getComponentSpecsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SeldonPodSpec, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder, io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder> - getComponentSpecsFieldBuilder() { - if (componentSpecsBuilder_ == null) { - componentSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SeldonPodSpec, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder, io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder>( - componentSpecs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - componentSpecs_ = null; - } - return componentSpecsBuilder_; - } - - private int replicas_ ; - /** - *
-       * The number of replicas of the predictor to create.
-       * 
- * - * optional int32 replicas = 4; - */ - public boolean hasReplicas() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The number of replicas of the predictor to create.
-       * 
- * - * optional int32 replicas = 4; - */ - public int getReplicas() { - return replicas_; - } - /** - *
-       * The number of replicas of the predictor to create.
-       * 
- * - * optional int32 replicas = 4; - */ - public Builder setReplicas(int value) { - bitField0_ |= 0x00000008; - replicas_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of replicas of the predictor to create.
-       * 
- * - * optional int32 replicas = 4; - */ - public Builder clearReplicas() { - bitField0_ = (bitField0_ & ~0x00000008); - replicas_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Arbitrary annotations.
-       * 
- * - * map<string, string> annotations = 5; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - - private io.kubernetes.client.proto.V1.ResourceRequirements engineResources_; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> engineResourcesBuilder_; - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasEngineResources() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public io.kubernetes.client.proto.V1.ResourceRequirements getEngineResources() { - if (engineResourcesBuilder_ == null) { - return engineResources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : engineResources_; - } else { - return engineResourcesBuilder_.getMessage(); - } - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setEngineResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { - if (engineResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineResources_ = value; - onChanged(); - } else { - engineResourcesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setEngineResources( - io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { - if (engineResourcesBuilder_ == null) { - engineResources_ = builderForValue.build(); - onChanged(); - } else { - engineResourcesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeEngineResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { - if (engineResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - engineResources_ != null && - engineResources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { - engineResources_ = - io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(engineResources_).mergeFrom(value).buildPartial(); - } else { - engineResources_ = value; - } - onChanged(); - } else { - engineResourcesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearEngineResources() { - if (engineResourcesBuilder_ == null) { - engineResources_ = null; - onChanged(); - } else { - engineResourcesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getEngineResourcesBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEngineResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - @java.lang.Deprecated public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getEngineResourcesOrBuilder() { - if (engineResourcesBuilder_ != null) { - return engineResourcesBuilder_.getMessageOrBuilder(); - } else { - return engineResources_ == null ? - io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : engineResources_; - } - } - /** - *
-       * Optional set of resources for the Seldon engine which is added to each Predictor graph to manage the request/response flow
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements engineResources = 6 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> - getEngineResourcesFieldBuilder() { - if (engineResourcesBuilder_ == null) { - engineResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( - getEngineResources(), - getParentForChildren(), - isClean()); - engineResources_ = null; - } - return engineResourcesBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * labels to be attached to entry deplyment for this predictor
-       * 
- * - * map<string, string> labels = 7; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private io.seldon.protos.DeploymentProtos.SvcOrchSpec svcOrchSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SvcOrchSpec, io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder, io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder> svcOrchSpecBuilder_; - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public boolean hasSvcOrchSpec() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public io.seldon.protos.DeploymentProtos.SvcOrchSpec getSvcOrchSpec() { - if (svcOrchSpecBuilder_ == null) { - return svcOrchSpec_ == null ? io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance() : svcOrchSpec_; - } else { - return svcOrchSpecBuilder_.getMessage(); - } - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public Builder setSvcOrchSpec(io.seldon.protos.DeploymentProtos.SvcOrchSpec value) { - if (svcOrchSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - svcOrchSpec_ = value; - onChanged(); - } else { - svcOrchSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public Builder setSvcOrchSpec( - io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder builderForValue) { - if (svcOrchSpecBuilder_ == null) { - svcOrchSpec_ = builderForValue.build(); - onChanged(); - } else { - svcOrchSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public Builder mergeSvcOrchSpec(io.seldon.protos.DeploymentProtos.SvcOrchSpec value) { - if (svcOrchSpecBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - svcOrchSpec_ != null && - svcOrchSpec_ != io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance()) { - svcOrchSpec_ = - io.seldon.protos.DeploymentProtos.SvcOrchSpec.newBuilder(svcOrchSpec_).mergeFrom(value).buildPartial(); - } else { - svcOrchSpec_ = value; - } - onChanged(); - } else { - svcOrchSpecBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public Builder clearSvcOrchSpec() { - if (svcOrchSpecBuilder_ == null) { - svcOrchSpec_ = null; - onChanged(); - } else { - svcOrchSpecBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder getSvcOrchSpecBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getSvcOrchSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - public io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder getSvcOrchSpecOrBuilder() { - if (svcOrchSpecBuilder_ != null) { - return svcOrchSpecBuilder_.getMessageOrBuilder(); - } else { - return svcOrchSpec_ == null ? - io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance() : svcOrchSpec_; - } - } - /** - *
-       * Service Orchestrator configuration
-       * 
- * - * optional .seldon.protos.SvcOrchSpec svcOrchSpec = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SvcOrchSpec, io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder, io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder> - getSvcOrchSpecFieldBuilder() { - if (svcOrchSpecBuilder_ == null) { - svcOrchSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SvcOrchSpec, io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder, io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder>( - getSvcOrchSpec(), - getParentForChildren(), - isClean()); - svcOrchSpec_ = null; - } - return svcOrchSpecBuilder_; - } - - private int traffic_ ; - /** - *
-       * traffic weight for this predictor
-       * 
- * - * optional int32 traffic = 9; - */ - public boolean hasTraffic() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - *
-       * traffic weight for this predictor
-       * 
- * - * optional int32 traffic = 9; - */ - public int getTraffic() { - return traffic_; - } - /** - *
-       * traffic weight for this predictor
-       * 
- * - * optional int32 traffic = 9; - */ - public Builder setTraffic(int value) { - bitField0_ |= 0x00000100; - traffic_ = value; - onChanged(); - return this; - } - /** - *
-       * traffic weight for this predictor
-       * 
- * - * optional int32 traffic = 9; - */ - public Builder clearTraffic() { - bitField0_ = (bitField0_ & ~0x00000100); - traffic_ = 0; - onChanged(); - return this; - } - - private io.seldon.protos.DeploymentProtos.Explainer explainer_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Explainer, io.seldon.protos.DeploymentProtos.Explainer.Builder, io.seldon.protos.DeploymentProtos.ExplainerOrBuilder> explainerBuilder_; - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public boolean hasExplainer() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public io.seldon.protos.DeploymentProtos.Explainer getExplainer() { - if (explainerBuilder_ == null) { - return explainer_ == null ? io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance() : explainer_; - } else { - return explainerBuilder_.getMessage(); - } - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public Builder setExplainer(io.seldon.protos.DeploymentProtos.Explainer value) { - if (explainerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - explainer_ = value; - onChanged(); - } else { - explainerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public Builder setExplainer( - io.seldon.protos.DeploymentProtos.Explainer.Builder builderForValue) { - if (explainerBuilder_ == null) { - explainer_ = builderForValue.build(); - onChanged(); - } else { - explainerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public Builder mergeExplainer(io.seldon.protos.DeploymentProtos.Explainer value) { - if (explainerBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - explainer_ != null && - explainer_ != io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance()) { - explainer_ = - io.seldon.protos.DeploymentProtos.Explainer.newBuilder(explainer_).mergeFrom(value).buildPartial(); - } else { - explainer_ = value; - } - onChanged(); - } else { - explainerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public Builder clearExplainer() { - if (explainerBuilder_ == null) { - explainer_ = null; - onChanged(); - } else { - explainerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public io.seldon.protos.DeploymentProtos.Explainer.Builder getExplainerBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getExplainerFieldBuilder().getBuilder(); - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - public io.seldon.protos.DeploymentProtos.ExplainerOrBuilder getExplainerOrBuilder() { - if (explainerBuilder_ != null) { - return explainerBuilder_.getMessageOrBuilder(); - } else { - return explainer_ == null ? - io.seldon.protos.DeploymentProtos.Explainer.getDefaultInstance() : explainer_; - } - } - /** - *
-       * Explainer for predictor
-       * 
- * - * optional .seldon.protos.Explainer explainer = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Explainer, io.seldon.protos.DeploymentProtos.Explainer.Builder, io.seldon.protos.DeploymentProtos.ExplainerOrBuilder> - getExplainerFieldBuilder() { - if (explainerBuilder_ == null) { - explainerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Explainer, io.seldon.protos.DeploymentProtos.Explainer.Builder, io.seldon.protos.DeploymentProtos.ExplainerOrBuilder>( - getExplainer(), - getParentForChildren(), - isClean()); - explainer_ = null; - } - return explainerBuilder_; - } - @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:seldon.protos.PredictorSpec) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.PredictorSpec) - private static final io.seldon.protos.DeploymentProtos.PredictorSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.PredictorSpec(); - } - - public static io.seldon.protos.DeploymentProtos.PredictorSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictorSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictorSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictorSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SeldonPodSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.SeldonPodSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - boolean hasMetadata(); - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); - - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - boolean hasSpec(); - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - io.kubernetes.client.proto.V1.PodSpec getSpec(); - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder(); - - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - boolean hasHpaSpec(); - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - io.seldon.protos.DeploymentProtos.SeldonHpaSpec getHpaSpec(); - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder getHpaSpecOrBuilder(); - } - /** - * Protobuf type {@code seldon.protos.SeldonPodSpec} - */ - public static final class SeldonPodSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.SeldonPodSpec) - SeldonPodSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use SeldonPodSpec.newBuilder() to construct. - private SeldonPodSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SeldonPodSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SeldonPodSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SeldonPodSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - io.kubernetes.client.proto.V1.PodSpec.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(io.kubernetes.client.proto.V1.PodSpec.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = hpaSpec_.toBuilder(); - } - hpaSpec_ = input.readMessage(io.seldon.protos.DeploymentProtos.SeldonHpaSpec.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hpaSpec_); - hpaSpec_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonPodSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonPodSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SeldonPodSpec.class, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder.class); - } - - private int bitField0_; - public static final int METADATA_FIELD_NUMBER = 1; - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - - public static final int SPEC_FIELD_NUMBER = 2; - private io.kubernetes.client.proto.V1.PodSpec spec_; - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public boolean hasSpec() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public io.kubernetes.client.proto.V1.PodSpec getSpec() { - return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder() { - return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; - } - - public static final int HPASPEC_FIELD_NUMBER = 3; - private io.seldon.protos.DeploymentProtos.SeldonHpaSpec hpaSpec_; - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public boolean hasHpaSpec() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec getHpaSpec() { - return hpaSpec_ == null ? io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance() : hpaSpec_; - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder getHpaSpecOrBuilder() { - return hpaSpec_ == null ? io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance() : hpaSpec_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getMetadata()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getSpec()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getHpaSpec()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHpaSpec()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.SeldonPodSpec)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.SeldonPodSpec other = (io.seldon.protos.DeploymentProtos.SeldonPodSpec) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasHpaSpec() != other.hasHpaSpec()) return false; - if (hasHpaSpec()) { - if (!getHpaSpec() - .equals(other.getHpaSpec())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasHpaSpec()) { - hash = (37 * hash) + HPASPEC_FIELD_NUMBER; - hash = (53 * hash) + getHpaSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec 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 io.seldon.protos.DeploymentProtos.SeldonPodSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec 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 io.seldon.protos.DeploymentProtos.SeldonPodSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec 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(io.seldon.protos.DeploymentProtos.SeldonPodSpec 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 seldon.protos.SeldonPodSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.SeldonPodSpec) - io.seldon.protos.DeploymentProtos.SeldonPodSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonPodSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonPodSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SeldonPodSpec.class, io.seldon.protos.DeploymentProtos.SeldonPodSpec.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.SeldonPodSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - getSpecFieldBuilder(); - getHpaSpecFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (specBuilder_ == null) { - spec_ = null; - } else { - specBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (hpaSpecBuilder_ == null) { - hpaSpec_ = null; - } else { - hpaSpecBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonPodSpec_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonPodSpec getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.SeldonPodSpec.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonPodSpec build() { - io.seldon.protos.DeploymentProtos.SeldonPodSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonPodSpec buildPartial() { - io.seldon.protos.DeploymentProtos.SeldonPodSpec result = new io.seldon.protos.DeploymentProtos.SeldonPodSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - if (hpaSpecBuilder_ == null) { - result.hpaSpec_ = hpaSpec_; - } else { - result.hpaSpec_ = hpaSpecBuilder_.build(); - } - to_bitField0_ |= 0x00000004; - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.SeldonPodSpec) { - return mergeFrom((io.seldon.protos.DeploymentProtos.SeldonPodSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.SeldonPodSpec other) { - if (other == io.seldon.protos.DeploymentProtos.SeldonPodSpec.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasHpaSpec()) { - mergeHpaSpec(other.getHpaSpec()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - io.seldon.protos.DeploymentProtos.SeldonPodSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.SeldonPodSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public Builder setMetadata( - io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - metadata_ != null && - metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { - metadata_ = - io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - } - /** - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private io.kubernetes.client.proto.V1.PodSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder> specBuilder_; - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public boolean hasSpec() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public io.kubernetes.client.proto.V1.PodSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public Builder setSpec(io.kubernetes.client.proto.V1.PodSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public Builder setSpec( - io.kubernetes.client.proto.V1.PodSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public Builder mergeSpec(io.kubernetes.client.proto.V1.PodSpec value) { - if (specBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spec_ != null && - spec_ != io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance()) { - spec_ = - io.kubernetes.client.proto.V1.PodSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - specBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public io.kubernetes.client.proto.V1.PodSpec.Builder getSpecBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - public io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; - } - } - /** - * optional .k8s.io.api.core.v1.PodSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private io.seldon.protos.DeploymentProtos.SeldonHpaSpec hpaSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SeldonHpaSpec, io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder, io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder> hpaSpecBuilder_; - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public boolean hasHpaSpec() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec getHpaSpec() { - if (hpaSpecBuilder_ == null) { - return hpaSpec_ == null ? io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance() : hpaSpec_; - } else { - return hpaSpecBuilder_.getMessage(); - } - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public Builder setHpaSpec(io.seldon.protos.DeploymentProtos.SeldonHpaSpec value) { - if (hpaSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hpaSpec_ = value; - onChanged(); - } else { - hpaSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public Builder setHpaSpec( - io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder builderForValue) { - if (hpaSpecBuilder_ == null) { - hpaSpec_ = builderForValue.build(); - onChanged(); - } else { - hpaSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public Builder mergeHpaSpec(io.seldon.protos.DeploymentProtos.SeldonHpaSpec value) { - if (hpaSpecBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hpaSpec_ != null && - hpaSpec_ != io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance()) { - hpaSpec_ = - io.seldon.protos.DeploymentProtos.SeldonHpaSpec.newBuilder(hpaSpec_).mergeFrom(value).buildPartial(); - } else { - hpaSpec_ = value; - } - onChanged(); - } else { - hpaSpecBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public Builder clearHpaSpec() { - if (hpaSpecBuilder_ == null) { - hpaSpec_ = null; - onChanged(); - } else { - hpaSpecBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder getHpaSpecBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getHpaSpecFieldBuilder().getBuilder(); - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - public io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder getHpaSpecOrBuilder() { - if (hpaSpecBuilder_ != null) { - return hpaSpecBuilder_.getMessageOrBuilder(); - } else { - return hpaSpec_ == null ? - io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance() : hpaSpec_; - } - } - /** - * optional .seldon.protos.SeldonHpaSpec hpaSpec = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SeldonHpaSpec, io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder, io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder> - getHpaSpecFieldBuilder() { - if (hpaSpecBuilder_ == null) { - hpaSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.SeldonHpaSpec, io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder, io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder>( - getHpaSpec(), - getParentForChildren(), - isClean()); - hpaSpec_ = null; - } - return hpaSpecBuilder_; - } - @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:seldon.protos.SeldonPodSpec) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.SeldonPodSpec) - private static final io.seldon.protos.DeploymentProtos.SeldonPodSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.SeldonPodSpec(); - } - - public static io.seldon.protos.DeploymentProtos.SeldonPodSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeldonPodSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SeldonPodSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonPodSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SeldonHpaSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.SeldonHpaSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 minReplicas = 1; - */ - boolean hasMinReplicas(); - /** - * optional int32 minReplicas = 1; - */ - int getMinReplicas(); - - /** - * optional int32 maxReplicas = 2; - */ - boolean hasMaxReplicas(); - /** - * optional int32 maxReplicas = 2; - */ - int getMaxReplicas(); - - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - java.util.List - getMetricsList(); - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec getMetrics(int index); - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - int getMetricsCount(); - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpecOrBuilder getMetricsOrBuilder( - int index); - } - /** - * Protobuf type {@code seldon.protos.SeldonHpaSpec} - */ - public static final class SeldonHpaSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.SeldonHpaSpec) - SeldonHpaSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use SeldonHpaSpec.newBuilder() to construct. - private SeldonHpaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SeldonHpaSpec() { - metrics_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SeldonHpaSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SeldonHpaSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - minReplicas_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - maxReplicas_ = input.readInt32(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metrics_.add( - input.readMessage(io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonHpaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonHpaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SeldonHpaSpec.class, io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder.class); - } - - private int bitField0_; - public static final int MINREPLICAS_FIELD_NUMBER = 1; - private int minReplicas_; - /** - * optional int32 minReplicas = 1; - */ - public boolean hasMinReplicas() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 minReplicas = 1; - */ - public int getMinReplicas() { - return minReplicas_; - } - - public static final int MAXREPLICAS_FIELD_NUMBER = 2; - private int maxReplicas_; - /** - * optional int32 maxReplicas = 2; - */ - public boolean hasMaxReplicas() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 maxReplicas = 2; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public java.util.List getMetricsList() { - return metrics_; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public int getMetricsCount() { - return metrics_.size(); - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec getMetrics(int index) { - return metrics_.get(index); - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpecOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, minReplicas_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, maxReplicas_); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, minReplicas_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxReplicas_); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metrics_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.SeldonHpaSpec)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.SeldonHpaSpec other = (io.seldon.protos.DeploymentProtos.SeldonHpaSpec) obj; - - if (hasMinReplicas() != other.hasMinReplicas()) return false; - if (hasMinReplicas()) { - if (getMinReplicas() - != other.getMinReplicas()) return false; - } - if (hasMaxReplicas() != other.hasMaxReplicas()) return false; - if (hasMaxReplicas()) { - if (getMaxReplicas() - != other.getMaxReplicas()) return false; - } - if (!getMetricsList() - .equals(other.getMetricsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMinReplicas()) { - hash = (37 * hash) + MINREPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMinReplicas(); - } - if (hasMaxReplicas()) { - hash = (37 * hash) + MAXREPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMaxReplicas(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec 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 io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec 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 io.seldon.protos.DeploymentProtos.SeldonHpaSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec 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(io.seldon.protos.DeploymentProtos.SeldonHpaSpec 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 seldon.protos.SeldonHpaSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.SeldonHpaSpec) - io.seldon.protos.DeploymentProtos.SeldonHpaSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonHpaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonHpaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SeldonHpaSpec.class, io.seldon.protos.DeploymentProtos.SeldonHpaSpec.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.SeldonHpaSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetricsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - minReplicas_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - maxReplicas_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - metricsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SeldonHpaSpec_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec build() { - io.seldon.protos.DeploymentProtos.SeldonHpaSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec buildPartial() { - io.seldon.protos.DeploymentProtos.SeldonHpaSpec result = new io.seldon.protos.DeploymentProtos.SeldonHpaSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.minReplicas_ = minReplicas_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxReplicas_ = maxReplicas_; - to_bitField0_ |= 0x00000002; - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.SeldonHpaSpec) { - return mergeFrom((io.seldon.protos.DeploymentProtos.SeldonHpaSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.SeldonHpaSpec other) { - if (other == io.seldon.protos.DeploymentProtos.SeldonHpaSpec.getDefaultInstance()) return this; - if (other.hasMinReplicas()) { - setMinReplicas(other.getMinReplicas()); - } - if (other.hasMaxReplicas()) { - setMaxReplicas(other.getMaxReplicas()); - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - 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 { - io.seldon.protos.DeploymentProtos.SeldonHpaSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.SeldonHpaSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int minReplicas_ ; - /** - * optional int32 minReplicas = 1; - */ - public boolean hasMinReplicas() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 minReplicas = 1; - */ - public int getMinReplicas() { - return minReplicas_; - } - /** - * optional int32 minReplicas = 1; - */ - public Builder setMinReplicas(int value) { - bitField0_ |= 0x00000001; - minReplicas_ = value; - onChanged(); - return this; - } - /** - * optional int32 minReplicas = 1; - */ - public Builder clearMinReplicas() { - bitField0_ = (bitField0_ & ~0x00000001); - minReplicas_ = 0; - onChanged(); - return this; - } - - private int maxReplicas_ ; - /** - * optional int32 maxReplicas = 2; - */ - public boolean hasMaxReplicas() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 maxReplicas = 2; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - /** - * optional int32 maxReplicas = 2; - */ - public Builder setMaxReplicas(int value) { - bitField0_ |= 0x00000002; - maxReplicas_ = value; - onChanged(); - return this; - } - /** - * optional int32 maxReplicas = 2; - */ - public Builder clearMaxReplicas() { - bitField0_ = (bitField0_ & ~0x00000002); - maxReplicas_ = 0; - onChanged(); - return this; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpecOrBuilder> metricsBuilder_; - - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder setMetrics( - int index, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder setMetrics( - int index, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder addMetrics(io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder addMetrics( - int index, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder addMetrics( - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder addMetrics( - int index, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpecOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.getDefaultInstance()); - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.getDefaultInstance()); - } - /** - * repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpecOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder, io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpecOrBuilder>( - metrics_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - @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:seldon.protos.SeldonHpaSpec) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.SeldonHpaSpec) - private static final io.seldon.protos.DeploymentProtos.SeldonHpaSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.SeldonHpaSpec(); - } - - public static io.seldon.protos.DeploymentProtos.SeldonHpaSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeldonHpaSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SeldonHpaSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SeldonHpaSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SvcOrchSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.SvcOrchSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - boolean hasResources(); - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - io.kubernetes.client.proto.V1.ResourceRequirements getResources(); - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder(); - - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - java.util.List - getEnvList(); - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - io.kubernetes.client.proto.V1.EnvVar getEnv(int index); - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - int getEnvCount(); - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - java.util.List - getEnvOrBuilderList(); - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder( - int index); - } - /** - * Protobuf type {@code seldon.protos.SvcOrchSpec} - */ - public static final class SvcOrchSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.SvcOrchSpec) - SvcOrchSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use SvcOrchSpec.newBuilder() to construct. - private SvcOrchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SvcOrchSpec() { - env_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SvcOrchSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SvcOrchSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - env_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - env_.add( - input.readMessage(io.kubernetes.client.proto.V1.EnvVar.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SvcOrchSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SvcOrchSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SvcOrchSpec.class, io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder.class); - } - - private int bitField0_; - public static final int RESOURCES_FIELD_NUMBER = 1; - private io.kubernetes.client.proto.V1.ResourceRequirements resources_; - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public boolean hasResources() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { - return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { - return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; - } - - public static final int ENV_FIELD_NUMBER = 2; - private java.util.List env_; - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public java.util.List getEnvList() { - return env_; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public java.util.List - getEnvOrBuilderList() { - return env_; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public int getEnvCount() { - return env_.size(); - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) { - return env_.get(index); - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder( - int index) { - return env_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - output.writeMessage(2, env_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, env_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.SvcOrchSpec)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.SvcOrchSpec other = (io.seldon.protos.DeploymentProtos.SvcOrchSpec) obj; - - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (!getEnvList() - .equals(other.getEnvList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - if (getEnvCount() > 0) { - hash = (37 * hash) + ENV_FIELD_NUMBER; - hash = (53 * hash) + getEnvList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec 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 io.seldon.protos.DeploymentProtos.SvcOrchSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec 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 io.seldon.protos.DeploymentProtos.SvcOrchSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec 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(io.seldon.protos.DeploymentProtos.SvcOrchSpec 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 seldon.protos.SvcOrchSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.SvcOrchSpec) - io.seldon.protos.DeploymentProtos.SvcOrchSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SvcOrchSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SvcOrchSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.SvcOrchSpec.class, io.seldon.protos.DeploymentProtos.SvcOrchSpec.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.SvcOrchSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getResourcesFieldBuilder(); - getEnvFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resourcesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - envBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_SvcOrchSpec_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SvcOrchSpec getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SvcOrchSpec build() { - io.seldon.protos.DeploymentProtos.SvcOrchSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SvcOrchSpec buildPartial() { - io.seldon.protos.DeploymentProtos.SvcOrchSpec result = new io.seldon.protos.DeploymentProtos.SvcOrchSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (envBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.env_ = env_; - } else { - result.env_ = envBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.SvcOrchSpec) { - return mergeFrom((io.seldon.protos.DeploymentProtos.SvcOrchSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.SvcOrchSpec other) { - if (other == io.seldon.protos.DeploymentProtos.SvcOrchSpec.getDefaultInstance()) return this; - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (envBuilder_ == null) { - if (!other.env_.isEmpty()) { - if (env_.isEmpty()) { - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEnvIsMutable(); - env_.addAll(other.env_); - } - onChanged(); - } - } else { - if (!other.env_.isEmpty()) { - if (envBuilder_.isEmpty()) { - envBuilder_.dispose(); - envBuilder_ = null; - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000002); - envBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvFieldBuilder() : null; - } else { - envBuilder_.addAllMessages(other.env_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - 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 { - io.seldon.protos.DeploymentProtos.SvcOrchSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.SvcOrchSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private io.kubernetes.client.proto.V1.ResourceRequirements resources_; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public boolean hasResources() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public Builder setResources( - io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { - if (resourcesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - resources_ != null && - resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { - resources_ = - io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resourcesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; - } - } - /** - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private java.util.List env_ = - java.util.Collections.emptyList(); - private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> envBuilder_; - - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public java.util.List getEnvList() { - if (envBuilder_ == null) { - return java.util.Collections.unmodifiableList(env_); - } else { - return envBuilder_.getMessageList(); - } - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public int getEnvCount() { - if (envBuilder_ == null) { - return env_.size(); - } else { - return envBuilder_.getCount(); - } - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) { - if (envBuilder_ == null) { - return env_.get(index); - } else { - return envBuilder_.getMessage(index); - } - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder setEnv( - int index, io.kubernetes.client.proto.V1.EnvVar value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.set(index, value); - onChanged(); - } else { - envBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder setEnv( - int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.set(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder addEnv(io.kubernetes.client.proto.V1.EnvVar value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(value); - onChanged(); - } else { - envBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder addEnv( - int index, io.kubernetes.client.proto.V1.EnvVar value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(index, value); - onChanged(); - } else { - envBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder addEnv( - io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder addEnv( - int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder addAllEnv( - java.lang.Iterable values) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, env_); - onChanged(); - } else { - envBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder clearEnv() { - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - envBuilder_.clear(); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public Builder removeEnv(int index) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.remove(index); - onChanged(); - } else { - envBuilder_.remove(index); - } - return this; - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVar.Builder getEnvBuilder( - int index) { - return getEnvFieldBuilder().getBuilder(index); - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder( - int index) { - if (envBuilder_ == null) { - return env_.get(index); } else { - return envBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public java.util.List - getEnvOrBuilderList() { - if (envBuilder_ != null) { - return envBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(env_); - } - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder() { - return getEnvFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()); - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder( - int index) { - return getEnvFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()); - } - /** - * repeated .k8s.io.api.core.v1.EnvVar env = 2; - */ - public java.util.List - getEnvBuilderList() { - return getEnvFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> - getEnvFieldBuilder() { - if (envBuilder_ == null) { - envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder>( - env_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - env_ = null; - } - return envBuilder_; - } - @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:seldon.protos.SvcOrchSpec) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.SvcOrchSpec) - private static final io.seldon.protos.DeploymentProtos.SvcOrchSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.SvcOrchSpec(); - } - - public static io.seldon.protos.DeploymentProtos.SvcOrchSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SvcOrchSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SvcOrchSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.SvcOrchSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PredictiveUnitOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.PredictiveUnit) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *must match container name of component if no implementation
-     * 
- * - * required string name = 1; - */ - boolean hasName(); - /** - *
-     *must match container name of component if no implementation
-     * 
- * - * required string name = 1; - */ - java.lang.String getName(); - /** - *
-     *must match container name of component if no implementation
-     * 
- * - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - java.util.List - getChildrenList(); - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnit getChildren(int index); - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - int getChildrenCount(); - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - java.util.List - getChildrenOrBuilderList(); - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder getChildrenOrBuilder( - int index); - - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - boolean hasType(); - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType getType(); - - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - boolean hasImplementation(); - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation getImplementation(); - - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - java.util.List getMethodsList(); - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - int getMethodsCount(); - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod getMethods(int index); - - /** - *
-     * The exposed endpoint for this unit.
-     * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - boolean hasEndpoint(); - /** - *
-     * The exposed endpoint for this unit.
-     * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - io.seldon.protos.DeploymentProtos.Endpoint getEndpoint(); - /** - *
-     * The exposed endpoint for this unit.
-     * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - io.seldon.protos.DeploymentProtos.EndpointOrBuilder getEndpointOrBuilder(); - - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - java.util.List - getParametersList(); - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - io.seldon.protos.DeploymentProtos.Parameter getParameters(int index); - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - int getParametersCount(); - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - java.util.List - getParametersOrBuilderList(); - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - io.seldon.protos.DeploymentProtos.ParameterOrBuilder getParametersOrBuilder( - int index); - - /** - *
-     * Location of saved model
-     * 
- * - * optional string modelUri = 8; - */ - boolean hasModelUri(); - /** - *
-     * Location of saved model
-     * 
- * - * optional string modelUri = 8; - */ - java.lang.String getModelUri(); - /** - *
-     * Location of saved model
-     * 
- * - * optional string modelUri = 8; - */ - com.google.protobuf.ByteString - getModelUriBytes(); - - /** - *
-     * Service account for pulling model bucket
-     * 
- * - * optional string serviceAccountName = 9; - */ - boolean hasServiceAccountName(); - /** - *
-     * Service account for pulling model bucket
-     * 
- * - * optional string serviceAccountName = 9; - */ - java.lang.String getServiceAccountName(); - /** - *
-     * Service account for pulling model bucket
-     * 
- * - * optional string serviceAccountName = 9; - */ - com.google.protobuf.ByteString - getServiceAccountNameBytes(); - - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 10; - */ - boolean hasEnvSecretRefName(); - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 10; - */ - java.lang.String getEnvSecretRefName(); - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 10; - */ - com.google.protobuf.ByteString - getEnvSecretRefNameBytes(); - } - /** - *
-   **
-   * Represents a unit in a runtime prediction graph that performs a piece of functionality within the prediction request/response calls.
-   * 
- * - * Protobuf type {@code seldon.protos.PredictiveUnit} - */ - public static final class PredictiveUnit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.PredictiveUnit) - PredictiveUnitOrBuilder { - private static final long serialVersionUID = 0L; - // Use PredictiveUnit.newBuilder() to construct. - private PredictiveUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PredictiveUnit() { - name_ = ""; - children_ = java.util.Collections.emptyList(); - type_ = 0; - implementation_ = 0; - methods_ = java.util.Collections.emptyList(); - parameters_ = java.util.Collections.emptyList(); - modelUri_ = ""; - serviceAccountName_ = ""; - envSecretRefName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PredictiveUnit(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PredictiveUnit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - children_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - children_.add( - input.readMessage(io.seldon.protos.DeploymentProtos.PredictiveUnit.PARSER, extensionRegistry)); - break; - } - case 24: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType value = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = rawValue; - } - break; - } - case 32: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation value = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000004; - implementation_ = rawValue; - } - break; - } - case 40: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod value = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - methods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - methods_.add(rawValue); - } - break; - } - case 42: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod value = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - methods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - methods_.add(rawValue); - } - } - input.popLimit(oldLimit); - break; - } - case 50: { - io.seldon.protos.DeploymentProtos.Endpoint.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) != 0)) { - subBuilder = endpoint_.toBuilder(); - } - endpoint_ = input.readMessage(io.seldon.protos.DeploymentProtos.Endpoint.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endpoint_); - endpoint_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - parameters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - parameters_.add( - input.readMessage(io.seldon.protos.DeploymentProtos.Parameter.PARSER, extensionRegistry)); - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - modelUri_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - serviceAccountName_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - envSecretRefName_ = bs; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - children_ = java.util.Collections.unmodifiableList(children_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - methods_ = java.util.Collections.unmodifiableList(methods_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictiveUnit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictiveUnit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.PredictiveUnit.class, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder.class); - } - - /** - *
-     **
-     * The main type of the predictive unit. Routers decide where requests are sent, e.g. AB Tests and Multi-Armed Bandits. Combiners ensemble responses from their children. Models are leaft nodes in the predictive tree and provide request/reponse functionality encapsulating a machine learning model. Transformers alter the request features.
-     * 
- * - * Protobuf enum {@code seldon.protos.PredictiveUnit.PredictiveUnitType} - */ - public enum PredictiveUnitType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Each one of these defines a default combination of Predictive Unit Methods
-       * 
- * - * UNKNOWN_TYPE = 0; - */ - UNKNOWN_TYPE(0), - /** - *
-       * Route + send feedback
-       * 
- * - * ROUTER = 1; - */ - ROUTER(1), - /** - *
-       * Aggregate
-       * 
- * - * COMBINER = 2; - */ - COMBINER(2), - /** - *
-       * Transform input
-       * 
- * - * MODEL = 3; - */ - MODEL(3), - /** - *
-       * Transform input (alias)
-       * 
- * - * TRANSFORMER = 4; - */ - TRANSFORMER(4), - /** - *
-       * Transform output
-       * 
- * - * OUTPUT_TRANSFORMER = 5; - */ - OUTPUT_TRANSFORMER(5), - ; - - /** - *
-       * Each one of these defines a default combination of Predictive Unit Methods
-       * 
- * - * UNKNOWN_TYPE = 0; - */ - public static final int UNKNOWN_TYPE_VALUE = 0; - /** - *
-       * Route + send feedback
-       * 
- * - * ROUTER = 1; - */ - public static final int ROUTER_VALUE = 1; - /** - *
-       * Aggregate
-       * 
- * - * COMBINER = 2; - */ - public static final int COMBINER_VALUE = 2; - /** - *
-       * Transform input
-       * 
- * - * MODEL = 3; - */ - public static final int MODEL_VALUE = 3; - /** - *
-       * Transform input (alias)
-       * 
- * - * TRANSFORMER = 4; - */ - public static final int TRANSFORMER_VALUE = 4; - /** - *
-       * Transform output
-       * 
- * - * OUTPUT_TRANSFORMER = 5; - */ - public static final int OUTPUT_TRANSFORMER_VALUE = 5; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PredictiveUnitType valueOf(int value) { - return forNumber(value); - } - - public static PredictiveUnitType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_TYPE; - case 1: return ROUTER; - case 2: return COMBINER; - case 3: return MODEL; - case 4: return TRANSFORMER; - case 5: return OUTPUT_TRANSFORMER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PredictiveUnitType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PredictiveUnitType findValueByNumber(int number) { - return PredictiveUnitType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 io.seldon.protos.DeploymentProtos.PredictiveUnit.getDescriptor().getEnumTypes().get(0); - } - - private static final PredictiveUnitType[] VALUES = values(); - - public static PredictiveUnitType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PredictiveUnitType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:seldon.protos.PredictiveUnit.PredictiveUnitType) - } - - /** - * Protobuf enum {@code seldon.protos.PredictiveUnit.PredictiveUnitImplementation} - */ - public enum PredictiveUnitImplementation - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Each one of these are hardcoded in the engine, no microservice is used
-       * 
- * - * UNKNOWN_IMPLEMENTATION = 0; - */ - UNKNOWN_IMPLEMENTATION(0), - /** - *
-       * An internal model stub for testing.
-       * 
- * - * SIMPLE_MODEL = 1; - */ - SIMPLE_MODEL(1), - /** - *
-       * An internal router for testing.
-       * 
- * - * SIMPLE_ROUTER = 2; - */ - SIMPLE_ROUTER(2), - /** - *
-       * A A-B test that sends traffic 50% to each child randomly.
-       * 
- * - * RANDOM_ABTEST = 3; - */ - RANDOM_ABTEST(3), - /** - *
-       * A default combiner that returns the average of its children responses.
-       * 
- * - * AVERAGE_COMBINER = 4; - */ - AVERAGE_COMBINER(4), - /** - *
-       * default sklearn server
-       * 
- * - * SKLEARN_SERVER = 5; - */ - SKLEARN_SERVER(5), - /** - *
-       * default xgboost server
-       * 
- * - * XGBOOST_SERVER = 6; - */ - XGBOOST_SERVER(6), - /** - *
-       * default tensorflow server    
-       * 
- * - * TENSORFLOW_SERVER = 7; - */ - TENSORFLOW_SERVER(7), - /** - *
-       * default mlflow server    
-       * 
- * - * MLFLOW_SERVER = 8; - */ - MLFLOW_SERVER(8), - ; - - /** - *
-       * Each one of these are hardcoded in the engine, no microservice is used
-       * 
- * - * UNKNOWN_IMPLEMENTATION = 0; - */ - public static final int UNKNOWN_IMPLEMENTATION_VALUE = 0; - /** - *
-       * An internal model stub for testing.
-       * 
- * - * SIMPLE_MODEL = 1; - */ - public static final int SIMPLE_MODEL_VALUE = 1; - /** - *
-       * An internal router for testing.
-       * 
- * - * SIMPLE_ROUTER = 2; - */ - public static final int SIMPLE_ROUTER_VALUE = 2; - /** - *
-       * A A-B test that sends traffic 50% to each child randomly.
-       * 
- * - * RANDOM_ABTEST = 3; - */ - public static final int RANDOM_ABTEST_VALUE = 3; - /** - *
-       * A default combiner that returns the average of its children responses.
-       * 
- * - * AVERAGE_COMBINER = 4; - */ - public static final int AVERAGE_COMBINER_VALUE = 4; - /** - *
-       * default sklearn server
-       * 
- * - * SKLEARN_SERVER = 5; - */ - public static final int SKLEARN_SERVER_VALUE = 5; - /** - *
-       * default xgboost server
-       * 
- * - * XGBOOST_SERVER = 6; - */ - public static final int XGBOOST_SERVER_VALUE = 6; - /** - *
-       * default tensorflow server    
-       * 
- * - * TENSORFLOW_SERVER = 7; - */ - public static final int TENSORFLOW_SERVER_VALUE = 7; - /** - *
-       * default mlflow server    
-       * 
- * - * MLFLOW_SERVER = 8; - */ - public static final int MLFLOW_SERVER_VALUE = 8; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PredictiveUnitImplementation valueOf(int value) { - return forNumber(value); - } - - public static PredictiveUnitImplementation forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_IMPLEMENTATION; - case 1: return SIMPLE_MODEL; - case 2: return SIMPLE_ROUTER; - case 3: return RANDOM_ABTEST; - case 4: return AVERAGE_COMBINER; - case 5: return SKLEARN_SERVER; - case 6: return XGBOOST_SERVER; - case 7: return TENSORFLOW_SERVER; - case 8: return MLFLOW_SERVER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PredictiveUnitImplementation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PredictiveUnitImplementation findValueByNumber(int number) { - return PredictiveUnitImplementation.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 io.seldon.protos.DeploymentProtos.PredictiveUnit.getDescriptor().getEnumTypes().get(1); - } - - private static final PredictiveUnitImplementation[] VALUES = values(); - - public static PredictiveUnitImplementation valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PredictiveUnitImplementation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:seldon.protos.PredictiveUnit.PredictiveUnitImplementation) - } - - /** - * Protobuf enum {@code seldon.protos.PredictiveUnit.PredictiveUnitMethod} - */ - public enum PredictiveUnitMethod - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TRANSFORM_INPUT = 0; - */ - TRANSFORM_INPUT(0), - /** - * TRANSFORM_OUTPUT = 1; - */ - TRANSFORM_OUTPUT(1), - /** - * ROUTE = 2; - */ - ROUTE(2), - /** - * AGGREGATE = 3; - */ - AGGREGATE(3), - /** - * SEND_FEEDBACK = 4; - */ - SEND_FEEDBACK(4), - ; - - /** - * TRANSFORM_INPUT = 0; - */ - public static final int TRANSFORM_INPUT_VALUE = 0; - /** - * TRANSFORM_OUTPUT = 1; - */ - public static final int TRANSFORM_OUTPUT_VALUE = 1; - /** - * ROUTE = 2; - */ - public static final int ROUTE_VALUE = 2; - /** - * AGGREGATE = 3; - */ - public static final int AGGREGATE_VALUE = 3; - /** - * SEND_FEEDBACK = 4; - */ - public static final int SEND_FEEDBACK_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PredictiveUnitMethod valueOf(int value) { - return forNumber(value); - } - - public static PredictiveUnitMethod forNumber(int value) { - switch (value) { - case 0: return TRANSFORM_INPUT; - case 1: return TRANSFORM_OUTPUT; - case 2: return ROUTE; - case 3: return AGGREGATE; - case 4: return SEND_FEEDBACK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PredictiveUnitMethod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PredictiveUnitMethod findValueByNumber(int number) { - return PredictiveUnitMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 io.seldon.protos.DeploymentProtos.PredictiveUnit.getDescriptor().getEnumTypes().get(2); - } - - private static final PredictiveUnitMethod[] VALUES = values(); - - public static PredictiveUnitMethod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PredictiveUnitMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:seldon.protos.PredictiveUnit.PredictiveUnitMethod) - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     *must match container name of component if no implementation
-     * 
- * - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     *must match container name of component if no implementation
-     * 
- * - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - *
-     *must match container name of component if no implementation
-     * 
- * - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILDREN_FIELD_NUMBER = 2; - private java.util.List children_; - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public java.util.List getChildrenList() { - return children_; - } - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public java.util.List - getChildrenOrBuilderList() { - return children_; - } - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public int getChildrenCount() { - return children_.size(); - } - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit getChildren(int index) { - return children_.get(index); - } - /** - *
-     * The child predictive units.
-     * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder getChildrenOrBuilder( - int index) { - return children_.get(index); - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType getType() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType result = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType.valueOf(type_); - return result == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType.UNKNOWN_TYPE : result; - } - - public static final int IMPLEMENTATION_FIELD_NUMBER = 4; - private int implementation_; - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - public boolean hasImplementation() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation getImplementation() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation result = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation.valueOf(implementation_); - return result == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation.UNKNOWN_IMPLEMENTATION : result; - } - - public static final int METHODS_FIELD_NUMBER = 5; - private java.util.List methods_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod> methods_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod>() { - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod result = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod.valueOf(from); - return result == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod.TRANSFORM_INPUT : result; - } - }; - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public java.util.List getMethodsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod>(methods_, methods_converter_); - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public int getMethodsCount() { - return methods_.size(); - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod getMethods(int index) { - return methods_converter_.convert(methods_.get(index)); - } - - public static final int ENDPOINT_FIELD_NUMBER = 6; - private io.seldon.protos.DeploymentProtos.Endpoint endpoint_; - /** - *
-     * The exposed endpoint for this unit.
-     * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public boolean hasEndpoint() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The exposed endpoint for this unit.
-     * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public io.seldon.protos.DeploymentProtos.Endpoint getEndpoint() { - return endpoint_ == null ? io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance() : endpoint_; - } - /** - *
-     * The exposed endpoint for this unit.
-     * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public io.seldon.protos.DeploymentProtos.EndpointOrBuilder getEndpointOrBuilder() { - return endpoint_ == null ? io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance() : endpoint_; - } - - public static final int PARAMETERS_FIELD_NUMBER = 7; - private java.util.List parameters_; - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public java.util.List getParametersList() { - return parameters_; - } - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public java.util.List - getParametersOrBuilderList() { - return parameters_; - } - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public int getParametersCount() { - return parameters_.size(); - } - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.Parameter getParameters(int index) { - return parameters_.get(index); - } - /** - *
-     * Customer parameter to pass to the unit.
-     * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.ParameterOrBuilder getParametersOrBuilder( - int index) { - return parameters_.get(index); - } - - public static final int MODELURI_FIELD_NUMBER = 8; - private volatile java.lang.Object modelUri_; - /** - *
-     * Location of saved model
-     * 
- * - * optional string modelUri = 8; - */ - public boolean hasModelUri() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Location of saved model
-     * 
- * - * optional string modelUri = 8; - */ - public java.lang.String getModelUri() { - java.lang.Object ref = modelUri_; - 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(); - if (bs.isValidUtf8()) { - modelUri_ = s; - } - return s; - } - } - /** - *
-     * Location of saved model
-     * 
- * - * optional string modelUri = 8; - */ - public com.google.protobuf.ByteString - getModelUriBytes() { - java.lang.Object ref = modelUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - modelUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICEACCOUNTNAME_FIELD_NUMBER = 9; - private volatile java.lang.Object serviceAccountName_; - /** - *
-     * Service account for pulling model bucket
-     * 
- * - * optional string serviceAccountName = 9; - */ - public boolean hasServiceAccountName() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Service account for pulling model bucket
-     * 
- * - * optional string serviceAccountName = 9; - */ - public java.lang.String getServiceAccountName() { - java.lang.Object ref = serviceAccountName_; - 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(); - if (bs.isValidUtf8()) { - serviceAccountName_ = s; - } - return s; - } - } - /** - *
-     * Service account for pulling model bucket
-     * 
- * - * optional string serviceAccountName = 9; - */ - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { - java.lang.Object ref = serviceAccountName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccountName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENVSECRETREFNAME_FIELD_NUMBER = 10; - private volatile java.lang.Object envSecretRefName_; - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 10; - */ - public boolean hasEnvSecretRefName() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 10; - */ - public java.lang.String getEnvSecretRefName() { - java.lang.Object ref = envSecretRefName_; - 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(); - if (bs.isValidUtf8()) { - envSecretRefName_ = s; - } - return s; - } - } - /** - *
-     * Secret for pulling from bucket
-     * 
- * - * optional string envSecretRefName = 10; - */ - public com.google.protobuf.ByteString - getEnvSecretRefNameBytes() { - java.lang.Object ref = envSecretRefName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - envSecretRefName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getChildrenCount(); i++) { - if (!getChildren(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getParametersCount(); i++) { - if (!getParameters(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < children_.size(); i++) { - output.writeMessage(2, children_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(3, type_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(4, implementation_); - } - for (int i = 0; i < methods_.size(); i++) { - output.writeEnum(5, methods_.get(i)); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(6, getEndpoint()); - } - for (int i = 0; i < parameters_.size(); i++) { - output.writeMessage(7, parameters_.get(i)); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, modelUri_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccountName_); - } - if (((bitField0_ & 0x00000040) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, envSecretRefName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < children_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, children_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, implementation_); - } - { - int dataSize = 0; - for (int i = 0; i < methods_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(methods_.get(i)); - } - size += dataSize; - size += 1 * methods_.size(); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEndpoint()); - } - for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, parameters_.get(i)); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, modelUri_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccountName_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, envSecretRefName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.PredictiveUnit)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.PredictiveUnit other = (io.seldon.protos.DeploymentProtos.PredictiveUnit) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (!getChildrenList() - .equals(other.getChildrenList())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (type_ != other.type_) return false; - } - if (hasImplementation() != other.hasImplementation()) return false; - if (hasImplementation()) { - if (implementation_ != other.implementation_) return false; - } - if (!methods_.equals(other.methods_)) return false; - if (hasEndpoint() != other.hasEndpoint()) return false; - if (hasEndpoint()) { - if (!getEndpoint() - .equals(other.getEndpoint())) return false; - } - if (!getParametersList() - .equals(other.getParametersList())) return false; - if (hasModelUri() != other.hasModelUri()) return false; - if (hasModelUri()) { - if (!getModelUri() - .equals(other.getModelUri())) return false; - } - if (hasServiceAccountName() != other.hasServiceAccountName()) return false; - if (hasServiceAccountName()) { - if (!getServiceAccountName() - .equals(other.getServiceAccountName())) return false; - } - if (hasEnvSecretRefName() != other.hasEnvSecretRefName()) return false; - if (hasEnvSecretRefName()) { - if (!getEnvSecretRefName() - .equals(other.getEnvSecretRefName())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (getChildrenCount() > 0) { - hash = (37 * hash) + CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + getChildrenList().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasImplementation()) { - hash = (37 * hash) + IMPLEMENTATION_FIELD_NUMBER; - hash = (53 * hash) + implementation_; - } - if (getMethodsCount() > 0) { - hash = (37 * hash) + METHODS_FIELD_NUMBER; - hash = (53 * hash) + methods_.hashCode(); - } - if (hasEndpoint()) { - hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getEndpoint().hashCode(); - } - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); - } - if (hasModelUri()) { - hash = (37 * hash) + MODELURI_FIELD_NUMBER; - hash = (53 * hash) + getModelUri().hashCode(); - } - if (hasServiceAccountName()) { - hash = (37 * hash) + SERVICEACCOUNTNAME_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountName().hashCode(); - } - if (hasEnvSecretRefName()) { - hash = (37 * hash) + ENVSECRETREFNAME_FIELD_NUMBER; - hash = (53 * hash) + getEnvSecretRefName().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit 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 io.seldon.protos.DeploymentProtos.PredictiveUnit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit 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 io.seldon.protos.DeploymentProtos.PredictiveUnit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.PredictiveUnit 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(io.seldon.protos.DeploymentProtos.PredictiveUnit 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; - } - /** - *
-     **
-     * Represents a unit in a runtime prediction graph that performs a piece of functionality within the prediction request/response calls.
-     * 
- * - * Protobuf type {@code seldon.protos.PredictiveUnit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.PredictiveUnit) - io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictiveUnit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictiveUnit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.PredictiveUnit.class, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.PredictiveUnit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChildrenFieldBuilder(); - getEndpointFieldBuilder(); - getParametersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (childrenBuilder_ == null) { - children_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - childrenBuilder_.clear(); - } - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - implementation_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - methods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - if (endpointBuilder_ == null) { - endpoint_ = null; - } else { - endpointBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - parametersBuilder_.clear(); - } - modelUri_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - serviceAccountName_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - envSecretRefName_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_PredictiveUnit_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictiveUnit getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictiveUnit build() { - io.seldon.protos.DeploymentProtos.PredictiveUnit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictiveUnit buildPartial() { - io.seldon.protos.DeploymentProtos.PredictiveUnit result = new io.seldon.protos.DeploymentProtos.PredictiveUnit(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (childrenBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - children_ = java.util.Collections.unmodifiableList(children_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.children_ = children_; - } else { - result.children_ = childrenBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000008) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.implementation_ = implementation_; - if (((bitField0_ & 0x00000010) != 0)) { - methods_ = java.util.Collections.unmodifiableList(methods_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.methods_ = methods_; - if (((from_bitField0_ & 0x00000020) != 0)) { - if (endpointBuilder_ == null) { - result.endpoint_ = endpoint_; - } else { - result.endpoint_ = endpointBuilder_.build(); - } - to_bitField0_ |= 0x00000008; - } - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - to_bitField0_ |= 0x00000010; - } - result.modelUri_ = modelUri_; - if (((from_bitField0_ & 0x00000100) != 0)) { - to_bitField0_ |= 0x00000020; - } - result.serviceAccountName_ = serviceAccountName_; - if (((from_bitField0_ & 0x00000200) != 0)) { - to_bitField0_ |= 0x00000040; - } - result.envSecretRefName_ = envSecretRefName_; - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.PredictiveUnit) { - return mergeFrom((io.seldon.protos.DeploymentProtos.PredictiveUnit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.PredictiveUnit other) { - if (other == io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (childrenBuilder_ == null) { - if (!other.children_.isEmpty()) { - if (children_.isEmpty()) { - children_ = other.children_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureChildrenIsMutable(); - children_.addAll(other.children_); - } - onChanged(); - } - } else { - if (!other.children_.isEmpty()) { - if (childrenBuilder_.isEmpty()) { - childrenBuilder_.dispose(); - childrenBuilder_ = null; - children_ = other.children_; - bitField0_ = (bitField0_ & ~0x00000002); - childrenBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChildrenFieldBuilder() : null; - } else { - childrenBuilder_.addAllMessages(other.children_); - } - } - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasImplementation()) { - setImplementation(other.getImplementation()); - } - if (!other.methods_.isEmpty()) { - if (methods_.isEmpty()) { - methods_ = other.methods_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureMethodsIsMutable(); - methods_.addAll(other.methods_); - } - onChanged(); - } - if (other.hasEndpoint()) { - mergeEndpoint(other.getEndpoint()); - } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000040); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParametersFieldBuilder() : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } - } - } - if (other.hasModelUri()) { - bitField0_ |= 0x00000080; - modelUri_ = other.modelUri_; - onChanged(); - } - if (other.hasServiceAccountName()) { - bitField0_ |= 0x00000100; - serviceAccountName_ = other.serviceAccountName_; - onChanged(); - } - if (other.hasEnvSecretRefName()) { - bitField0_ |= 0x00000200; - envSecretRefName_ = other.envSecretRefName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - for (int i = 0; i < getChildrenCount(); i++) { - if (!getChildren(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getParametersCount(); i++) { - if (!getParameters(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.PredictiveUnit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.PredictiveUnit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       *must match container name of component if no implementation
-       * 
- * - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       *must match container name of component if no implementation
-       * 
- * - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *must match container name of component if no implementation
-       * 
- * - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *must match container name of component if no implementation
-       * 
- * - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - *
-       *must match container name of component if no implementation
-       * 
- * - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       *must match container name of component if no implementation
-       * 
- * - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.util.List children_ = - java.util.Collections.emptyList(); - private void ensureChildrenIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - children_ = new java.util.ArrayList(children_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictiveUnit, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder, io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder> childrenBuilder_; - - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public java.util.List getChildrenList() { - if (childrenBuilder_ == null) { - return java.util.Collections.unmodifiableList(children_); - } else { - return childrenBuilder_.getMessageList(); - } - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public int getChildrenCount() { - if (childrenBuilder_ == null) { - return children_.size(); - } else { - return childrenBuilder_.getCount(); - } - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit getChildren(int index) { - if (childrenBuilder_ == null) { - return children_.get(index); - } else { - return childrenBuilder_.getMessage(index); - } - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder setChildren( - int index, io.seldon.protos.DeploymentProtos.PredictiveUnit value) { - if (childrenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildrenIsMutable(); - children_.set(index, value); - onChanged(); - } else { - childrenBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder setChildren( - int index, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder builderForValue) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.set(index, builderForValue.build()); - onChanged(); - } else { - childrenBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder addChildren(io.seldon.protos.DeploymentProtos.PredictiveUnit value) { - if (childrenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildrenIsMutable(); - children_.add(value); - onChanged(); - } else { - childrenBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder addChildren( - int index, io.seldon.protos.DeploymentProtos.PredictiveUnit value) { - if (childrenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildrenIsMutable(); - children_.add(index, value); - onChanged(); - } else { - childrenBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder addChildren( - io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder builderForValue) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.add(builderForValue.build()); - onChanged(); - } else { - childrenBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder addChildren( - int index, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder builderForValue) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.add(index, builderForValue.build()); - onChanged(); - } else { - childrenBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder addAllChildren( - java.lang.Iterable values) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, children_); - onChanged(); - } else { - childrenBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder clearChildren() { - if (childrenBuilder_ == null) { - children_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - childrenBuilder_.clear(); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public Builder removeChildren(int index) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.remove(index); - onChanged(); - } else { - childrenBuilder_.remove(index); - } - return this; - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder getChildrenBuilder( - int index) { - return getChildrenFieldBuilder().getBuilder(index); - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder getChildrenOrBuilder( - int index) { - if (childrenBuilder_ == null) { - return children_.get(index); } else { - return childrenBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public java.util.List - getChildrenOrBuilderList() { - if (childrenBuilder_ != null) { - return childrenBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(children_); - } - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder addChildrenBuilder() { - return getChildrenFieldBuilder().addBuilder( - io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance()); - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder addChildrenBuilder( - int index) { - return getChildrenFieldBuilder().addBuilder( - index, io.seldon.protos.DeploymentProtos.PredictiveUnit.getDefaultInstance()); - } - /** - *
-       * The child predictive units.
-       * 
- * - * repeated .seldon.protos.PredictiveUnit children = 2; - */ - public java.util.List - getChildrenBuilderList() { - return getChildrenFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictiveUnit, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder, io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder> - getChildrenFieldBuilder() { - if (childrenBuilder_ == null) { - childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.PredictiveUnit, io.seldon.protos.DeploymentProtos.PredictiveUnit.Builder, io.seldon.protos.DeploymentProtos.PredictiveUnitOrBuilder>( - children_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - children_ = null; - } - return childrenBuilder_; - } - - private int type_ = 0; - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType getType() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType result = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType.valueOf(type_); - return result == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType.UNKNOWN_TYPE : result; - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - public Builder setType(io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitType type = 3; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = 0; - onChanged(); - return this; - } - - private int implementation_ = 0; - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - public boolean hasImplementation() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation getImplementation() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation result = io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation.valueOf(implementation_); - return result == null ? io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation.UNKNOWN_IMPLEMENTATION : result; - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - public Builder setImplementation(io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitImplementation value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - implementation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .seldon.protos.PredictiveUnit.PredictiveUnitImplementation implementation = 4; - */ - public Builder clearImplementation() { - bitField0_ = (bitField0_ & ~0x00000008); - implementation_ = 0; - onChanged(); - return this; - } - - private java.util.List methods_ = - java.util.Collections.emptyList(); - private void ensureMethodsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - methods_ = new java.util.ArrayList(methods_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public java.util.List getMethodsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod>(methods_, methods_converter_); - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public int getMethodsCount() { - return methods_.size(); - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod getMethods(int index) { - return methods_converter_.convert(methods_.get(index)); - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public Builder setMethods( - int index, io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); - methods_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public Builder addMethods(io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); - methods_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public Builder addAllMethods( - java.lang.Iterable values) { - ensureMethodsIsMutable(); - for (io.seldon.protos.DeploymentProtos.PredictiveUnit.PredictiveUnitMethod value : values) { - methods_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .seldon.protos.PredictiveUnit.PredictiveUnitMethod methods = 5; - */ - public Builder clearMethods() { - methods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private io.seldon.protos.DeploymentProtos.Endpoint endpoint_; - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Endpoint, io.seldon.protos.DeploymentProtos.Endpoint.Builder, io.seldon.protos.DeploymentProtos.EndpointOrBuilder> endpointBuilder_; - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public boolean hasEndpoint() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public io.seldon.protos.DeploymentProtos.Endpoint getEndpoint() { - if (endpointBuilder_ == null) { - return endpoint_ == null ? io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance() : endpoint_; - } else { - return endpointBuilder_.getMessage(); - } - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public Builder setEndpoint(io.seldon.protos.DeploymentProtos.Endpoint value) { - if (endpointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endpoint_ = value; - onChanged(); - } else { - endpointBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public Builder setEndpoint( - io.seldon.protos.DeploymentProtos.Endpoint.Builder builderForValue) { - if (endpointBuilder_ == null) { - endpoint_ = builderForValue.build(); - onChanged(); - } else { - endpointBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public Builder mergeEndpoint(io.seldon.protos.DeploymentProtos.Endpoint value) { - if (endpointBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - endpoint_ != null && - endpoint_ != io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance()) { - endpoint_ = - io.seldon.protos.DeploymentProtos.Endpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial(); - } else { - endpoint_ = value; - } - onChanged(); - } else { - endpointBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public Builder clearEndpoint() { - if (endpointBuilder_ == null) { - endpoint_ = null; - onChanged(); - } else { - endpointBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public io.seldon.protos.DeploymentProtos.Endpoint.Builder getEndpointBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEndpointFieldBuilder().getBuilder(); - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - public io.seldon.protos.DeploymentProtos.EndpointOrBuilder getEndpointOrBuilder() { - if (endpointBuilder_ != null) { - return endpointBuilder_.getMessageOrBuilder(); - } else { - return endpoint_ == null ? - io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance() : endpoint_; - } - } - /** - *
-       * The exposed endpoint for this unit.
-       * 
- * - * optional .seldon.protos.Endpoint endpoint = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Endpoint, io.seldon.protos.DeploymentProtos.Endpoint.Builder, io.seldon.protos.DeploymentProtos.EndpointOrBuilder> - getEndpointFieldBuilder() { - if (endpointBuilder_ == null) { - endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Endpoint, io.seldon.protos.DeploymentProtos.Endpoint.Builder, io.seldon.protos.DeploymentProtos.EndpointOrBuilder>( - getEndpoint(), - getParentForChildren(), - isClean()); - endpoint_ = null; - } - return endpointBuilder_; - } - - private java.util.List parameters_ = - java.util.Collections.emptyList(); - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - parameters_ = new java.util.ArrayList(parameters_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Parameter, io.seldon.protos.DeploymentProtos.Parameter.Builder, io.seldon.protos.DeploymentProtos.ParameterOrBuilder> parametersBuilder_; - - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public java.util.List getParametersList() { - if (parametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameters_); - } else { - return parametersBuilder_.getMessageList(); - } - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public int getParametersCount() { - if (parametersBuilder_ == null) { - return parameters_.size(); - } else { - return parametersBuilder_.getCount(); - } - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.Parameter getParameters(int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessage(index); - } - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder setParameters( - int index, io.seldon.protos.DeploymentProtos.Parameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.set(index, value); - onChanged(); - } else { - parametersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder setParameters( - int index, io.seldon.protos.DeploymentProtos.Parameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder addParameters(io.seldon.protos.DeploymentProtos.Parameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(value); - onChanged(); - } else { - parametersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder addParameters( - int index, io.seldon.protos.DeploymentProtos.Parameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(index, value); - onChanged(); - } else { - parametersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder addParameters( - io.seldon.protos.DeploymentProtos.Parameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder addParameters( - int index, io.seldon.protos.DeploymentProtos.Parameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder addAllParameters( - java.lang.Iterable values) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameters_); - onChanged(); - } else { - parametersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - parametersBuilder_.clear(); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public Builder removeParameters(int index) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.remove(index); - onChanged(); - } else { - parametersBuilder_.remove(index); - } - return this; - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.Parameter.Builder getParametersBuilder( - int index) { - return getParametersFieldBuilder().getBuilder(index); - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.ParameterOrBuilder getParametersOrBuilder( - int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); } else { - return parametersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public java.util.List - getParametersOrBuilderList() { - if (parametersBuilder_ != null) { - return parametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parameters_); - } - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.Parameter.Builder addParametersBuilder() { - return getParametersFieldBuilder().addBuilder( - io.seldon.protos.DeploymentProtos.Parameter.getDefaultInstance()); - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public io.seldon.protos.DeploymentProtos.Parameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder().addBuilder( - index, io.seldon.protos.DeploymentProtos.Parameter.getDefaultInstance()); - } - /** - *
-       * Customer parameter to pass to the unit.
-       * 
- * - * repeated .seldon.protos.Parameter parameters = 7; - */ - public java.util.List - getParametersBuilderList() { - return getParametersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Parameter, io.seldon.protos.DeploymentProtos.Parameter.Builder, io.seldon.protos.DeploymentProtos.ParameterOrBuilder> - getParametersFieldBuilder() { - if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.seldon.protos.DeploymentProtos.Parameter, io.seldon.protos.DeploymentProtos.Parameter.Builder, io.seldon.protos.DeploymentProtos.ParameterOrBuilder>( - parameters_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - parameters_ = null; - } - return parametersBuilder_; - } - - private java.lang.Object modelUri_ = ""; - /** - *
-       * Location of saved model
-       * 
- * - * optional string modelUri = 8; - */ - public boolean hasModelUri() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-       * Location of saved model
-       * 
- * - * optional string modelUri = 8; - */ - public java.lang.String getModelUri() { - java.lang.Object ref = modelUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - modelUri_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Location of saved model
-       * 
- * - * optional string modelUri = 8; - */ - public com.google.protobuf.ByteString - getModelUriBytes() { - java.lang.Object ref = modelUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - modelUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Location of saved model
-       * 
- * - * optional string modelUri = 8; - */ - public Builder setModelUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - modelUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Location of saved model
-       * 
- * - * optional string modelUri = 8; - */ - public Builder clearModelUri() { - bitField0_ = (bitField0_ & ~0x00000080); - modelUri_ = getDefaultInstance().getModelUri(); - onChanged(); - return this; - } - /** - *
-       * Location of saved model
-       * 
- * - * optional string modelUri = 8; - */ - public Builder setModelUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - modelUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceAccountName_ = ""; - /** - *
-       * Service account for pulling model bucket
-       * 
- * - * optional string serviceAccountName = 9; - */ - public boolean hasServiceAccountName() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - *
-       * Service account for pulling model bucket
-       * 
- * - * optional string serviceAccountName = 9; - */ - public java.lang.String getServiceAccountName() { - java.lang.Object ref = serviceAccountName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - serviceAccountName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Service account for pulling model bucket
-       * 
- * - * optional string serviceAccountName = 9; - */ - public com.google.protobuf.ByteString - getServiceAccountNameBytes() { - java.lang.Object ref = serviceAccountName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccountName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Service account for pulling model bucket
-       * 
- * - * optional string serviceAccountName = 9; - */ - public Builder setServiceAccountName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - serviceAccountName_ = value; - onChanged(); - return this; - } - /** - *
-       * Service account for pulling model bucket
-       * 
- * - * optional string serviceAccountName = 9; - */ - public Builder clearServiceAccountName() { - bitField0_ = (bitField0_ & ~0x00000100); - serviceAccountName_ = getDefaultInstance().getServiceAccountName(); - onChanged(); - return this; - } - /** - *
-       * Service account for pulling model bucket
-       * 
- * - * optional string serviceAccountName = 9; - */ - public Builder setServiceAccountNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - serviceAccountName_ = value; - onChanged(); - return this; - } - - private java.lang.Object envSecretRefName_ = ""; - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 10; - */ - public boolean hasEnvSecretRefName() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 10; - */ - public java.lang.String getEnvSecretRefName() { - java.lang.Object ref = envSecretRefName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - envSecretRefName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 10; - */ - public com.google.protobuf.ByteString - getEnvSecretRefNameBytes() { - java.lang.Object ref = envSecretRefName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - envSecretRefName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 10; - */ - public Builder setEnvSecretRefName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - envSecretRefName_ = value; - onChanged(); - return this; - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 10; - */ - public Builder clearEnvSecretRefName() { - bitField0_ = (bitField0_ & ~0x00000200); - envSecretRefName_ = getDefaultInstance().getEnvSecretRefName(); - onChanged(); - return this; - } - /** - *
-       * Secret for pulling from bucket
-       * 
- * - * optional string envSecretRefName = 10; - */ - public Builder setEnvSecretRefNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - envSecretRefName_ = 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:seldon.protos.PredictiveUnit) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.PredictiveUnit) - private static final io.seldon.protos.DeploymentProtos.PredictiveUnit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.PredictiveUnit(); - } - - public static io.seldon.protos.DeploymentProtos.PredictiveUnit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictiveUnit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictiveUnit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.PredictiveUnit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EndpointOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.Endpoint) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Hostname for endpoint.
-     * 
- * - * optional string service_host = 1; - */ - boolean hasServiceHost(); - /** - *
-     * Hostname for endpoint.
-     * 
- * - * optional string service_host = 1; - */ - java.lang.String getServiceHost(); - /** - *
-     * Hostname for endpoint.
-     * 
- * - * optional string service_host = 1; - */ - com.google.protobuf.ByteString - getServiceHostBytes(); - - /** - *
-     * The port to connect to the service.
-     * 
- * - * optional int32 service_port = 2; - */ - boolean hasServicePort(); - /** - *
-     * The port to connect to the service.
-     * 
- * - * optional int32 service_port = 2; - */ - int getServicePort(); - - /** - *
-     * The protocol handled by the endpoint.
-     * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - boolean hasType(); - /** - *
-     * The protocol handled by the endpoint.
-     * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - io.seldon.protos.DeploymentProtos.Endpoint.EndpointType getType(); - } - /** - * Protobuf type {@code seldon.protos.Endpoint} - */ - public static final class Endpoint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.Endpoint) - EndpointOrBuilder { - private static final long serialVersionUID = 0L; - // Use Endpoint.newBuilder() to construct. - private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Endpoint() { - serviceHost_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Endpoint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Endpoint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - serviceHost_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - servicePort_ = input.readInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.Endpoint.EndpointType value = io.seldon.protos.DeploymentProtos.Endpoint.EndpointType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - type_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Endpoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Endpoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.Endpoint.class, io.seldon.protos.DeploymentProtos.Endpoint.Builder.class); - } - - /** - * Protobuf enum {@code seldon.protos.Endpoint.EndpointType} - */ - public enum EndpointType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * REST endpoints with JSON payloads
-       * 
- * - * REST = 0; - */ - REST(0), - /** - *
-       * gRPC endpoints
-       * 
- * - * GRPC = 1; - */ - GRPC(1), - ; - - /** - *
-       * REST endpoints with JSON payloads
-       * 
- * - * REST = 0; - */ - public static final int REST_VALUE = 0; - /** - *
-       * gRPC endpoints
-       * 
- * - * GRPC = 1; - */ - public static final int GRPC_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EndpointType valueOf(int value) { - return forNumber(value); - } - - public static EndpointType forNumber(int value) { - switch (value) { - case 0: return REST; - case 1: return GRPC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EndpointType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EndpointType findValueByNumber(int number) { - return EndpointType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 io.seldon.protos.DeploymentProtos.Endpoint.getDescriptor().getEnumTypes().get(0); - } - - private static final EndpointType[] VALUES = values(); - - public static EndpointType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EndpointType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:seldon.protos.Endpoint.EndpointType) - } - - private int bitField0_; - public static final int SERVICE_HOST_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceHost_; - /** - *
-     * Hostname for endpoint.
-     * 
- * - * optional string service_host = 1; - */ - public boolean hasServiceHost() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Hostname for endpoint.
-     * 
- * - * optional string service_host = 1; - */ - public java.lang.String getServiceHost() { - java.lang.Object ref = serviceHost_; - 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(); - if (bs.isValidUtf8()) { - serviceHost_ = s; - } - return s; - } - } - /** - *
-     * Hostname for endpoint.
-     * 
- * - * optional string service_host = 1; - */ - public com.google.protobuf.ByteString - getServiceHostBytes() { - java.lang.Object ref = serviceHost_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceHost_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_PORT_FIELD_NUMBER = 2; - private int servicePort_; - /** - *
-     * The port to connect to the service.
-     * 
- * - * optional int32 service_port = 2; - */ - public boolean hasServicePort() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The port to connect to the service.
-     * 
- * - * optional int32 service_port = 2; - */ - public int getServicePort() { - return servicePort_; - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - *
-     * The protocol handled by the endpoint.
-     * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The protocol handled by the endpoint.
-     * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - public io.seldon.protos.DeploymentProtos.Endpoint.EndpointType getType() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.Endpoint.EndpointType result = io.seldon.protos.DeploymentProtos.Endpoint.EndpointType.valueOf(type_); - return result == null ? io.seldon.protos.DeploymentProtos.Endpoint.EndpointType.REST : 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 (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceHost_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, servicePort_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceHost_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, servicePort_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.Endpoint)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.Endpoint other = (io.seldon.protos.DeploymentProtos.Endpoint) obj; - - if (hasServiceHost() != other.hasServiceHost()) return false; - if (hasServiceHost()) { - if (!getServiceHost() - .equals(other.getServiceHost())) return false; - } - if (hasServicePort() != other.hasServicePort()) return false; - if (hasServicePort()) { - if (getServicePort() - != other.getServicePort()) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (type_ != other.type_) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasServiceHost()) { - hash = (37 * hash) + SERVICE_HOST_FIELD_NUMBER; - hash = (53 * hash) + getServiceHost().hashCode(); - } - if (hasServicePort()) { - hash = (37 * hash) + SERVICE_PORT_FIELD_NUMBER; - hash = (53 * hash) + getServicePort(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Endpoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Endpoint 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 io.seldon.protos.DeploymentProtos.Endpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Endpoint 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 io.seldon.protos.DeploymentProtos.Endpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Endpoint 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(io.seldon.protos.DeploymentProtos.Endpoint 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 seldon.protos.Endpoint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.Endpoint) - io.seldon.protos.DeploymentProtos.EndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Endpoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Endpoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.Endpoint.class, io.seldon.protos.DeploymentProtos.Endpoint.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.Endpoint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serviceHost_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - servicePort_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Endpoint_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Endpoint getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Endpoint build() { - io.seldon.protos.DeploymentProtos.Endpoint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Endpoint buildPartial() { - io.seldon.protos.DeploymentProtos.Endpoint result = new io.seldon.protos.DeploymentProtos.Endpoint(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.serviceHost_ = serviceHost_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.servicePort_ = servicePort_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.Endpoint) { - return mergeFrom((io.seldon.protos.DeploymentProtos.Endpoint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.Endpoint other) { - if (other == io.seldon.protos.DeploymentProtos.Endpoint.getDefaultInstance()) return this; - if (other.hasServiceHost()) { - bitField0_ |= 0x00000001; - serviceHost_ = other.serviceHost_; - onChanged(); - } - if (other.hasServicePort()) { - setServicePort(other.getServicePort()); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - io.seldon.protos.DeploymentProtos.Endpoint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.Endpoint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object serviceHost_ = ""; - /** - *
-       * Hostname for endpoint.
-       * 
- * - * optional string service_host = 1; - */ - public boolean hasServiceHost() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Hostname for endpoint.
-       * 
- * - * optional string service_host = 1; - */ - public java.lang.String getServiceHost() { - java.lang.Object ref = serviceHost_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - serviceHost_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Hostname for endpoint.
-       * 
- * - * optional string service_host = 1; - */ - public com.google.protobuf.ByteString - getServiceHostBytes() { - java.lang.Object ref = serviceHost_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceHost_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Hostname for endpoint.
-       * 
- * - * optional string service_host = 1; - */ - public Builder setServiceHost( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - serviceHost_ = value; - onChanged(); - return this; - } - /** - *
-       * Hostname for endpoint.
-       * 
- * - * optional string service_host = 1; - */ - public Builder clearServiceHost() { - bitField0_ = (bitField0_ & ~0x00000001); - serviceHost_ = getDefaultInstance().getServiceHost(); - onChanged(); - return this; - } - /** - *
-       * Hostname for endpoint.
-       * 
- * - * optional string service_host = 1; - */ - public Builder setServiceHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - serviceHost_ = value; - onChanged(); - return this; - } - - private int servicePort_ ; - /** - *
-       * The port to connect to the service.
-       * 
- * - * optional int32 service_port = 2; - */ - public boolean hasServicePort() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The port to connect to the service.
-       * 
- * - * optional int32 service_port = 2; - */ - public int getServicePort() { - return servicePort_; - } - /** - *
-       * The port to connect to the service.
-       * 
- * - * optional int32 service_port = 2; - */ - public Builder setServicePort(int value) { - bitField0_ |= 0x00000002; - servicePort_ = value; - onChanged(); - return this; - } - /** - *
-       * The port to connect to the service.
-       * 
- * - * optional int32 service_port = 2; - */ - public Builder clearServicePort() { - bitField0_ = (bitField0_ & ~0x00000002); - servicePort_ = 0; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-       * The protocol handled by the endpoint.
-       * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * The protocol handled by the endpoint.
-       * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - public io.seldon.protos.DeploymentProtos.Endpoint.EndpointType getType() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.Endpoint.EndpointType result = io.seldon.protos.DeploymentProtos.Endpoint.EndpointType.valueOf(type_); - return result == null ? io.seldon.protos.DeploymentProtos.Endpoint.EndpointType.REST : result; - } - /** - *
-       * The protocol handled by the endpoint.
-       * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - public Builder setType(io.seldon.protos.DeploymentProtos.Endpoint.EndpointType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The protocol handled by the endpoint.
-       * 
- * - * optional .seldon.protos.Endpoint.EndpointType type = 3; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = 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:seldon.protos.Endpoint) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.Endpoint) - private static final io.seldon.protos.DeploymentProtos.Endpoint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.Endpoint(); - } - - public static io.seldon.protos.DeploymentProtos.Endpoint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Endpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Endpoint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Endpoint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:seldon.protos.Parameter) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * required string value = 2; - */ - boolean hasValue(); - /** - * required string value = 2; - */ - java.lang.String getValue(); - /** - * required string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - boolean hasType(); - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - io.seldon.protos.DeploymentProtos.Parameter.ParameterType getType(); - } - /** - * Protobuf type {@code seldon.protos.Parameter} - */ - public static final class Parameter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:seldon.protos.Parameter) - ParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Parameter.newBuilder() to construct. - private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Parameter() { - name_ = ""; - value_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Parameter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Parameter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - value_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.Parameter.ParameterType value = io.seldon.protos.DeploymentProtos.Parameter.ParameterType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - type_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.Parameter.class, io.seldon.protos.DeploymentProtos.Parameter.Builder.class); - } - - /** - * Protobuf enum {@code seldon.protos.Parameter.ParameterType} - */ - public enum ParameterType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INT = 0; - */ - INT(0), - /** - * FLOAT = 1; - */ - FLOAT(1), - /** - * DOUBLE = 2; - */ - DOUBLE(2), - /** - * STRING = 3; - */ - STRING(3), - /** - * BOOL = 4; - */ - BOOL(4), - ; - - /** - * INT = 0; - */ - public static final int INT_VALUE = 0; - /** - * FLOAT = 1; - */ - public static final int FLOAT_VALUE = 1; - /** - * DOUBLE = 2; - */ - public static final int DOUBLE_VALUE = 2; - /** - * STRING = 3; - */ - public static final int STRING_VALUE = 3; - /** - * BOOL = 4; - */ - public static final int BOOL_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ParameterType valueOf(int value) { - return forNumber(value); - } - - public static ParameterType forNumber(int value) { - switch (value) { - case 0: return INT; - case 1: return FLOAT; - case 2: return DOUBLE; - case 3: return STRING; - case 4: return BOOL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ParameterType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ParameterType findValueByNumber(int number) { - return ParameterType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 io.seldon.protos.DeploymentProtos.Parameter.getDescriptor().getEnumTypes().get(0); - } - - private static final ParameterType[] VALUES = values(); - - public static ParameterType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ParameterType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:seldon.protos.Parameter.ParameterType) - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * required string value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - 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(); - if (bs.isValidUtf8()) { - value_ = s; - } - return s; - } - } - /** - * required string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - public io.seldon.protos.DeploymentProtos.Parameter.ParameterType getType() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.Parameter.ParameterType result = io.seldon.protos.DeploymentProtos.Parameter.ParameterType.valueOf(type_); - return result == null ? io.seldon.protos.DeploymentProtos.Parameter.ParameterType.INT : 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; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValue()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.seldon.protos.DeploymentProtos.Parameter)) { - return super.equals(obj); - } - io.seldon.protos.DeploymentProtos.Parameter other = (io.seldon.protos.DeploymentProtos.Parameter) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (type_ != other.type_) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.seldon.protos.DeploymentProtos.Parameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Parameter 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 io.seldon.protos.DeploymentProtos.Parameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Parameter 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 io.seldon.protos.DeploymentProtos.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.seldon.protos.DeploymentProtos.Parameter 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(io.seldon.protos.DeploymentProtos.Parameter 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 seldon.protos.Parameter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:seldon.protos.Parameter) - io.seldon.protos.DeploymentProtos.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seldon.protos.DeploymentProtos.Parameter.class, io.seldon.protos.DeploymentProtos.Parameter.Builder.class); - } - - // Construct using io.seldon.protos.DeploymentProtos.Parameter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.seldon.protos.DeploymentProtos.internal_static_seldon_protos_Parameter_descriptor; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Parameter getDefaultInstanceForType() { - return io.seldon.protos.DeploymentProtos.Parameter.getDefaultInstance(); - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Parameter build() { - io.seldon.protos.DeploymentProtos.Parameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Parameter buildPartial() { - io.seldon.protos.DeploymentProtos.Parameter result = new io.seldon.protos.DeploymentProtos.Parameter(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - 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 io.seldon.protos.DeploymentProtos.Parameter) { - return mergeFrom((io.seldon.protos.DeploymentProtos.Parameter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.seldon.protos.DeploymentProtos.Parameter other) { - if (other == io.seldon.protos.DeploymentProtos.Parameter.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasValue()) { - bitField0_ |= 0x00000002; - value_ = other.value_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasValue()) { - return false; - } - if (!hasType()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.seldon.protos.DeploymentProtos.Parameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.seldon.protos.DeploymentProtos.Parameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * required string value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - /** - * required string value = 2; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * required string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - public io.seldon.protos.DeploymentProtos.Parameter.ParameterType getType() { - @SuppressWarnings("deprecation") - io.seldon.protos.DeploymentProtos.Parameter.ParameterType result = io.seldon.protos.DeploymentProtos.Parameter.ParameterType.valueOf(type_); - return result == null ? io.seldon.protos.DeploymentProtos.Parameter.ParameterType.INT : result; - } - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - public Builder setType(io.seldon.protos.DeploymentProtos.Parameter.ParameterType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .seldon.protos.Parameter.ParameterType type = 3; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = 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:seldon.protos.Parameter) - } - - // @@protoc_insertion_point(class_scope:seldon.protos.Parameter) - private static final io.seldon.protos.DeploymentProtos.Parameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.seldon.protos.DeploymentProtos.Parameter(); - } - - public static io.seldon.protos.DeploymentProtos.Parameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.seldon.protos.DeploymentProtos.Parameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_SeldonDeployment_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_SeldonDeployment_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_DeploymentStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_DeploymentStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_PredictorStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_PredictorStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_DeploymentSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_DeploymentSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_DeploymentSpec_AnnotationsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_DeploymentSpec_AnnotationsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_Explainer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_Explainer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_PredictorSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_PredictorSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_PredictorSpec_AnnotationsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_PredictorSpec_AnnotationsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_PredictorSpec_LabelsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_PredictorSpec_LabelsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_SeldonPodSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_SeldonPodSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_SeldonHpaSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_SeldonHpaSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_SvcOrchSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_SvcOrchSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_PredictiveUnit_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_PredictiveUnit_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_Endpoint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_Endpoint_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_seldon_protos_Parameter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_seldon_protos_Parameter_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\027seldon_deployment.proto\022\rseldon.protos" + - "\0324k8s.io/apimachinery/pkg/apis/meta/v1/g" + - "enerated.proto\032\"k8s.io/api/core/v1/gener" + - "ated.proto\032.k8s.io/api/autoscaling/v2bet" + - "a1/generated.proto\"\326\001\n\020SeldonDeployment\022" + - "\022\n\napiVersion\030\001 \002(\t\022\014\n\004kind\030\002 \002(\t\022B\n\010met" + - "adata\030\003 \001(\01320.k8s.io.apimachinery.pkg.ap" + - "is.meta.v1.ObjectMeta\022+\n\004spec\030\004 \002(\0132\035.se" + - "ldon.protos.DeploymentSpec\022/\n\006status\030\005 \001" + - "(\0132\037.seldon.protos.DeploymentStatus\"o\n\020D" + - "eploymentStatus\022\r\n\005state\030\001 \001(\t\022\023\n\013descri" + - "ption\030\002 \001(\t\0227\n\017predictorStatus\030\003 \003(\0132\036.s" + - "eldon.protos.PredictorStatus\"q\n\017Predicto" + - "rStatus\022\014\n\004name\030\001 \002(\t\022\016\n\006status\030\002 \001(\t\022\023\n" + - "\013description\030\003 \001(\t\022\020\n\010replicas\030\004 \001(\005\022\031\n\021" + - "replicasAvailable\030\005 \001(\005\"\362\001\n\016DeploymentSp" + - "ec\022\014\n\004name\030\001 \001(\t\0220\n\npredictors\030\002 \003(\0132\034.s" + - "eldon.protos.PredictorSpec\022\021\n\toauth_key\030" + - "\003 \001(\t\022\024\n\014oauth_secret\030\004 \001(\t\022C\n\013annotatio" + - "ns\030\005 \003(\0132..seldon.protos.DeploymentSpec." + - "AnnotationsEntry\0322\n\020AnnotationsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\227\001\n\tExplain" + - "er\022\014\n\004type\030\001 \001(\t\022\020\n\010modelUri\030\002 \001(\t\022\032\n\022se" + - "rviceAccountName\030\003 \001(\t\022\030\n\020envSecretRefNa" + - "me\030\004 \001(\t\0224\n\rcontainerSpec\030\005 \001(\0132\035.k8s.io" + - ".api.core.v1.Container\"\252\004\n\rPredictorSpec" + - "\022\014\n\004name\030\001 \002(\t\022,\n\005graph\030\002 \002(\0132\035.seldon.p" + - "rotos.PredictiveUnit\0224\n\016componentSpecs\030\003" + - " \003(\0132\034.seldon.protos.SeldonPodSpec\022\020\n\010re" + - "plicas\030\004 \001(\005\022B\n\013annotations\030\005 \003(\0132-.seld" + - "on.protos.PredictorSpec.AnnotationsEntry" + - "\022E\n\017engineResources\030\006 \001(\0132(.k8s.io.api.c" + - "ore.v1.ResourceRequirementsB\002\030\001\0228\n\006label" + - "s\030\007 \003(\0132(.seldon.protos.PredictorSpec.La" + - "belsEntry\022/\n\013svcOrchSpec\030\010 \001(\0132\032.seldon." + - "protos.SvcOrchSpec\022\017\n\007traffic\030\t \001(\005\022+\n\te" + - "xplainer\030\n \001(\0132\030.seldon.protos.Explainer" + - "\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"\255\001\n\rSeldonPodSpec\022B\n" + - "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + - "g.apis.meta.v1.ObjectMeta\022)\n\004spec\030\002 \001(\0132" + - "\033.k8s.io.api.core.v1.PodSpec\022-\n\007hpaSpec\030" + - "\003 \001(\0132\034.seldon.protos.SeldonHpaSpec\"v\n\rS" + - "eldonHpaSpec\022\023\n\013minReplicas\030\001 \001(\005\022\023\n\013max" + - "Replicas\030\002 \001(\005\022;\n\007metrics\030\003 \003(\0132*.k8s.io" + - ".api.autoscaling.v2beta1.MetricSpec\"s\n\013S" + - "vcOrchSpec\022;\n\tresources\030\001 \001(\0132(.k8s.io.a" + - "pi.core.v1.ResourceRequirements\022\'\n\003env\030\002" + - " \003(\0132\032.k8s.io.api.core.v1.EnvVar\"\214\007\n\016Pre" + - "dictiveUnit\022\014\n\004name\030\001 \002(\t\022/\n\010children\030\002 " + - "\003(\0132\035.seldon.protos.PredictiveUnit\022>\n\004ty" + - "pe\030\003 \001(\01620.seldon.protos.PredictiveUnit." + - "PredictiveUnitType\022R\n\016implementation\030\004 \001" + - "(\0162:.seldon.protos.PredictiveUnit.Predic" + - "tiveUnitImplementation\022C\n\007methods\030\005 \003(\0162" + - "2.seldon.protos.PredictiveUnit.Predictiv" + - "eUnitMethod\022)\n\010endpoint\030\006 \001(\0132\027.seldon.p" + - "rotos.Endpoint\022,\n\nparameters\030\007 \003(\0132\030.sel" + - "don.protos.Parameter\022\020\n\010modelUri\030\010 \001(\t\022\032" + - "\n\022serviceAccountName\030\t \001(\t\022\030\n\020envSecretR" + - "efName\030\n \001(\t\"t\n\022PredictiveUnitType\022\020\n\014UN" + - "KNOWN_TYPE\020\000\022\n\n\006ROUTER\020\001\022\014\n\010COMBINER\020\002\022\t" + - "\n\005MODEL\020\003\022\017\n\013TRANSFORMER\020\004\022\026\n\022OUTPUT_TRA" + - "NSFORMER\020\005\"\332\001\n\034PredictiveUnitImplementat" + - "ion\022\032\n\026UNKNOWN_IMPLEMENTATION\020\000\022\020\n\014SIMPL" + - "E_MODEL\020\001\022\021\n\rSIMPLE_ROUTER\020\002\022\021\n\rRANDOM_A" + - "BTEST\020\003\022\024\n\020AVERAGE_COMBINER\020\004\022\022\n\016SKLEARN" + - "_SERVER\020\005\022\022\n\016XGBOOST_SERVER\020\006\022\025\n\021TENSORF" + - "LOW_SERVER\020\007\022\021\n\rMLFLOW_SERVER\020\010\"n\n\024Predi" + - "ctiveUnitMethod\022\023\n\017TRANSFORM_INPUT\020\000\022\024\n\020" + - "TRANSFORM_OUTPUT\020\001\022\t\n\005ROUTE\020\002\022\r\n\tAGGREGA" + - "TE\020\003\022\021\n\rSEND_FEEDBACK\020\004\"\216\001\n\010Endpoint\022\024\n\014" + - "service_host\030\001 \001(\t\022\024\n\014service_port\030\002 \001(\005" + - "\0222\n\004type\030\003 \001(\0162$.seldon.protos.Endpoint." + - "EndpointType\"\"\n\014EndpointType\022\010\n\004REST\020\000\022\010" + - "\n\004GRPC\020\001\"\245\001\n\tParameter\022\014\n\004name\030\001 \002(\t\022\r\n\005" + - "value\030\002 \002(\t\0224\n\004type\030\003 \002(\0162&.seldon.proto" + - "s.Parameter.ParameterType\"E\n\rParameterTy" + - "pe\022\007\n\003INT\020\000\022\t\n\005FLOAT\020\001\022\n\n\006DOUBLE\020\002\022\n\n\006ST" + - "RING\020\003\022\010\n\004BOOL\020\004B$\n\020io.seldon.protosB\020De" + - "ploymentProtos" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - io.kubernetes.client.proto.Meta.getDescriptor(), - io.kubernetes.client.proto.V1.getDescriptor(), - io.kubernetes.client.proto.V2beta1Autoscaling.getDescriptor(), - }); - internal_static_seldon_protos_SeldonDeployment_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_seldon_protos_SeldonDeployment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_SeldonDeployment_descriptor, - new java.lang.String[] { "ApiVersion", "Kind", "Metadata", "Spec", "Status", }); - internal_static_seldon_protos_DeploymentStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_seldon_protos_DeploymentStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_DeploymentStatus_descriptor, - new java.lang.String[] { "State", "Description", "PredictorStatus", }); - internal_static_seldon_protos_PredictorStatus_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_seldon_protos_PredictorStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_PredictorStatus_descriptor, - new java.lang.String[] { "Name", "Status", "Description", "Replicas", "ReplicasAvailable", }); - internal_static_seldon_protos_DeploymentSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_seldon_protos_DeploymentSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_DeploymentSpec_descriptor, - new java.lang.String[] { "Name", "Predictors", "OauthKey", "OauthSecret", "Annotations", }); - internal_static_seldon_protos_DeploymentSpec_AnnotationsEntry_descriptor = - internal_static_seldon_protos_DeploymentSpec_descriptor.getNestedTypes().get(0); - internal_static_seldon_protos_DeploymentSpec_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_DeploymentSpec_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_seldon_protos_Explainer_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_seldon_protos_Explainer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_Explainer_descriptor, - new java.lang.String[] { "Type", "ModelUri", "ServiceAccountName", "EnvSecretRefName", "ContainerSpec", }); - internal_static_seldon_protos_PredictorSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_seldon_protos_PredictorSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_PredictorSpec_descriptor, - new java.lang.String[] { "Name", "Graph", "ComponentSpecs", "Replicas", "Annotations", "EngineResources", "Labels", "SvcOrchSpec", "Traffic", "Explainer", }); - internal_static_seldon_protos_PredictorSpec_AnnotationsEntry_descriptor = - internal_static_seldon_protos_PredictorSpec_descriptor.getNestedTypes().get(0); - internal_static_seldon_protos_PredictorSpec_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_PredictorSpec_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_seldon_protos_PredictorSpec_LabelsEntry_descriptor = - internal_static_seldon_protos_PredictorSpec_descriptor.getNestedTypes().get(1); - internal_static_seldon_protos_PredictorSpec_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_PredictorSpec_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_seldon_protos_SeldonPodSpec_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_seldon_protos_SeldonPodSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_SeldonPodSpec_descriptor, - new java.lang.String[] { "Metadata", "Spec", "HpaSpec", }); - internal_static_seldon_protos_SeldonHpaSpec_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_seldon_protos_SeldonHpaSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_SeldonHpaSpec_descriptor, - new java.lang.String[] { "MinReplicas", "MaxReplicas", "Metrics", }); - internal_static_seldon_protos_SvcOrchSpec_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_seldon_protos_SvcOrchSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_SvcOrchSpec_descriptor, - new java.lang.String[] { "Resources", "Env", }); - internal_static_seldon_protos_PredictiveUnit_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_seldon_protos_PredictiveUnit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_PredictiveUnit_descriptor, - new java.lang.String[] { "Name", "Children", "Type", "Implementation", "Methods", "Endpoint", "Parameters", "ModelUri", "ServiceAccountName", "EnvSecretRefName", }); - internal_static_seldon_protos_Endpoint_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_seldon_protos_Endpoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_Endpoint_descriptor, - new java.lang.String[] { "ServiceHost", "ServicePort", "Type", }); - internal_static_seldon_protos_Parameter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_seldon_protos_Parameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_seldon_protos_Parameter_descriptor, - new java.lang.String[] { "Name", "Value", "Type", }); - io.kubernetes.client.proto.Meta.getDescriptor(); - io.kubernetes.client.proto.V1.getDescriptor(); - io.kubernetes.client.proto.V2beta1Autoscaling.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}