implements
// @@protoc_insertion_point(builder_implements:clarifai.api.Runner)
com.clarifai.grpc.api.RunnerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Runner_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Runner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Runner.class, com.clarifai.grpc.api.Runner.Builder.class);
}
// Construct using com.clarifai.grpc.api.Runner.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();
id_ = "";
description_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
userId_ = "";
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (nodepoolBuilder_ == null) {
nodepool_ = null;
} else {
nodepool_ = null;
nodepoolBuilder_ = null;
}
if (computeInfoBuilder_ == null) {
computeInfo_ = null;
} else {
computeInfo_ = null;
computeInfoBuilder_ = null;
}
objectCase_ = 0;
object_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Runner_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.Runner getDefaultInstanceForType() {
return com.clarifai.grpc.api.Runner.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.Runner build() {
com.clarifai.grpc.api.Runner result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.Runner buildPartial() {
com.clarifai.grpc.api.Runner result = new com.clarifai.grpc.api.Runner(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.description_ = description_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.userId_ = userId_;
if (((bitField0_ & 0x00000001) != 0)) {
labels_ = labels_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.labels_ = labels_;
if (objectCase_ == 9) {
if (modelBuilder_ == null) {
result.object_ = object_;
} else {
result.object_ = modelBuilder_.build();
}
}
if (objectCase_ == 10) {
if (workflowBuilder_ == null) {
result.object_ = object_;
} else {
result.object_ = workflowBuilder_.build();
}
}
if (nodepoolBuilder_ == null) {
result.nodepool_ = nodepool_;
} else {
result.nodepool_ = nodepoolBuilder_.build();
}
if (computeInfoBuilder_ == null) {
result.computeInfo_ = computeInfo_;
} else {
result.computeInfo_ = computeInfoBuilder_.build();
}
result.objectCase_ = objectCase_;
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.Runner) {
return mergeFrom((com.clarifai.grpc.api.Runner)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.Runner other) {
if (other == com.clarifai.grpc.api.Runner.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
onChanged();
}
if (other.hasNodepool()) {
mergeNodepool(other.getNodepool());
}
if (other.hasComputeInfo()) {
mergeComputeInfo(other.getComputeInfo());
}
switch (other.getObjectCase()) {
case MODEL: {
mergeModel(other.getModel());
break;
}
case WORKFLOW: {
mergeWorkflow(other.getWorkflow());
break;
}
case OBJECT_NOT_SET: {
break;
}
}
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.Runner parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.Runner) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int objectCase_ = 0;
private java.lang.Object object_;
public ObjectCase
getObjectCase() {
return ObjectCase.forNumber(
objectCase_);
}
public Builder clearObject() {
objectCase_ = 0;
object_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* A unique ID for this app module.
* This is a UUID since runners can be automatically orchestrated.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A unique ID for this app module.
* This is a UUID since runners can be automatically orchestrated.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A unique ID for this app module.
* This is a UUID since runners can be automatically orchestrated.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* A unique ID for this app module.
* This is a UUID since runners can be automatically orchestrated.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* A unique ID for this app module.
* This is a UUID since runners can be automatically orchestrated.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* A short description for this app module to be used in grids of modules.
*
*
* string description = 2;
* @return The description.
*/
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();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A short description for this app module to be used in grids of modules.
*
*
* string description = 2;
* @return The bytes for description.
*/
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 short description for this app module to be used in grids of modules.
*
*
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* A short description for this app module to be used in grids of modules.
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* A short description for this app module to be used in grids of modules.
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the app module was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.Timestamp modifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_;
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
* @return The modifiedAt.
*/
public com.google.protobuf.Timestamp getModifiedAt() {
if (modifiedAtBuilder_ == null) {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
} else {
return modifiedAtBuilder_.getMessage();
}
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
public Builder setModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifiedAt_ = value;
onChanged();
} else {
modifiedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
public Builder setModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = builderForValue.build();
onChanged();
} else {
modifiedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (modifiedAt_ != null) {
modifiedAt_ =
com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial();
} else {
modifiedAt_ = value;
}
onChanged();
} else {
modifiedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
*
* When the app module was last modified.
*
*
* .google.protobuf.Timestamp modified_at = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModifiedAtFieldBuilder() {
if (modifiedAtBuilder_ == null) {
modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModifiedAt(),
getParentForChildren(),
isClean());
modifiedAt_ = null;
}
return modifiedAtBuilder_;
}
private com.google.protobuf.Struct metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_;
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
* @return The metadata.
*/
public com.google.protobuf.Struct getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
public Builder setMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
public Builder setMetadata(
com.google.protobuf.Struct.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
public Builder mergeMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
public com.google.protobuf.Struct.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
* This is an optional arg.
*
*
* .google.protobuf.Struct metadata = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.lang.Object userId_ = "";
/**
*
* The owner of the runner. Runners belong to a user/org account.
*
*
* string user_id = 6;
* @return The userId.
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The owner of the runner. Runners belong to a user/org account.
*
*
* string user_id = 6;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The owner of the runner. Runners belong to a user/org account.
*
*
* string user_id = 6;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userId_ = value;
onChanged();
return this;
}
/**
*
* The owner of the runner. Runners belong to a user/org account.
*
*
* string user_id = 6;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* The owner of the runner. Runners belong to a user/org account.
*
*
* string user_id = 6;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList(labels_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @return A list containing the labels.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_.getUnmodifiableView();
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @return The count of labels.
*/
@java.lang.Deprecated public int getLabelsCount() {
return labels_.size();
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @param index The index of the element to return.
* @return The labels at the given index.
*/
@java.lang.Deprecated public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @param index The index to set the value at.
* @param value The labels to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setLabels(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.set(index, value);
onChanged();
return this;
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @param value The labels to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addLabels(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @param values The labels to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllLabels(
java.lang.Iterable values) {
ensureLabelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, labels_);
onChanged();
return this;
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearLabels() {
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Labels to match in order to find work.
*
*
* repeated string labels = 7 [deprecated = true];
* @deprecated clarifai.api.Runner.labels is deprecated.
* See proto/clarifai/api/resources.proto;l=4289
* @param value The bytes of the labels to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addLabelsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder> modelBuilder_;
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
* @return Whether the model field is set.
*/
@java.lang.Override
public boolean hasModel() {
return objectCase_ == 9;
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
* @return The model.
*/
@java.lang.Override
public com.clarifai.grpc.api.Model getModel() {
if (modelBuilder_ == null) {
if (objectCase_ == 9) {
return (com.clarifai.grpc.api.Model) object_;
}
return com.clarifai.grpc.api.Model.getDefaultInstance();
} else {
if (objectCase_ == 9) {
return modelBuilder_.getMessage();
}
return com.clarifai.grpc.api.Model.getDefaultInstance();
}
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
public Builder setModel(com.clarifai.grpc.api.Model value) {
if (modelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
onChanged();
} else {
modelBuilder_.setMessage(value);
}
objectCase_ = 9;
return this;
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
public Builder setModel(
com.clarifai.grpc.api.Model.Builder builderForValue) {
if (modelBuilder_ == null) {
object_ = builderForValue.build();
onChanged();
} else {
modelBuilder_.setMessage(builderForValue.build());
}
objectCase_ = 9;
return this;
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
public Builder mergeModel(com.clarifai.grpc.api.Model value) {
if (modelBuilder_ == null) {
if (objectCase_ == 9 &&
object_ != com.clarifai.grpc.api.Model.getDefaultInstance()) {
object_ = com.clarifai.grpc.api.Model.newBuilder((com.clarifai.grpc.api.Model) object_)
.mergeFrom(value).buildPartial();
} else {
object_ = value;
}
onChanged();
} else {
if (objectCase_ == 9) {
modelBuilder_.mergeFrom(value);
} else {
modelBuilder_.setMessage(value);
}
}
objectCase_ = 9;
return this;
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
public Builder clearModel() {
if (modelBuilder_ == null) {
if (objectCase_ == 9) {
objectCase_ = 0;
object_ = null;
onChanged();
}
} else {
if (objectCase_ == 9) {
objectCase_ = 0;
object_ = null;
}
modelBuilder_.clear();
}
return this;
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
public com.clarifai.grpc.api.Model.Builder getModelBuilder() {
return getModelFieldBuilder().getBuilder();
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
@java.lang.Override
public com.clarifai.grpc.api.ModelOrBuilder getModelOrBuilder() {
if ((objectCase_ == 9) && (modelBuilder_ != null)) {
return modelBuilder_.getMessageOrBuilder();
} else {
if (objectCase_ == 9) {
return (com.clarifai.grpc.api.Model) object_;
}
return com.clarifai.grpc.api.Model.getDefaultInstance();
}
}
/**
*
* Model: match work to only a specific model.
*
*
* .clarifai.api.Model model = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder>
getModelFieldBuilder() {
if (modelBuilder_ == null) {
if (!(objectCase_ == 9)) {
object_ = com.clarifai.grpc.api.Model.getDefaultInstance();
}
modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder>(
(com.clarifai.grpc.api.Model) object_,
getParentForChildren(),
isClean());
object_ = null;
}
objectCase_ = 9;
onChanged();;
return modelBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Workflow, com.clarifai.grpc.api.Workflow.Builder, com.clarifai.grpc.api.WorkflowOrBuilder> workflowBuilder_;
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
* @return Whether the workflow field is set.
*/
@java.lang.Override
public boolean hasWorkflow() {
return objectCase_ == 10;
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
* @return The workflow.
*/
@java.lang.Override
public com.clarifai.grpc.api.Workflow getWorkflow() {
if (workflowBuilder_ == null) {
if (objectCase_ == 10) {
return (com.clarifai.grpc.api.Workflow) object_;
}
return com.clarifai.grpc.api.Workflow.getDefaultInstance();
} else {
if (objectCase_ == 10) {
return workflowBuilder_.getMessage();
}
return com.clarifai.grpc.api.Workflow.getDefaultInstance();
}
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
public Builder setWorkflow(com.clarifai.grpc.api.Workflow value) {
if (workflowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
onChanged();
} else {
workflowBuilder_.setMessage(value);
}
objectCase_ = 10;
return this;
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
public Builder setWorkflow(
com.clarifai.grpc.api.Workflow.Builder builderForValue) {
if (workflowBuilder_ == null) {
object_ = builderForValue.build();
onChanged();
} else {
workflowBuilder_.setMessage(builderForValue.build());
}
objectCase_ = 10;
return this;
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
public Builder mergeWorkflow(com.clarifai.grpc.api.Workflow value) {
if (workflowBuilder_ == null) {
if (objectCase_ == 10 &&
object_ != com.clarifai.grpc.api.Workflow.getDefaultInstance()) {
object_ = com.clarifai.grpc.api.Workflow.newBuilder((com.clarifai.grpc.api.Workflow) object_)
.mergeFrom(value).buildPartial();
} else {
object_ = value;
}
onChanged();
} else {
if (objectCase_ == 10) {
workflowBuilder_.mergeFrom(value);
} else {
workflowBuilder_.setMessage(value);
}
}
objectCase_ = 10;
return this;
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
public Builder clearWorkflow() {
if (workflowBuilder_ == null) {
if (objectCase_ == 10) {
objectCase_ = 0;
object_ = null;
onChanged();
}
} else {
if (objectCase_ == 10) {
objectCase_ = 0;
object_ = null;
}
workflowBuilder_.clear();
}
return this;
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
public com.clarifai.grpc.api.Workflow.Builder getWorkflowBuilder() {
return getWorkflowFieldBuilder().getBuilder();
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
@java.lang.Override
public com.clarifai.grpc.api.WorkflowOrBuilder getWorkflowOrBuilder() {
if ((objectCase_ == 10) && (workflowBuilder_ != null)) {
return workflowBuilder_.getMessageOrBuilder();
} else {
if (objectCase_ == 10) {
return (com.clarifai.grpc.api.Workflow) object_;
}
return com.clarifai.grpc.api.Workflow.getDefaultInstance();
}
}
/**
*
* Workflow: match work to only a specific workflow.
*
*
* .clarifai.api.Workflow workflow = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Workflow, com.clarifai.grpc.api.Workflow.Builder, com.clarifai.grpc.api.WorkflowOrBuilder>
getWorkflowFieldBuilder() {
if (workflowBuilder_ == null) {
if (!(objectCase_ == 10)) {
object_ = com.clarifai.grpc.api.Workflow.getDefaultInstance();
}
workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Workflow, com.clarifai.grpc.api.Workflow.Builder, com.clarifai.grpc.api.WorkflowOrBuilder>(
(com.clarifai.grpc.api.Workflow) object_,
getParentForChildren(),
isClean());
object_ = null;
}
objectCase_ = 10;
onChanged();;
return workflowBuilder_;
}
private com.clarifai.grpc.api.Nodepool nodepool_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Nodepool, com.clarifai.grpc.api.Nodepool.Builder, com.clarifai.grpc.api.NodepoolOrBuilder> nodepoolBuilder_;
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
* @return Whether the nodepool field is set.
*/
public boolean hasNodepool() {
return nodepoolBuilder_ != null || nodepool_ != null;
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
* @return The nodepool.
*/
public com.clarifai.grpc.api.Nodepool getNodepool() {
if (nodepoolBuilder_ == null) {
return nodepool_ == null ? com.clarifai.grpc.api.Nodepool.getDefaultInstance() : nodepool_;
} else {
return nodepoolBuilder_.getMessage();
}
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
public Builder setNodepool(com.clarifai.grpc.api.Nodepool value) {
if (nodepoolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodepool_ = value;
onChanged();
} else {
nodepoolBuilder_.setMessage(value);
}
return this;
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
public Builder setNodepool(
com.clarifai.grpc.api.Nodepool.Builder builderForValue) {
if (nodepoolBuilder_ == null) {
nodepool_ = builderForValue.build();
onChanged();
} else {
nodepoolBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
public Builder mergeNodepool(com.clarifai.grpc.api.Nodepool value) {
if (nodepoolBuilder_ == null) {
if (nodepool_ != null) {
nodepool_ =
com.clarifai.grpc.api.Nodepool.newBuilder(nodepool_).mergeFrom(value).buildPartial();
} else {
nodepool_ = value;
}
onChanged();
} else {
nodepoolBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
public Builder clearNodepool() {
if (nodepoolBuilder_ == null) {
nodepool_ = null;
onChanged();
} else {
nodepool_ = null;
nodepoolBuilder_ = null;
}
return this;
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
public com.clarifai.grpc.api.Nodepool.Builder getNodepoolBuilder() {
onChanged();
return getNodepoolFieldBuilder().getBuilder();
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
public com.clarifai.grpc.api.NodepoolOrBuilder getNodepoolOrBuilder() {
if (nodepoolBuilder_ != null) {
return nodepoolBuilder_.getMessageOrBuilder();
} else {
return nodepool_ == null ?
com.clarifai.grpc.api.Nodepool.getDefaultInstance() : nodepool_;
}
}
/**
*
* Runners are defined within nodepools so this field needs the id and user_id of the nodepool
* to be provided when creating a Runner.
* This nodepool must be accessible to you or an org you are part of.
*
*
* .clarifai.api.Nodepool nodepool = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Nodepool, com.clarifai.grpc.api.Nodepool.Builder, com.clarifai.grpc.api.NodepoolOrBuilder>
getNodepoolFieldBuilder() {
if (nodepoolBuilder_ == null) {
nodepoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Nodepool, com.clarifai.grpc.api.Nodepool.Builder, com.clarifai.grpc.api.NodepoolOrBuilder>(
getNodepool(),
getParentForChildren(),
isClean());
nodepool_ = null;
}
return nodepoolBuilder_;
}
private com.clarifai.grpc.api.ComputeInfo computeInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ComputeInfo, com.clarifai.grpc.api.ComputeInfo.Builder, com.clarifai.grpc.api.ComputeInfoOrBuilder> computeInfoBuilder_;
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
* @return Whether the computeInfo field is set.
*/
public boolean hasComputeInfo() {
return computeInfoBuilder_ != null || computeInfo_ != null;
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
* @return The computeInfo.
*/
public com.clarifai.grpc.api.ComputeInfo getComputeInfo() {
if (computeInfoBuilder_ == null) {
return computeInfo_ == null ? com.clarifai.grpc.api.ComputeInfo.getDefaultInstance() : computeInfo_;
} else {
return computeInfoBuilder_.getMessage();
}
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
public Builder setComputeInfo(com.clarifai.grpc.api.ComputeInfo value) {
if (computeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
computeInfo_ = value;
onChanged();
} else {
computeInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
public Builder setComputeInfo(
com.clarifai.grpc.api.ComputeInfo.Builder builderForValue) {
if (computeInfoBuilder_ == null) {
computeInfo_ = builderForValue.build();
onChanged();
} else {
computeInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
public Builder mergeComputeInfo(com.clarifai.grpc.api.ComputeInfo value) {
if (computeInfoBuilder_ == null) {
if (computeInfo_ != null) {
computeInfo_ =
com.clarifai.grpc.api.ComputeInfo.newBuilder(computeInfo_).mergeFrom(value).buildPartial();
} else {
computeInfo_ = value;
}
onChanged();
} else {
computeInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
public Builder clearComputeInfo() {
if (computeInfoBuilder_ == null) {
computeInfo_ = null;
onChanged();
} else {
computeInfo_ = null;
computeInfoBuilder_ = null;
}
return this;
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
public com.clarifai.grpc.api.ComputeInfo.Builder getComputeInfoBuilder() {
onChanged();
return getComputeInfoFieldBuilder().getBuilder();
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
public com.clarifai.grpc.api.ComputeInfoOrBuilder getComputeInfoOrBuilder() {
if (computeInfoBuilder_ != null) {
return computeInfoBuilder_.getMessageOrBuilder();
} else {
return computeInfo_ == null ?
com.clarifai.grpc.api.ComputeInfo.getDefaultInstance() : computeInfo_;
}
}
/**
*
*//////////////////////////
* Need resources on the runner so we can schedule this Runner into the Nodepool.
* If this runner is being orchestrated for a model then the orchestrator will set this to the
* model resource requirements. If a workflow then it'll compute those requirements and set
* populate this resource field.
* Having this on the underlying object like Model and Workflow allows us to represent the minimum
* requirements on those object, which may be less than what the Runner allocates (as a safety
* margin for the runner to for sure run the resource).
*
*
* .clarifai.api.ComputeInfo compute_info = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ComputeInfo, com.clarifai.grpc.api.ComputeInfo.Builder, com.clarifai.grpc.api.ComputeInfoOrBuilder>
getComputeInfoFieldBuilder() {
if (computeInfoBuilder_ == null) {
computeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ComputeInfo, com.clarifai.grpc.api.ComputeInfo.Builder, com.clarifai.grpc.api.ComputeInfoOrBuilder>(
getComputeInfo(),
getParentForChildren(),
isClean());
computeInfo_ = null;
}
return computeInfoBuilder_;
}
@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.Runner)
}
// @@protoc_insertion_point(class_scope:clarifai.api.Runner)
private static final com.clarifai.grpc.api.Runner DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.Runner();
}
public static com.clarifai.grpc.api.Runner getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Runner parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Runner(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.Runner getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}