com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/service.proto
package com.clarifai.grpc.api;
/**
*
* ListDatasetVersionMetricsGroupsRequest
*
*
* Protobuf type {@code clarifai.api.ListDatasetVersionMetricsGroupsRequest}
*/
public final class ListDatasetVersionMetricsGroupsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.ListDatasetVersionMetricsGroupsRequest)
ListDatasetVersionMetricsGroupsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDatasetVersionMetricsGroupsRequest.newBuilder() to construct.
private ListDatasetVersionMetricsGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDatasetVersionMetricsGroupsRequest() {
datasetId_ = "";
datasetVersionId_ = "";
parentPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
types_ = java.util.Collections.emptyList();
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDatasetVersionMetricsGroupsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDatasetVersionMetricsGroupsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.clarifai.grpc.api.UserAppIDSet.Builder subBuilder = null;
if (userAppId_ != null) {
subBuilder = userAppId_.toBuilder();
}
userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userAppId_);
userAppId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
datasetId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
datasetVersionId_ = s;
break;
}
case 32: {
page_ = input.readUInt32();
break;
}
case 40: {
perPage_ = input.readUInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
parentPaths_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
parentPaths_.add(s);
break;
}
case 56: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
types_.add(rawValue);
break;
}
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
types_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
values_.add(
input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
parentPaths_ = parentPaths_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
types_ = java.util.Collections.unmodifiableList(types_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListDatasetVersionMetricsGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListDatasetVersionMetricsGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.class, com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.Builder.class);
}
public static final int USER_APP_ID_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
@java.lang.Override
public boolean hasUserAppId() {
return userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
return getUserAppId();
}
public static final int DATASET_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object datasetId_;
/**
*
* Identify dataset by id.
*
*
* string dataset_id = 2;
* @return The datasetId.
*/
@java.lang.Override
public java.lang.String getDatasetId() {
java.lang.Object ref = datasetId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datasetId_ = s;
return s;
}
}
/**
*
* Identify dataset by id.
*
*
* 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 DATASET_VERSION_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object datasetVersionId_;
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @return The datasetVersionId.
*/
@java.lang.Override
public java.lang.String getDatasetVersionId() {
java.lang.Object ref = datasetVersionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datasetVersionId_ = s;
return s;
}
}
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @return The bytes for datasetVersionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatasetVersionIdBytes() {
java.lang.Object ref = datasetVersionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datasetVersionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_FIELD_NUMBER = 4;
private int page_;
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 4;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
public static final int PER_PAGE_FIELD_NUMBER = 5;
private int perPage_;
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 5;
* @return The perPage.
*/
@java.lang.Override
public int getPerPage() {
return perPage_;
}
public static final int PARENT_PATHS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList parentPaths_;
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @return A list containing the parentPaths.
*/
public com.google.protobuf.ProtocolStringList
getParentPathsList() {
return parentPaths_;
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @return The count of parentPaths.
*/
public int getParentPathsCount() {
return parentPaths_.size();
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param index The index of the element to return.
* @return The parentPaths at the given index.
*/
public java.lang.String getParentPaths(int index) {
return parentPaths_.get(index);
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param index The index of the value to return.
* @return The bytes of the parentPaths at the given index.
*/
public com.google.protobuf.ByteString
getParentPathsBytes(int index) {
return parentPaths_.getByteString(index);
}
public static final int TYPES_FIELD_NUMBER = 7;
private java.util.List types_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.clarifai.grpc.api.DatasetVersionMetricsGroupType> types_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.clarifai.grpc.api.DatasetVersionMetricsGroupType>() {
public com.clarifai.grpc.api.DatasetVersionMetricsGroupType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.DatasetVersionMetricsGroupType result = com.clarifai.grpc.api.DatasetVersionMetricsGroupType.valueOf(from);
return result == null ? com.clarifai.grpc.api.DatasetVersionMetricsGroupType.UNRECOGNIZED : result;
}
};
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return A list containing the types.
*/
@java.lang.Override
public java.util.List getTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.clarifai.grpc.api.DatasetVersionMetricsGroupType>(types_, types_converter_);
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return The count of types.
*/
@java.lang.Override
public int getTypesCount() {
return types_.size();
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param index The index of the element to return.
* @return The types at the given index.
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionMetricsGroupType getTypes(int index) {
return types_converter_.convert(types_.get(index));
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return A list containing the enum numeric values on the wire for types.
*/
@java.lang.Override
public java.util.List
getTypesValueList() {
return types_;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of types at the given index.
*/
@java.lang.Override
public int getTypesValue(int index) {
return types_.get(index);
}
private int typesMemoizedSerializedSize;
public static final int VALUES_FIELD_NUMBER = 8;
private java.util.List values_;
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.ValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
@java.lang.Override
public com.google.protobuf.Value getValues(int index) {
return values_.get(index);
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
@java.lang.Override
public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (userAppId_ != null) {
output.writeMessage(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetVersionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, datasetVersionId_);
}
if (page_ != 0) {
output.writeUInt32(4, page_);
}
if (perPage_ != 0) {
output.writeUInt32(5, perPage_);
}
for (int i = 0; i < parentPaths_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parentPaths_.getRaw(i));
}
if (getTypesList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(typesMemoizedSerializedSize);
}
for (int i = 0; i < types_.size(); i++) {
output.writeEnumNoTag(types_.get(i));
}
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(8, values_.get(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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetVersionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, datasetVersionId_);
}
if (page_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, page_);
}
if (perPage_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, perPage_);
}
{
int dataSize = 0;
for (int i = 0; i < parentPaths_.size(); i++) {
dataSize += computeStringSizeNoTag(parentPaths_.getRaw(i));
}
size += dataSize;
size += 1 * getParentPathsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < types_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(types_.get(i));
}
size += dataSize;
if (!getTypesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}typesMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, values_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest other = (com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getDatasetId()
.equals(other.getDatasetId())) return false;
if (!getDatasetVersionId()
.equals(other.getDatasetVersionId())) return false;
if (getPage()
!= other.getPage()) return false;
if (getPerPage()
!= other.getPerPage()) return false;
if (!getParentPathsList()
.equals(other.getParentPathsList())) return false;
if (!types_.equals(other.types_)) return false;
if (!getValuesList()
.equals(other.getValuesList())) 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();
hash = (37 * hash) + DATASET_VERSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getDatasetVersionId().hashCode();
hash = (37 * hash) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage();
hash = (37 * hash) + PER_PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPerPage();
if (getParentPathsCount() > 0) {
hash = (37 * hash) + PARENT_PATHS_FIELD_NUMBER;
hash = (53 * hash) + getParentPathsList().hashCode();
}
if (getTypesCount() > 0) {
hash = (37 * hash) + TYPES_FIELD_NUMBER;
hash = (53 * hash) + types_.hashCode();
}
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest 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.ListDatasetVersionMetricsGroupsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest 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.ListDatasetVersionMetricsGroupsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest 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.ListDatasetVersionMetricsGroupsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest 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.ListDatasetVersionMetricsGroupsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest 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.ListDatasetVersionMetricsGroupsRequest 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;
}
/**
*
* ListDatasetVersionMetricsGroupsRequest
*
*
* Protobuf type {@code clarifai.api.ListDatasetVersionMetricsGroupsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.ListDatasetVersionMetricsGroupsRequest)
com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListDatasetVersionMetricsGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListDatasetVersionMetricsGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.class, com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.Builder.class);
}
// Construct using com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValuesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userAppIdBuilder_ == null) {
userAppId_ = null;
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
datasetId_ = "";
datasetVersionId_ = "";
page_ = 0;
perPage_ = 0;
parentPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
types_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
valuesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListDatasetVersionMetricsGroupsRequest_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest getDefaultInstanceForType() {
return com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest build() {
com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest buildPartial() {
com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest result = new com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest(this);
int from_bitField0_ = bitField0_;
if (userAppIdBuilder_ == null) {
result.userAppId_ = userAppId_;
} else {
result.userAppId_ = userAppIdBuilder_.build();
}
result.datasetId_ = datasetId_;
result.datasetVersionId_ = datasetVersionId_;
result.page_ = page_;
result.perPage_ = perPage_;
if (((bitField0_ & 0x00000001) != 0)) {
parentPaths_ = parentPaths_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.parentPaths_ = parentPaths_;
if (((bitField0_ & 0x00000002) != 0)) {
types_ = java.util.Collections.unmodifiableList(types_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.types_ = types_;
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.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.ListDatasetVersionMetricsGroupsRequest) {
return mergeFrom((com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest other) {
if (other == com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest.getDefaultInstance()) return this;
if (other.hasUserAppId()) {
mergeUserAppId(other.getUserAppId());
}
if (!other.getDatasetId().isEmpty()) {
datasetId_ = other.datasetId_;
onChanged();
}
if (!other.getDatasetVersionId().isEmpty()) {
datasetVersionId_ = other.datasetVersionId_;
onChanged();
}
if (other.getPage() != 0) {
setPage(other.getPage());
}
if (other.getPerPage() != 0) {
setPerPage(other.getPerPage());
}
if (!other.parentPaths_.isEmpty()) {
if (parentPaths_.isEmpty()) {
parentPaths_ = other.parentPaths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParentPathsIsMutable();
parentPaths_.addAll(other.parentPaths_);
}
onChanged();
}
if (!other.types_.isEmpty()) {
if (types_.isEmpty()) {
types_ = other.types_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTypesIsMutable();
types_.addAll(other.types_);
}
onChanged();
}
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000004);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
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.ListDatasetVersionMetricsGroupsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
public boolean hasUserAppId() {
return userAppIdBuilder_ != null || userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
if (userAppIdBuilder_ == null) {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
} else {
return userAppIdBuilder_.getMessage();
}
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder setUserAppId(com.clarifai.grpc.api.UserAppIDSet value) {
if (userAppIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userAppId_ = value;
onChanged();
} else {
userAppIdBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder setUserAppId(
com.clarifai.grpc.api.UserAppIDSet.Builder builderForValue) {
if (userAppIdBuilder_ == null) {
userAppId_ = builderForValue.build();
onChanged();
} else {
userAppIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder mergeUserAppId(com.clarifai.grpc.api.UserAppIDSet value) {
if (userAppIdBuilder_ == null) {
if (userAppId_ != null) {
userAppId_ =
com.clarifai.grpc.api.UserAppIDSet.newBuilder(userAppId_).mergeFrom(value).buildPartial();
} else {
userAppId_ = value;
}
onChanged();
} else {
userAppIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder clearUserAppId() {
if (userAppIdBuilder_ == null) {
userAppId_ = null;
onChanged();
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() {
onChanged();
return getUserAppIdFieldBuilder().getBuilder();
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
if (userAppIdBuilder_ != null) {
return userAppIdBuilder_.getMessageOrBuilder();
} else {
return userAppId_ == null ?
com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>
getUserAppIdFieldBuilder() {
if (userAppIdBuilder_ == null) {
userAppIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>(
getUserAppId(),
getParentForChildren(),
isClean());
userAppId_ = null;
}
return userAppIdBuilder_;
}
private java.lang.Object datasetId_ = "";
/**
*
* Identify dataset by id.
*
*
* string dataset_id = 2;
* @return The datasetId.
*/
public java.lang.String getDatasetId() {
java.lang.Object ref = datasetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datasetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identify dataset by id.
*
*
* 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 java.lang.Object datasetVersionId_ = "";
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @return The datasetVersionId.
*/
public java.lang.String getDatasetVersionId() {
java.lang.Object ref = datasetVersionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datasetVersionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @return The bytes for datasetVersionId.
*/
public com.google.protobuf.ByteString
getDatasetVersionIdBytes() {
java.lang.Object ref = datasetVersionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datasetVersionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @param value The datasetVersionId to set.
* @return This builder for chaining.
*/
public Builder setDatasetVersionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
datasetVersionId_ = value;
onChanged();
return this;
}
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @return This builder for chaining.
*/
public Builder clearDatasetVersionId() {
datasetVersionId_ = getDefaultInstance().getDatasetVersionId();
onChanged();
return this;
}
/**
*
* Identify dataset version by id.
*
*
* string dataset_version_id = 3;
* @param value The bytes for datasetVersionId to set.
* @return This builder for chaining.
*/
public Builder setDatasetVersionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
datasetVersionId_ = value;
onChanged();
return this;
}
private int page_ ;
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 4;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 4;
* @param value The page to set.
* @return This builder for chaining.
*/
public Builder setPage(int value) {
page_ = value;
onChanged();
return this;
}
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 4;
* @return This builder for chaining.
*/
public Builder clearPage() {
page_ = 0;
onChanged();
return this;
}
private int perPage_ ;
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 5;
* @return The perPage.
*/
@java.lang.Override
public int getPerPage() {
return perPage_;
}
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 5;
* @param value The perPage to set.
* @return This builder for chaining.
*/
public Builder setPerPage(int value) {
perPage_ = value;
onChanged();
return this;
}
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 5;
* @return This builder for chaining.
*/
public Builder clearPerPage() {
perPage_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList parentPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureParentPathsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
parentPaths_ = new com.google.protobuf.LazyStringArrayList(parentPaths_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @return A list containing the parentPaths.
*/
public com.google.protobuf.ProtocolStringList
getParentPathsList() {
return parentPaths_.getUnmodifiableView();
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @return The count of parentPaths.
*/
public int getParentPathsCount() {
return parentPaths_.size();
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param index The index of the element to return.
* @return The parentPaths at the given index.
*/
public java.lang.String getParentPaths(int index) {
return parentPaths_.get(index);
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param index The index of the value to return.
* @return The bytes of the parentPaths at the given index.
*/
public com.google.protobuf.ByteString
getParentPathsBytes(int index) {
return parentPaths_.getByteString(index);
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param index The index to set the value at.
* @param value The parentPaths to set.
* @return This builder for chaining.
*/
public Builder setParentPaths(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParentPathsIsMutable();
parentPaths_.set(index, value);
onChanged();
return this;
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param value The parentPaths to add.
* @return This builder for chaining.
*/
public Builder addParentPaths(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParentPathsIsMutable();
parentPaths_.add(value);
onChanged();
return this;
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param values The parentPaths to add.
* @return This builder for chaining.
*/
public Builder addAllParentPaths(
java.lang.Iterable values) {
ensureParentPathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parentPaths_);
onChanged();
return this;
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @return This builder for chaining.
*/
public Builder clearParentPaths() {
parentPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.
*
*
* repeated string parent_paths = 6;
* @param value The bytes of the parentPaths to add.
* @return This builder for chaining.
*/
public Builder addParentPathsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureParentPathsIsMutable();
parentPaths_.add(value);
onChanged();
return this;
}
private java.util.List types_ =
java.util.Collections.emptyList();
private void ensureTypesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
types_ = new java.util.ArrayList(types_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return A list containing the types.
*/
public java.util.List getTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.clarifai.grpc.api.DatasetVersionMetricsGroupType>(types_, types_converter_);
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return The count of types.
*/
public int getTypesCount() {
return types_.size();
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param index The index of the element to return.
* @return The types at the given index.
*/
public com.clarifai.grpc.api.DatasetVersionMetricsGroupType getTypes(int index) {
return types_converter_.convert(types_.get(index));
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param index The index to set the value at.
* @param value The types to set.
* @return This builder for chaining.
*/
public Builder setTypes(
int index, com.clarifai.grpc.api.DatasetVersionMetricsGroupType value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypesIsMutable();
types_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param value The types to add.
* @return This builder for chaining.
*/
public Builder addTypes(com.clarifai.grpc.api.DatasetVersionMetricsGroupType value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypesIsMutable();
types_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param values The types to add.
* @return This builder for chaining.
*/
public Builder addAllTypes(
java.lang.Iterable extends com.clarifai.grpc.api.DatasetVersionMetricsGroupType> values) {
ensureTypesIsMutable();
for (com.clarifai.grpc.api.DatasetVersionMetricsGroupType value : values) {
types_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return This builder for chaining.
*/
public Builder clearTypes() {
types_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @return A list containing the enum numeric values on the wire for types.
*/
public java.util.List
getTypesValueList() {
return java.util.Collections.unmodifiableList(types_);
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of types at the given index.
*/
public int getTypesValue(int index) {
return types_.get(index);
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for types to set.
* @return This builder for chaining.
*/
public Builder setTypesValue(
int index, int value) {
ensureTypesIsMutable();
types_.set(index, value);
onChanged();
return this;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param value The enum numeric value on the wire for types to add.
* @return This builder for chaining.
*/
public Builder addTypesValue(int value) {
ensureTypesIsMutable();
types_.add(value);
onChanged();
return this;
}
/**
*
* Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.
*
*
* repeated .clarifai.api.DatasetVersionMetricsGroupType types = 7;
* @param values The enum numeric values on the wire for types to add.
* @return This builder for chaining.
*/
public Builder addAllTypesValue(
java.lang.Iterable values) {
ensureTypesIsMutable();
for (int value : values) {
types_.add(value);
}
onChanged();
return this;
}
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valuesBuilder_;
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public com.google.protobuf.Value getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder setValues(
int index, com.google.protobuf.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder setValues(
int index, com.google.protobuf.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder addValues(com.google.protobuf.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder addValues(
int index, com.google.protobuf.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder addValues(
com.google.protobuf.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder addValues(
int index, com.google.protobuf.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder addAllValues(
java.lang.Iterable extends com.google.protobuf.Value> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public com.google.protobuf.Value.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public java.util.List extends com.google.protobuf.ValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public com.google.protobuf.Value.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
com.google.protobuf.Value.getDefaultInstance());
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public com.google.protobuf.Value.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, com.google.protobuf.Value.getDefaultInstance());
}
/**
*
* Filter by value. Multiple values are OR-ed. Empty list results in no filter.
*
*
* repeated .google.protobuf.Value values = 8;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
values_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
@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.ListDatasetVersionMetricsGroupsRequest)
}
// @@protoc_insertion_point(class_scope:clarifai.api.ListDatasetVersionMetricsGroupsRequest)
private static final com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest();
}
public static com.clarifai.grpc.api.ListDatasetVersionMetricsGroupsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDatasetVersionMetricsGroupsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDatasetVersionMetricsGroupsRequest(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.ListDatasetVersionMetricsGroupsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}