implements
// @@protoc_insertion_point(builder_implements:clarifai.api.AppDuplication)
com.clarifai.grpc.api.AppDuplicationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_AppDuplication_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_AppDuplication_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.AppDuplication.class, com.clarifai.grpc.api.AppDuplication.Builder.class);
}
// Construct using com.clarifai.grpc.api.AppDuplication.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProgressFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
if (destinationAppBuilder_ == null) {
destinationApp_ = null;
} else {
destinationApp_ = null;
destinationAppBuilder_ = null;
}
existingAppId_ = "";
newAppId_ = "";
newAppName_ = "";
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (lastModifiedAtBuilder_ == null) {
lastModifiedAt_ = null;
} else {
lastModifiedAt_ = null;
lastModifiedAtBuilder_ = null;
}
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
if (progressBuilder_ == null) {
progress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
progressBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_AppDuplication_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.AppDuplication getDefaultInstanceForType() {
return com.clarifai.grpc.api.AppDuplication.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.AppDuplication build() {
com.clarifai.grpc.api.AppDuplication result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.AppDuplication buildPartial() {
com.clarifai.grpc.api.AppDuplication result = new com.clarifai.grpc.api.AppDuplication(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
if (destinationAppBuilder_ == null) {
result.destinationApp_ = destinationApp_;
} else {
result.destinationApp_ = destinationAppBuilder_.build();
}
result.existingAppId_ = existingAppId_;
result.newAppId_ = newAppId_;
result.newAppName_ = newAppName_;
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (lastModifiedAtBuilder_ == null) {
result.lastModifiedAt_ = lastModifiedAt_;
} else {
result.lastModifiedAt_ = lastModifiedAtBuilder_.build();
}
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
if (progressBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
progress_ = java.util.Collections.unmodifiableList(progress_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.progress_ = progress_;
} else {
result.progress_ = progressBuilder_.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.AppDuplication) {
return mergeFrom((com.clarifai.grpc.api.AppDuplication)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.AppDuplication other) {
if (other == com.clarifai.grpc.api.AppDuplication.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasDestinationApp()) {
mergeDestinationApp(other.getDestinationApp());
}
if (!other.getExistingAppId().isEmpty()) {
existingAppId_ = other.existingAppId_;
onChanged();
}
if (!other.getNewAppId().isEmpty()) {
newAppId_ = other.newAppId_;
onChanged();
}
if (!other.getNewAppName().isEmpty()) {
newAppName_ = other.newAppName_;
onChanged();
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasLastModifiedAt()) {
mergeLastModifiedAt(other.getLastModifiedAt());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (progressBuilder_ == null) {
if (!other.progress_.isEmpty()) {
if (progress_.isEmpty()) {
progress_ = other.progress_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProgressIsMutable();
progress_.addAll(other.progress_);
}
onChanged();
}
} else {
if (!other.progress_.isEmpty()) {
if (progressBuilder_.isEmpty()) {
progressBuilder_.dispose();
progressBuilder_ = null;
progress_ = other.progress_;
bitField0_ = (bitField0_ & ~0x00000001);
progressBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProgressFieldBuilder() : null;
} else {
progressBuilder_.addAllMessages(other.progress_);
}
}
}
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.AppDuplication parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.AppDuplication) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* The unique identifier of an app duplication job.
*
*
* 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;
}
}
/**
*
* The unique identifier of an app duplication job.
*
*
* 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;
}
}
/**
*
* The unique identifier of an app duplication job.
*
*
* 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;
}
/**
*
* The unique identifier of an app duplication job.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The unique identifier of an app duplication job.
*
*
* 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 com.clarifai.grpc.api.App destinationApp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.App, com.clarifai.grpc.api.App.Builder, com.clarifai.grpc.api.AppOrBuilder> destinationAppBuilder_;
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
* @return Whether the destinationApp field is set.
*/
public boolean hasDestinationApp() {
return destinationAppBuilder_ != null || destinationApp_ != null;
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
* @return The destinationApp.
*/
public com.clarifai.grpc.api.App getDestinationApp() {
if (destinationAppBuilder_ == null) {
return destinationApp_ == null ? com.clarifai.grpc.api.App.getDefaultInstance() : destinationApp_;
} else {
return destinationAppBuilder_.getMessage();
}
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
public Builder setDestinationApp(com.clarifai.grpc.api.App value) {
if (destinationAppBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
destinationApp_ = value;
onChanged();
} else {
destinationAppBuilder_.setMessage(value);
}
return this;
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
public Builder setDestinationApp(
com.clarifai.grpc.api.App.Builder builderForValue) {
if (destinationAppBuilder_ == null) {
destinationApp_ = builderForValue.build();
onChanged();
} else {
destinationAppBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
public Builder mergeDestinationApp(com.clarifai.grpc.api.App value) {
if (destinationAppBuilder_ == null) {
if (destinationApp_ != null) {
destinationApp_ =
com.clarifai.grpc.api.App.newBuilder(destinationApp_).mergeFrom(value).buildPartial();
} else {
destinationApp_ = value;
}
onChanged();
} else {
destinationAppBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
public Builder clearDestinationApp() {
if (destinationAppBuilder_ == null) {
destinationApp_ = null;
onChanged();
} else {
destinationApp_ = null;
destinationAppBuilder_ = null;
}
return this;
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
public com.clarifai.grpc.api.App.Builder getDestinationAppBuilder() {
onChanged();
return getDestinationAppFieldBuilder().getBuilder();
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
public com.clarifai.grpc.api.AppOrBuilder getDestinationAppOrBuilder() {
if (destinationAppBuilder_ != null) {
return destinationAppBuilder_.getMessageOrBuilder();
} else {
return destinationApp_ == null ?
com.clarifai.grpc.api.App.getDefaultInstance() : destinationApp_;
}
}
/**
*
* The destination application where resources are written.
* If the destination does not exist, then the fields from the request are
* used to create the application. If a field is not set or not supported,
* then it will be copied from the source app, unless otherwise noted.
* Note: this field can be empty when reading app duplication jobs in cases
* where the app has been deleted or is just not visible to the caller.
* ########## Supported fields ##########
* - description
* - id - if not set, then generated automatically
* - user_id - if not set, then the calling user is used as the app owner
*
*
* .clarifai.api.App destination_app = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.App, com.clarifai.grpc.api.App.Builder, com.clarifai.grpc.api.AppOrBuilder>
getDestinationAppFieldBuilder() {
if (destinationAppBuilder_ == null) {
destinationAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.App, com.clarifai.grpc.api.App.Builder, com.clarifai.grpc.api.AppOrBuilder>(
getDestinationApp(),
getParentForChildren(),
isClean());
destinationApp_ = null;
}
return destinationAppBuilder_;
}
private java.lang.Object existingAppId_ = "";
/**
*
* The ID of an existing app you want to copy data into.
* If not provided, then we will create a new application as the destination instead.
* The various new_app_* fields can be used to set fields of this new application.
* Deprecated: Use destination_app.id with an existing ID instead.
*
*
* string existing_app_id = 8 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.existing_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2860
* @return The existingAppId.
*/
@java.lang.Deprecated public java.lang.String getExistingAppId() {
java.lang.Object ref = existingAppId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
existingAppId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of an existing app you want to copy data into.
* If not provided, then we will create a new application as the destination instead.
* The various new_app_* fields can be used to set fields of this new application.
* Deprecated: Use destination_app.id with an existing ID instead.
*
*
* string existing_app_id = 8 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.existing_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2860
* @return The bytes for existingAppId.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getExistingAppIdBytes() {
java.lang.Object ref = existingAppId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
existingAppId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of an existing app you want to copy data into.
* If not provided, then we will create a new application as the destination instead.
* The various new_app_* fields can be used to set fields of this new application.
* Deprecated: Use destination_app.id with an existing ID instead.
*
*
* string existing_app_id = 8 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.existing_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2860
* @param value The existingAppId to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setExistingAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
existingAppId_ = value;
onChanged();
return this;
}
/**
*
* The ID of an existing app you want to copy data into.
* If not provided, then we will create a new application as the destination instead.
* The various new_app_* fields can be used to set fields of this new application.
* Deprecated: Use destination_app.id with an existing ID instead.
*
*
* string existing_app_id = 8 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.existing_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2860
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearExistingAppId() {
existingAppId_ = getDefaultInstance().getExistingAppId();
onChanged();
return this;
}
/**
*
* The ID of an existing app you want to copy data into.
* If not provided, then we will create a new application as the destination instead.
* The various new_app_* fields can be used to set fields of this new application.
* Deprecated: Use destination_app.id with an existing ID instead.
*
*
* string existing_app_id = 8 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.existing_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2860
* @param value The bytes for existingAppId to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setExistingAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
existingAppId_ = value;
onChanged();
return this;
}
private java.lang.Object newAppId_ = "";
/**
*
* The ID to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then it will be generated automatically.
* Deprecated: Use destination_app.id with a new ID instead.
*
*
* string new_app_id = 2 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2868
* @return The newAppId.
*/
@java.lang.Deprecated public java.lang.String getNewAppId() {
java.lang.Object ref = newAppId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
newAppId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then it will be generated automatically.
* Deprecated: Use destination_app.id with a new ID instead.
*
*
* string new_app_id = 2 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2868
* @return The bytes for newAppId.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getNewAppIdBytes() {
java.lang.Object ref = newAppId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newAppId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then it will be generated automatically.
* Deprecated: Use destination_app.id with a new ID instead.
*
*
* string new_app_id = 2 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2868
* @param value The newAppId to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setNewAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
newAppId_ = value;
onChanged();
return this;
}
/**
*
* The ID to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then it will be generated automatically.
* Deprecated: Use destination_app.id with a new ID instead.
*
*
* string new_app_id = 2 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2868
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearNewAppId() {
newAppId_ = getDefaultInstance().getNewAppId();
onChanged();
return this;
}
/**
*
* The ID to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then it will be generated automatically.
* Deprecated: Use destination_app.id with a new ID instead.
*
*
* string new_app_id = 2 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_id is deprecated.
* See proto/clarifai/api/resources.proto;l=2868
* @param value The bytes for newAppId to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setNewAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newAppId_ = value;
onChanged();
return this;
}
private java.lang.Object newAppName_ = "";
/**
*
* The name to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then the ID of the new application is also used as the name.
* Deprecated: Application names are deprecated, use application IDs instead.
*
*
* string new_app_name = 3 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_name is deprecated.
* See proto/clarifai/api/resources.proto;l=2876
* @return The newAppName.
*/
@java.lang.Deprecated public java.lang.String getNewAppName() {
java.lang.Object ref = newAppName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
newAppName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then the ID of the new application is also used as the name.
* Deprecated: Application names are deprecated, use application IDs instead.
*
*
* string new_app_name = 3 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_name is deprecated.
* See proto/clarifai/api/resources.proto;l=2876
* @return The bytes for newAppName.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getNewAppNameBytes() {
java.lang.Object ref = newAppName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newAppName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then the ID of the new application is also used as the name.
* Deprecated: Application names are deprecated, use application IDs instead.
*
*
* string new_app_name = 3 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_name is deprecated.
* See proto/clarifai/api/resources.proto;l=2876
* @param value The newAppName to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setNewAppName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
newAppName_ = value;
onChanged();
return this;
}
/**
*
* The name to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then the ID of the new application is also used as the name.
* Deprecated: Application names are deprecated, use application IDs instead.
*
*
* string new_app_name = 3 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_name is deprecated.
* See proto/clarifai/api/resources.proto;l=2876
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearNewAppName() {
newAppName_ = getDefaultInstance().getNewAppName();
onChanged();
return this;
}
/**
*
* The name to use when creating a new application.
* You cannot set this field when copying into an existing app, i.e., when existing_app_is is set.
* If not provided, then the ID of the new application is also used as the name.
* Deprecated: Application names are deprecated, use application IDs instead.
*
*
* string new_app_name = 3 [deprecated = true];
* @deprecated clarifai.api.AppDuplication.new_app_name is deprecated.
* See proto/clarifai/api/resources.proto;l=2876
* @param value The bytes for newAppName to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setNewAppNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newAppName_ = value;
onChanged();
return this;
}
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 app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* The status of the app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
* @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 app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
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 app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
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 app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
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 app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
*
* The status of the app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* The status of the app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
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 app duplication job.
*
*
* .clarifai.api.status.Status status = 4;
*/
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 com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @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();
}
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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;
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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;
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* The time when the app duplication job was created.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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 lastModifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastModifiedAtBuilder_;
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
* @return Whether the lastModifiedAt field is set.
*/
public boolean hasLastModifiedAt() {
return lastModifiedAtBuilder_ != null || lastModifiedAt_ != null;
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
* @return The lastModifiedAt.
*/
public com.google.protobuf.Timestamp getLastModifiedAt() {
if (lastModifiedAtBuilder_ == null) {
return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_;
} else {
return lastModifiedAtBuilder_.getMessage();
}
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
public Builder setLastModifiedAt(com.google.protobuf.Timestamp value) {
if (lastModifiedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastModifiedAt_ = value;
onChanged();
} else {
lastModifiedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
public Builder setLastModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastModifiedAtBuilder_ == null) {
lastModifiedAt_ = builderForValue.build();
onChanged();
} else {
lastModifiedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
public Builder mergeLastModifiedAt(com.google.protobuf.Timestamp value) {
if (lastModifiedAtBuilder_ == null) {
if (lastModifiedAt_ != null) {
lastModifiedAt_ =
com.google.protobuf.Timestamp.newBuilder(lastModifiedAt_).mergeFrom(value).buildPartial();
} else {
lastModifiedAt_ = value;
}
onChanged();
} else {
lastModifiedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
public Builder clearLastModifiedAt() {
if (lastModifiedAtBuilder_ == null) {
lastModifiedAt_ = null;
onChanged();
} else {
lastModifiedAt_ = null;
lastModifiedAtBuilder_ = null;
}
return this;
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
public com.google.protobuf.Timestamp.Builder getLastModifiedAtBuilder() {
onChanged();
return getLastModifiedAtFieldBuilder().getBuilder();
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
public com.google.protobuf.TimestampOrBuilder getLastModifiedAtOrBuilder() {
if (lastModifiedAtBuilder_ != null) {
return lastModifiedAtBuilder_.getMessageOrBuilder();
} else {
return lastModifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_;
}
}
/**
*
* The last time when the app duplication job status was updated.
*
*
* .google.protobuf.Timestamp last_modified_at = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastModifiedAtFieldBuilder() {
if (lastModifiedAtBuilder_ == null) {
lastModifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastModifiedAt(),
getParentForChildren(),
isClean());
lastModifiedAt_ = null;
}
return lastModifiedAtBuilder_;
}
private com.clarifai.grpc.api.AppDuplicationFilters filter_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AppDuplicationFilters, com.clarifai.grpc.api.AppDuplicationFilters.Builder, com.clarifai.grpc.api.AppDuplicationFiltersOrBuilder> filterBuilder_;
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
* @return The filter.
*/
public com.clarifai.grpc.api.AppDuplicationFilters getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? com.clarifai.grpc.api.AppDuplicationFilters.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
public Builder setFilter(com.clarifai.grpc.api.AppDuplicationFilters value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
public Builder setFilter(
com.clarifai.grpc.api.AppDuplicationFilters.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
public Builder mergeFilter(com.clarifai.grpc.api.AppDuplicationFilters value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
com.clarifai.grpc.api.AppDuplicationFilters.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
public com.clarifai.grpc.api.AppDuplicationFilters.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
public com.clarifai.grpc.api.AppDuplicationFiltersOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
com.clarifai.grpc.api.AppDuplicationFilters.getDefaultInstance() : filter_;
}
}
/**
*
* The filter specifies which resources are copied by the app duplication job.
*
*
* .clarifai.api.AppDuplicationFilters filter = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AppDuplicationFilters, com.clarifai.grpc.api.AppDuplicationFilters.Builder, com.clarifai.grpc.api.AppDuplicationFiltersOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AppDuplicationFilters, com.clarifai.grpc.api.AppDuplicationFilters.Builder, com.clarifai.grpc.api.AppDuplicationFiltersOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private java.util.List progress_ =
java.util.Collections.emptyList();
private void ensureProgressIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
progress_ = new java.util.ArrayList(progress_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.AppCopyProgress, com.clarifai.grpc.api.AppCopyProgress.Builder, com.clarifai.grpc.api.AppCopyProgressOrBuilder> progressBuilder_;
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public java.util.List getProgressList() {
if (progressBuilder_ == null) {
return java.util.Collections.unmodifiableList(progress_);
} else {
return progressBuilder_.getMessageList();
}
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public int getProgressCount() {
if (progressBuilder_ == null) {
return progress_.size();
} else {
return progressBuilder_.getCount();
}
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public com.clarifai.grpc.api.AppCopyProgress getProgress(int index) {
if (progressBuilder_ == null) {
return progress_.get(index);
} else {
return progressBuilder_.getMessage(index);
}
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder setProgress(
int index, com.clarifai.grpc.api.AppCopyProgress value) {
if (progressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProgressIsMutable();
progress_.set(index, value);
onChanged();
} else {
progressBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder setProgress(
int index, com.clarifai.grpc.api.AppCopyProgress.Builder builderForValue) {
if (progressBuilder_ == null) {
ensureProgressIsMutable();
progress_.set(index, builderForValue.build());
onChanged();
} else {
progressBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder addProgress(com.clarifai.grpc.api.AppCopyProgress value) {
if (progressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProgressIsMutable();
progress_.add(value);
onChanged();
} else {
progressBuilder_.addMessage(value);
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder addProgress(
int index, com.clarifai.grpc.api.AppCopyProgress value) {
if (progressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProgressIsMutable();
progress_.add(index, value);
onChanged();
} else {
progressBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder addProgress(
com.clarifai.grpc.api.AppCopyProgress.Builder builderForValue) {
if (progressBuilder_ == null) {
ensureProgressIsMutable();
progress_.add(builderForValue.build());
onChanged();
} else {
progressBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder addProgress(
int index, com.clarifai.grpc.api.AppCopyProgress.Builder builderForValue) {
if (progressBuilder_ == null) {
ensureProgressIsMutable();
progress_.add(index, builderForValue.build());
onChanged();
} else {
progressBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder addAllProgress(
java.lang.Iterable extends com.clarifai.grpc.api.AppCopyProgress> values) {
if (progressBuilder_ == null) {
ensureProgressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, progress_);
onChanged();
} else {
progressBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder clearProgress() {
if (progressBuilder_ == null) {
progress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
progressBuilder_.clear();
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public Builder removeProgress(int index) {
if (progressBuilder_ == null) {
ensureProgressIsMutable();
progress_.remove(index);
onChanged();
} else {
progressBuilder_.remove(index);
}
return this;
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public com.clarifai.grpc.api.AppCopyProgress.Builder getProgressBuilder(
int index) {
return getProgressFieldBuilder().getBuilder(index);
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public com.clarifai.grpc.api.AppCopyProgressOrBuilder getProgressOrBuilder(
int index) {
if (progressBuilder_ == null) {
return progress_.get(index); } else {
return progressBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public java.util.List extends com.clarifai.grpc.api.AppCopyProgressOrBuilder>
getProgressOrBuilderList() {
if (progressBuilder_ != null) {
return progressBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(progress_);
}
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public com.clarifai.grpc.api.AppCopyProgress.Builder addProgressBuilder() {
return getProgressFieldBuilder().addBuilder(
com.clarifai.grpc.api.AppCopyProgress.getDefaultInstance());
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public com.clarifai.grpc.api.AppCopyProgress.Builder addProgressBuilder(
int index) {
return getProgressFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.AppCopyProgress.getDefaultInstance());
}
/**
*
* Copy progress for each resource type requested by the filter. Possible fields:
* - inputs
* - concepts
* - annotations
* - models
* - workflows
*
*
* repeated .clarifai.api.AppCopyProgress progress = 9;
*/
public java.util.List
getProgressBuilderList() {
return getProgressFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.AppCopyProgress, com.clarifai.grpc.api.AppCopyProgress.Builder, com.clarifai.grpc.api.AppCopyProgressOrBuilder>
getProgressFieldBuilder() {
if (progressBuilder_ == null) {
progressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.AppCopyProgress, com.clarifai.grpc.api.AppCopyProgress.Builder, com.clarifai.grpc.api.AppCopyProgressOrBuilder>(
progress_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
progress_ = null;
}
return progressBuilder_;
}
@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.AppDuplication)
}
// @@protoc_insertion_point(class_scope:clarifai.api.AppDuplication)
private static final com.clarifai.grpc.api.AppDuplication DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.AppDuplication();
}
public static com.clarifai.grpc.api.AppDuplication getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AppDuplication parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AppDuplication(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.AppDuplication getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}