Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* The id of the workflow that has the requested versions to delete.
*
*
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_VERSION_IDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList workflowVersionIds_;
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @return A list containing the workflowVersionIds.
*/
public com.google.protobuf.ProtocolStringList
getWorkflowVersionIdsList() {
return workflowVersionIds_;
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @return The count of workflowVersionIds.
*/
public int getWorkflowVersionIdsCount() {
return workflowVersionIds_.size();
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param index The index of the element to return.
* @return The workflowVersionIds at the given index.
*/
public java.lang.String getWorkflowVersionIds(int index) {
return workflowVersionIds_.get(index);
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param index The index of the value to return.
* @return The bytes of the workflowVersionIds at the given index.
*/
public com.google.protobuf.ByteString
getWorkflowVersionIdsBytes(int index) {
return workflowVersionIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (userAppId_ != null) {
output.writeMessage(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workflowId_);
}
for (int i = 0; i < workflowVersionIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowVersionIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userAppId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workflowId_);
}
{
int dataSize = 0;
for (int i = 0; i < workflowVersionIds_.size(); i++) {
dataSize += computeStringSizeNoTag(workflowVersionIds_.getRaw(i));
}
size += dataSize;
size += 1 * getWorkflowVersionIdsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.clarifai.grpc.api.DeleteWorkflowVersionsRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.DeleteWorkflowVersionsRequest other = (com.clarifai.grpc.api.DeleteWorkflowVersionsRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (!getWorkflowVersionIdsList()
.equals(other.getWorkflowVersionIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasUserAppId()) {
hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserAppId().hashCode();
}
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
if (getWorkflowVersionIdsCount() > 0) {
hash = (37 * hash) + WORKFLOW_VERSION_IDS_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowVersionIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DeleteWorkflowVersionsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.clarifai.grpc.api.DeleteWorkflowVersionsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The id of the workflow that has the requested versions to delete.
*
*
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The id of the workflow that has the requested versions to delete.
*
*
* string workflow_id = 2;
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
*
* The id of the workflow that has the requested versions to delete.
*
*
* string workflow_id = 2;
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
*
* The id of the workflow that has the requested versions to delete.
*
*
* string workflow_id = 2;
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList workflowVersionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureWorkflowVersionIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
workflowVersionIds_ = new com.google.protobuf.LazyStringArrayList(workflowVersionIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @return A list containing the workflowVersionIds.
*/
public com.google.protobuf.ProtocolStringList
getWorkflowVersionIdsList() {
return workflowVersionIds_.getUnmodifiableView();
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @return The count of workflowVersionIds.
*/
public int getWorkflowVersionIdsCount() {
return workflowVersionIds_.size();
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param index The index of the element to return.
* @return The workflowVersionIds at the given index.
*/
public java.lang.String getWorkflowVersionIds(int index) {
return workflowVersionIds_.get(index);
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param index The index of the value to return.
* @return The bytes of the workflowVersionIds at the given index.
*/
public com.google.protobuf.ByteString
getWorkflowVersionIdsBytes(int index) {
return workflowVersionIds_.getByteString(index);
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param index The index to set the value at.
* @param value The workflowVersionIds to set.
* @return This builder for chaining.
*/
public Builder setWorkflowVersionIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkflowVersionIdsIsMutable();
workflowVersionIds_.set(index, value);
onChanged();
return this;
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param value The workflowVersionIds to add.
* @return This builder for chaining.
*/
public Builder addWorkflowVersionIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkflowVersionIdsIsMutable();
workflowVersionIds_.add(value);
onChanged();
return this;
}
/**
*
* Delete the versions identified by these ids
*
*
* repeated string workflow_version_ids = 3;
* @param values The workflowVersionIds to add.
* @return This builder for chaining.
*/
public Builder addAllWorkflowVersionIds(
java.lang.Iterable values) {
ensureWorkflowVersionIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, workflowVersionIds_);
onChanged();
return this;
}
/**
*