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.
*
* string dataset_id = 2;
* @return The bytes for datasetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatasetIdBytes() {
java.lang.Object ref = datasetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datasetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUT_IDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList inputIds_;
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @return A list containing the inputIds.
*/
public com.google.protobuf.ProtocolStringList
getInputIdsList() {
return inputIds_;
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @return The count of inputIds.
*/
public int getInputIdsCount() {
return inputIds_.size();
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param index The index of the element to return.
* @return The inputIds at the given index.
*/
public java.lang.String getInputIds(int index) {
return inputIds_.get(index);
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param index The index of the value to return.
* @return The bytes of the inputIds at the given index.
*/
public com.google.protobuf.ByteString
getInputIdsBytes(int index) {
return inputIds_.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(datasetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetId_);
}
for (int i = 0; i < inputIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputIds_.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(datasetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datasetId_);
}
{
int dataSize = 0;
for (int i = 0; i < inputIds_.size(); i++) {
dataSize += computeStringSizeNoTag(inputIds_.getRaw(i));
}
size += dataSize;
size += 1 * getInputIdsList().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.DeleteDatasetInputsRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.DeleteDatasetInputsRequest other = (com.clarifai.grpc.api.DeleteDatasetInputsRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getDatasetId()
.equals(other.getDatasetId())) return false;
if (!getInputIdsList()
.equals(other.getInputIdsList())) 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) + DATASET_ID_FIELD_NUMBER;
hash = (53 * hash) + getDatasetId().hashCode();
if (getInputIdsCount() > 0) {
hash = (37 * hash) + INPUT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getInputIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest 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.DeleteDatasetInputsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest 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.DeleteDatasetInputsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest 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.DeleteDatasetInputsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest 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.DeleteDatasetInputsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DeleteDatasetInputsRequest 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.DeleteDatasetInputsRequest 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;
}
/**
*
* Request to delete several dataset inputs by list of ids.
*
*
* string dataset_id = 2;
* @return The bytes for datasetId.
*/
public com.google.protobuf.ByteString
getDatasetIdBytes() {
java.lang.Object ref = datasetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datasetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identify dataset by id.
*
*
* string dataset_id = 2;
* @param value The datasetId to set.
* @return This builder for chaining.
*/
public Builder setDatasetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
datasetId_ = value;
onChanged();
return this;
}
/**
*
* Identify dataset by id.
*
*
* string dataset_id = 2;
* @return This builder for chaining.
*/
public Builder clearDatasetId() {
datasetId_ = getDefaultInstance().getDatasetId();
onChanged();
return this;
}
/**
*
* Identify dataset by id.
*
*
* string dataset_id = 2;
* @param value The bytes for datasetId to set.
* @return This builder for chaining.
*/
public Builder setDatasetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
datasetId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList inputIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInputIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
inputIds_ = new com.google.protobuf.LazyStringArrayList(inputIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @return A list containing the inputIds.
*/
public com.google.protobuf.ProtocolStringList
getInputIdsList() {
return inputIds_.getUnmodifiableView();
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @return The count of inputIds.
*/
public int getInputIdsCount() {
return inputIds_.size();
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param index The index of the element to return.
* @return The inputIds at the given index.
*/
public java.lang.String getInputIds(int index) {
return inputIds_.get(index);
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param index The index of the value to return.
* @return The bytes of the inputIds at the given index.
*/
public com.google.protobuf.ByteString
getInputIdsBytes(int index) {
return inputIds_.getByteString(index);
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param index The index to set the value at.
* @param value The inputIds to set.
* @return This builder for chaining.
*/
public Builder setInputIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInputIdsIsMutable();
inputIds_.set(index, value);
onChanged();
return this;
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param value The inputIds to add.
* @return This builder for chaining.
*/
public Builder addInputIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInputIdsIsMutable();
inputIds_.add(value);
onChanged();
return this;
}
/**
*
* Specify which inputs to delete from dataset.
*
*
* repeated string input_ids = 3;
* @param values The inputIds to add.
* @return This builder for chaining.
*/
public Builder addAllInputIds(
java.lang.Iterable values) {
ensureInputIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputIds_);
onChanged();
return this;
}
/**
*