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

com.clarifai.grpc.api.MultiScopeDepsResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/service.proto

package com.clarifai.grpc.api;

/**
 * 
 * MultiScopeDepsResponse
 * 
* * Protobuf type {@code clarifai.api.MultiScopeDepsResponse} */ public final class MultiScopeDepsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.MultiScopeDepsResponse) MultiScopeDepsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MultiScopeDepsResponse.newBuilder() to construct. private MultiScopeDepsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MultiScopeDepsResponse() { scopeDeps_ = java.util.Collections.emptyList(); endpointDeps_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MultiScopeDepsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MultiScopeDepsResponse( 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.clarifai.grpc.api.status.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.clarifai.grpc.api.status.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { scopeDeps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } scopeDeps_.add( input.readMessage(com.clarifai.grpc.api.ScopeDeps.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { endpointDeps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } endpointDeps_.add( input.readMessage(com.clarifai.grpc.api.EndpointDeps.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scopeDeps_ = java.util.Collections.unmodifiableList(scopeDeps_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { endpointDeps_ = java.util.Collections.unmodifiableList(endpointDeps_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_MultiScopeDepsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_MultiScopeDepsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.MultiScopeDepsResponse.class, com.clarifai.grpc.api.MultiScopeDepsResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.clarifai.grpc.api.status.Status status_; /** *
   * The status of the request.
   * 
* * .clarifai.api.status.Status status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
   * The status of the request.
   * 
* * .clarifai.api.status.Status status = 1; * @return The status. */ @java.lang.Override public com.clarifai.grpc.api.status.Status getStatus() { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } /** *
   * The status of the request.
   * 
* * .clarifai.api.status.Status status = 1; */ @java.lang.Override public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int SCOPE_DEPS_FIELD_NUMBER = 2; private java.util.List scopeDeps_; /** *
   * scopes is a list of low-level scopes and their dependencies.
   * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ @java.lang.Override public java.util.List getScopeDepsList() { return scopeDeps_; } /** *
   * scopes is a list of low-level scopes and their dependencies.
   * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ @java.lang.Override public java.util.List getScopeDepsOrBuilderList() { return scopeDeps_; } /** *
   * scopes is a list of low-level scopes and their dependencies.
   * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ @java.lang.Override public int getScopeDepsCount() { return scopeDeps_.size(); } /** *
   * scopes is a list of low-level scopes and their dependencies.
   * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ @java.lang.Override public com.clarifai.grpc.api.ScopeDeps getScopeDeps(int index) { return scopeDeps_.get(index); } /** *
   * scopes is a list of low-level scopes and their dependencies.
   * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ @java.lang.Override public com.clarifai.grpc.api.ScopeDepsOrBuilder getScopeDepsOrBuilder( int index) { return scopeDeps_.get(index); } public static final int ENDPOINT_DEPS_FIELD_NUMBER = 3; private java.util.List endpointDeps_; /** *
   * endpoint_scopes is a listof all the publicly available endponts which can be
   * used as scopes as well. A call to each of those endpoint depends on a subset
   * of the above "scopes"
   * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ @java.lang.Override public java.util.List getEndpointDepsList() { return endpointDeps_; } /** *
   * endpoint_scopes is a listof all the publicly available endponts which can be
   * used as scopes as well. A call to each of those endpoint depends on a subset
   * of the above "scopes"
   * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ @java.lang.Override public java.util.List getEndpointDepsOrBuilderList() { return endpointDeps_; } /** *
   * endpoint_scopes is a listof all the publicly available endponts which can be
   * used as scopes as well. A call to each of those endpoint depends on a subset
   * of the above "scopes"
   * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ @java.lang.Override public int getEndpointDepsCount() { return endpointDeps_.size(); } /** *
   * endpoint_scopes is a listof all the publicly available endponts which can be
   * used as scopes as well. A call to each of those endpoint depends on a subset
   * of the above "scopes"
   * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ @java.lang.Override public com.clarifai.grpc.api.EndpointDeps getEndpointDeps(int index) { return endpointDeps_.get(index); } /** *
   * endpoint_scopes is a listof all the publicly available endponts which can be
   * used as scopes as well. A call to each of those endpoint depends on a subset
   * of the above "scopes"
   * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ @java.lang.Override public com.clarifai.grpc.api.EndpointDepsOrBuilder getEndpointDepsOrBuilder( int index) { return endpointDeps_.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 (status_ != null) { output.writeMessage(1, getStatus()); } for (int i = 0; i < scopeDeps_.size(); i++) { output.writeMessage(2, scopeDeps_.get(i)); } for (int i = 0; i < endpointDeps_.size(); i++) { output.writeMessage(3, endpointDeps_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } for (int i = 0; i < scopeDeps_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, scopeDeps_.get(i)); } for (int i = 0; i < endpointDeps_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, endpointDeps_.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 com.clarifai.grpc.api.MultiScopeDepsResponse)) { return super.equals(obj); } com.clarifai.grpc.api.MultiScopeDepsResponse other = (com.clarifai.grpc.api.MultiScopeDepsResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getScopeDepsList() .equals(other.getScopeDepsList())) return false; if (!getEndpointDepsList() .equals(other.getEndpointDepsList())) 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 (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (getScopeDepsCount() > 0) { hash = (37 * hash) + SCOPE_DEPS_FIELD_NUMBER; hash = (53 * hash) + getScopeDepsList().hashCode(); } if (getEndpointDepsCount() > 0) { hash = (37 * hash) + ENDPOINT_DEPS_FIELD_NUMBER; hash = (53 * hash) + getEndpointDepsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.MultiScopeDepsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.MultiScopeDepsResponse 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; } /** *
   * MultiScopeDepsResponse
   * 
* * Protobuf type {@code clarifai.api.MultiScopeDepsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.MultiScopeDepsResponse) com.clarifai.grpc.api.MultiScopeDepsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_MultiScopeDepsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_MultiScopeDepsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.MultiScopeDepsResponse.class, com.clarifai.grpc.api.MultiScopeDepsResponse.Builder.class); } // Construct using com.clarifai.grpc.api.MultiScopeDepsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScopeDepsFieldBuilder(); getEndpointDepsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (scopeDepsBuilder_ == null) { scopeDeps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { scopeDepsBuilder_.clear(); } if (endpointDepsBuilder_ == null) { endpointDeps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { endpointDepsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_MultiScopeDepsResponse_descriptor; } @java.lang.Override public com.clarifai.grpc.api.MultiScopeDepsResponse getDefaultInstanceForType() { return com.clarifai.grpc.api.MultiScopeDepsResponse.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.MultiScopeDepsResponse build() { com.clarifai.grpc.api.MultiScopeDepsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.MultiScopeDepsResponse buildPartial() { com.clarifai.grpc.api.MultiScopeDepsResponse result = new com.clarifai.grpc.api.MultiScopeDepsResponse(this); int from_bitField0_ = bitField0_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (scopeDepsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scopeDeps_ = java.util.Collections.unmodifiableList(scopeDeps_); bitField0_ = (bitField0_ & ~0x00000001); } result.scopeDeps_ = scopeDeps_; } else { result.scopeDeps_ = scopeDepsBuilder_.build(); } if (endpointDepsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { endpointDeps_ = java.util.Collections.unmodifiableList(endpointDeps_); bitField0_ = (bitField0_ & ~0x00000002); } result.endpointDeps_ = endpointDeps_; } else { result.endpointDeps_ = endpointDepsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.MultiScopeDepsResponse) { return mergeFrom((com.clarifai.grpc.api.MultiScopeDepsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.MultiScopeDepsResponse other) { if (other == com.clarifai.grpc.api.MultiScopeDepsResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (scopeDepsBuilder_ == null) { if (!other.scopeDeps_.isEmpty()) { if (scopeDeps_.isEmpty()) { scopeDeps_ = other.scopeDeps_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureScopeDepsIsMutable(); scopeDeps_.addAll(other.scopeDeps_); } onChanged(); } } else { if (!other.scopeDeps_.isEmpty()) { if (scopeDepsBuilder_.isEmpty()) { scopeDepsBuilder_.dispose(); scopeDepsBuilder_ = null; scopeDeps_ = other.scopeDeps_; bitField0_ = (bitField0_ & ~0x00000001); scopeDepsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getScopeDepsFieldBuilder() : null; } else { scopeDepsBuilder_.addAllMessages(other.scopeDeps_); } } } if (endpointDepsBuilder_ == null) { if (!other.endpointDeps_.isEmpty()) { if (endpointDeps_.isEmpty()) { endpointDeps_ = other.endpointDeps_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEndpointDepsIsMutable(); endpointDeps_.addAll(other.endpointDeps_); } onChanged(); } } else { if (!other.endpointDeps_.isEmpty()) { if (endpointDepsBuilder_.isEmpty()) { endpointDepsBuilder_.dispose(); endpointDepsBuilder_ = null; endpointDeps_ = other.endpointDeps_; bitField0_ = (bitField0_ & ~0x00000002); endpointDepsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndpointDepsFieldBuilder() : null; } else { endpointDepsBuilder_.addAllMessages(other.endpointDeps_); } } } 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 { com.clarifai.grpc.api.MultiScopeDepsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.MultiScopeDepsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.status.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_; /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; * @return The status. */ public com.clarifai.grpc.api.status.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ public Builder setStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ public Builder setStatus( com.clarifai.grpc.api.status.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ public Builder mergeStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.clarifai.grpc.api.status.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } } /** *
     * The status of the request.
     * 
* * .clarifai.api.status.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List scopeDeps_ = java.util.Collections.emptyList(); private void ensureScopeDepsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scopeDeps_ = new java.util.ArrayList(scopeDeps_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.ScopeDeps, com.clarifai.grpc.api.ScopeDeps.Builder, com.clarifai.grpc.api.ScopeDepsOrBuilder> scopeDepsBuilder_; /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public java.util.List getScopeDepsList() { if (scopeDepsBuilder_ == null) { return java.util.Collections.unmodifiableList(scopeDeps_); } else { return scopeDepsBuilder_.getMessageList(); } } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public int getScopeDepsCount() { if (scopeDepsBuilder_ == null) { return scopeDeps_.size(); } else { return scopeDepsBuilder_.getCount(); } } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public com.clarifai.grpc.api.ScopeDeps getScopeDeps(int index) { if (scopeDepsBuilder_ == null) { return scopeDeps_.get(index); } else { return scopeDepsBuilder_.getMessage(index); } } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder setScopeDeps( int index, com.clarifai.grpc.api.ScopeDeps value) { if (scopeDepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopeDepsIsMutable(); scopeDeps_.set(index, value); onChanged(); } else { scopeDepsBuilder_.setMessage(index, value); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder setScopeDeps( int index, com.clarifai.grpc.api.ScopeDeps.Builder builderForValue) { if (scopeDepsBuilder_ == null) { ensureScopeDepsIsMutable(); scopeDeps_.set(index, builderForValue.build()); onChanged(); } else { scopeDepsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder addScopeDeps(com.clarifai.grpc.api.ScopeDeps value) { if (scopeDepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopeDepsIsMutable(); scopeDeps_.add(value); onChanged(); } else { scopeDepsBuilder_.addMessage(value); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder addScopeDeps( int index, com.clarifai.grpc.api.ScopeDeps value) { if (scopeDepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopeDepsIsMutable(); scopeDeps_.add(index, value); onChanged(); } else { scopeDepsBuilder_.addMessage(index, value); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder addScopeDeps( com.clarifai.grpc.api.ScopeDeps.Builder builderForValue) { if (scopeDepsBuilder_ == null) { ensureScopeDepsIsMutable(); scopeDeps_.add(builderForValue.build()); onChanged(); } else { scopeDepsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder addScopeDeps( int index, com.clarifai.grpc.api.ScopeDeps.Builder builderForValue) { if (scopeDepsBuilder_ == null) { ensureScopeDepsIsMutable(); scopeDeps_.add(index, builderForValue.build()); onChanged(); } else { scopeDepsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder addAllScopeDeps( java.lang.Iterable values) { if (scopeDepsBuilder_ == null) { ensureScopeDepsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scopeDeps_); onChanged(); } else { scopeDepsBuilder_.addAllMessages(values); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder clearScopeDeps() { if (scopeDepsBuilder_ == null) { scopeDeps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { scopeDepsBuilder_.clear(); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public Builder removeScopeDeps(int index) { if (scopeDepsBuilder_ == null) { ensureScopeDepsIsMutable(); scopeDeps_.remove(index); onChanged(); } else { scopeDepsBuilder_.remove(index); } return this; } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public com.clarifai.grpc.api.ScopeDeps.Builder getScopeDepsBuilder( int index) { return getScopeDepsFieldBuilder().getBuilder(index); } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public com.clarifai.grpc.api.ScopeDepsOrBuilder getScopeDepsOrBuilder( int index) { if (scopeDepsBuilder_ == null) { return scopeDeps_.get(index); } else { return scopeDepsBuilder_.getMessageOrBuilder(index); } } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public java.util.List getScopeDepsOrBuilderList() { if (scopeDepsBuilder_ != null) { return scopeDepsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scopeDeps_); } } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public com.clarifai.grpc.api.ScopeDeps.Builder addScopeDepsBuilder() { return getScopeDepsFieldBuilder().addBuilder( com.clarifai.grpc.api.ScopeDeps.getDefaultInstance()); } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public com.clarifai.grpc.api.ScopeDeps.Builder addScopeDepsBuilder( int index) { return getScopeDepsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.ScopeDeps.getDefaultInstance()); } /** *
     * scopes is a list of low-level scopes and their dependencies.
     * 
* * repeated .clarifai.api.ScopeDeps scope_deps = 2; */ public java.util.List getScopeDepsBuilderList() { return getScopeDepsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.ScopeDeps, com.clarifai.grpc.api.ScopeDeps.Builder, com.clarifai.grpc.api.ScopeDepsOrBuilder> getScopeDepsFieldBuilder() { if (scopeDepsBuilder_ == null) { scopeDepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.ScopeDeps, com.clarifai.grpc.api.ScopeDeps.Builder, com.clarifai.grpc.api.ScopeDepsOrBuilder>( scopeDeps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scopeDeps_ = null; } return scopeDepsBuilder_; } private java.util.List endpointDeps_ = java.util.Collections.emptyList(); private void ensureEndpointDepsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { endpointDeps_ = new java.util.ArrayList(endpointDeps_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EndpointDeps, com.clarifai.grpc.api.EndpointDeps.Builder, com.clarifai.grpc.api.EndpointDepsOrBuilder> endpointDepsBuilder_; /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public java.util.List getEndpointDepsList() { if (endpointDepsBuilder_ == null) { return java.util.Collections.unmodifiableList(endpointDeps_); } else { return endpointDepsBuilder_.getMessageList(); } } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public int getEndpointDepsCount() { if (endpointDepsBuilder_ == null) { return endpointDeps_.size(); } else { return endpointDepsBuilder_.getCount(); } } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public com.clarifai.grpc.api.EndpointDeps getEndpointDeps(int index) { if (endpointDepsBuilder_ == null) { return endpointDeps_.get(index); } else { return endpointDepsBuilder_.getMessage(index); } } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder setEndpointDeps( int index, com.clarifai.grpc.api.EndpointDeps value) { if (endpointDepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointDepsIsMutable(); endpointDeps_.set(index, value); onChanged(); } else { endpointDepsBuilder_.setMessage(index, value); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder setEndpointDeps( int index, com.clarifai.grpc.api.EndpointDeps.Builder builderForValue) { if (endpointDepsBuilder_ == null) { ensureEndpointDepsIsMutable(); endpointDeps_.set(index, builderForValue.build()); onChanged(); } else { endpointDepsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder addEndpointDeps(com.clarifai.grpc.api.EndpointDeps value) { if (endpointDepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointDepsIsMutable(); endpointDeps_.add(value); onChanged(); } else { endpointDepsBuilder_.addMessage(value); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder addEndpointDeps( int index, com.clarifai.grpc.api.EndpointDeps value) { if (endpointDepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointDepsIsMutable(); endpointDeps_.add(index, value); onChanged(); } else { endpointDepsBuilder_.addMessage(index, value); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder addEndpointDeps( com.clarifai.grpc.api.EndpointDeps.Builder builderForValue) { if (endpointDepsBuilder_ == null) { ensureEndpointDepsIsMutable(); endpointDeps_.add(builderForValue.build()); onChanged(); } else { endpointDepsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder addEndpointDeps( int index, com.clarifai.grpc.api.EndpointDeps.Builder builderForValue) { if (endpointDepsBuilder_ == null) { ensureEndpointDepsIsMutable(); endpointDeps_.add(index, builderForValue.build()); onChanged(); } else { endpointDepsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder addAllEndpointDeps( java.lang.Iterable values) { if (endpointDepsBuilder_ == null) { ensureEndpointDepsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, endpointDeps_); onChanged(); } else { endpointDepsBuilder_.addAllMessages(values); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder clearEndpointDeps() { if (endpointDepsBuilder_ == null) { endpointDeps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { endpointDepsBuilder_.clear(); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public Builder removeEndpointDeps(int index) { if (endpointDepsBuilder_ == null) { ensureEndpointDepsIsMutable(); endpointDeps_.remove(index); onChanged(); } else { endpointDepsBuilder_.remove(index); } return this; } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public com.clarifai.grpc.api.EndpointDeps.Builder getEndpointDepsBuilder( int index) { return getEndpointDepsFieldBuilder().getBuilder(index); } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public com.clarifai.grpc.api.EndpointDepsOrBuilder getEndpointDepsOrBuilder( int index) { if (endpointDepsBuilder_ == null) { return endpointDeps_.get(index); } else { return endpointDepsBuilder_.getMessageOrBuilder(index); } } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public java.util.List getEndpointDepsOrBuilderList() { if (endpointDepsBuilder_ != null) { return endpointDepsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(endpointDeps_); } } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public com.clarifai.grpc.api.EndpointDeps.Builder addEndpointDepsBuilder() { return getEndpointDepsFieldBuilder().addBuilder( com.clarifai.grpc.api.EndpointDeps.getDefaultInstance()); } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public com.clarifai.grpc.api.EndpointDeps.Builder addEndpointDepsBuilder( int index) { return getEndpointDepsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.EndpointDeps.getDefaultInstance()); } /** *
     * endpoint_scopes is a listof all the publicly available endponts which can be
     * used as scopes as well. A call to each of those endpoint depends on a subset
     * of the above "scopes"
     * 
* * repeated .clarifai.api.EndpointDeps endpoint_deps = 3; */ public java.util.List getEndpointDepsBuilderList() { return getEndpointDepsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EndpointDeps, com.clarifai.grpc.api.EndpointDeps.Builder, com.clarifai.grpc.api.EndpointDepsOrBuilder> getEndpointDepsFieldBuilder() { if (endpointDepsBuilder_ == null) { endpointDepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EndpointDeps, com.clarifai.grpc.api.EndpointDeps.Builder, com.clarifai.grpc.api.EndpointDepsOrBuilder>( endpointDeps_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); endpointDeps_ = null; } return endpointDepsBuilder_; } @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:clarifai.api.MultiScopeDepsResponse) } // @@protoc_insertion_point(class_scope:clarifai.api.MultiScopeDepsResponse) private static final com.clarifai.grpc.api.MultiScopeDepsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.MultiScopeDepsResponse(); } public static com.clarifai.grpc.api.MultiScopeDepsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MultiScopeDepsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MultiScopeDepsResponse(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 com.clarifai.grpc.api.MultiScopeDepsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy