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 app this collaborator has access to
* FIXME(zeiler): this should be in the user_app_id.app_id already from the endpoint.
*
*
* .clarifai.api.App app = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.AppOrBuilder getAppOrBuilder() {
return getApp();
}
public static final int USER_FIELD_NUMBER = 3;
private com.clarifai.grpc.api.User user_;
/**
*
* who is this collaborator
*
*
* .clarifai.api.User user = 3;
* @return Whether the user field is set.
*/
@java.lang.Override
public boolean hasUser() {
return user_ != null;
}
/**
*
* who is this collaborator
*
*
* .clarifai.api.User user = 3;
* @return The user.
*/
@java.lang.Override
public com.clarifai.grpc.api.User getUser() {
return user_ == null ? com.clarifai.grpc.api.User.getDefaultInstance() : user_;
}
/**
*
* who is this collaborator
*
*
* .clarifai.api.User user = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.UserOrBuilder getUserOrBuilder() {
return getUser();
}
public static final int SCOPES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList scopes_;
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @return A list containing the scopes.
*/
public com.google.protobuf.ProtocolStringList
getScopesList() {
return scopes_;
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @return The count of scopes.
*/
public int getScopesCount() {
return scopes_.size();
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param index The index of the value to return.
* @return The bytes of the scopes at the given index.
*/
public com.google.protobuf.ByteString
getScopesBytes(int index) {
return scopes_.getByteString(index);
}
public static final int ENDPOINTS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList endpoints_;
/**
* repeated string endpoints = 5;
* @return A list containing the endpoints.
*/
public com.google.protobuf.ProtocolStringList
getEndpointsList() {
return endpoints_;
}
/**
* repeated string endpoints = 5;
* @return The count of endpoints.
*/
public int getEndpointsCount() {
return endpoints_.size();
}
/**
* repeated string endpoints = 5;
* @param index The index of the element to return.
* @return The endpoints at the given index.
*/
public java.lang.String getEndpoints(int index) {
return endpoints_.get(index);
}
/**
* repeated string endpoints = 5;
* @param index The index of the value to return.
* @return The bytes of the endpoints at the given index.
*/
public com.google.protobuf.ByteString
getEndpointsBytes(int index) {
return endpoints_.getByteString(index);
}
public static final int CREATED_AT_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 6;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int MODIFIED_AT_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp modifiedAt_;
/**
*
* When the collaborator was updated.
*
*
* .google.protobuf.Timestamp modified_at = 7;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return modifiedAt_ != null;
}
/**
*
*
* 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;
}
}
/**
*
* id of this collaborator
*
*
* 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;
}
}
/**
*
* id of this collaborator
*
*
* 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;
}
/**
*
* id of this collaborator
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* id of this collaborator
*
*
* 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 app_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.App, com.clarifai.grpc.api.App.Builder, com.clarifai.grpc.api.AppOrBuilder> appBuilder_;
/**
*
* the app this collaborator has access to
* FIXME(zeiler): this should be in the user_app_id.app_id already from the endpoint.
*
*
* .clarifai.api.App app = 2;
* @return Whether the app field is set.
*/
public boolean hasApp() {
return appBuilder_ != null || app_ != null;
}
/**
*
* the app this collaborator has access to
* FIXME(zeiler): this should be in the user_app_id.app_id already from the endpoint.
*
*
* .clarifai.api.User user = 3;
* @return Whether the user field is set.
*/
public boolean hasUser() {
return userBuilder_ != null || user_ != null;
}
/**
*
* who is this collaborator
*
*
* .clarifai.api.User user = 3;
* @return The user.
*/
public com.clarifai.grpc.api.User getUser() {
if (userBuilder_ == null) {
return user_ == null ? com.clarifai.grpc.api.User.getDefaultInstance() : user_;
} else {
return userBuilder_.getMessage();
}
}
/**
*
* who is this collaborator
*
*
* .clarifai.api.User user = 3;
*/
public Builder setUser(com.clarifai.grpc.api.User value) {
if (userBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
} else {
userBuilder_.setMessage(value);
}
return this;
}
/**
*
*
* repeated string scopes = 4;
* @return A list containing the scopes.
*/
public com.google.protobuf.ProtocolStringList
getScopesList() {
return scopes_.getUnmodifiableView();
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @return The count of scopes.
*/
public int getScopesCount() {
return scopes_.size();
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param index The index of the value to return.
* @return The bytes of the scopes at the given index.
*/
public com.google.protobuf.ByteString
getScopesBytes(int index) {
return scopes_.getByteString(index);
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param index The index to set the value at.
* @param value The scopes to set.
* @return This builder for chaining.
*/
public Builder setScopes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureScopesIsMutable();
scopes_.set(index, value);
onChanged();
return this;
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param value The scopes to add.
* @return This builder for chaining.
*/
public Builder addScopes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureScopesIsMutable();
scopes_.add(value);
onChanged();
return this;
}
/**
*
* the permission this collaborator
*
*
* repeated string scopes = 4;
* @param values The scopes to add.
* @return This builder for chaining.
*/
public Builder addAllScopes(
java.lang.Iterable values) {
ensureScopesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, scopes_);
onChanged();
return this;
}
/**
*
*
* repeated string scopes = 4;
* @param value The bytes of the scopes to add.
* @return This builder for chaining.
*/
public Builder addScopesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureScopesIsMutable();
scopes_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEndpointsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
endpoints_ = new com.google.protobuf.LazyStringArrayList(endpoints_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string endpoints = 5;
* @return A list containing the endpoints.
*/
public com.google.protobuf.ProtocolStringList
getEndpointsList() {
return endpoints_.getUnmodifiableView();
}
/**
* repeated string endpoints = 5;
* @return The count of endpoints.
*/
public int getEndpointsCount() {
return endpoints_.size();
}
/**
* repeated string endpoints = 5;
* @param index The index of the element to return.
* @return The endpoints at the given index.
*/
public java.lang.String getEndpoints(int index) {
return endpoints_.get(index);
}
/**
* repeated string endpoints = 5;
* @param index The index of the value to return.
* @return The bytes of the endpoints at the given index.
*/
public com.google.protobuf.ByteString
getEndpointsBytes(int index) {
return endpoints_.getByteString(index);
}
/**
* repeated string endpoints = 5;
* @param index The index to set the value at.
* @param value The endpoints to set.
* @return This builder for chaining.
*/
public Builder setEndpoints(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.set(index, value);
onChanged();
return this;
}
/**
* repeated string endpoints = 5;
* @param value The endpoints to add.
* @return This builder for chaining.
*/
public Builder addEndpoints(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.add(value);
onChanged();
return this;
}
/**
* repeated string endpoints = 5;
* @param values The endpoints to add.
* @return This builder for chaining.
*/
public Builder addAllEndpoints(
java.lang.Iterable values) {
ensureEndpointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endpoints_);
onChanged();
return this;
}
/**
* repeated string endpoints = 5;
* @return This builder for chaining.
*/
public Builder clearEndpoints() {
endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string endpoints = 5;
* @param value The bytes of the endpoints to add.
* @return This builder for chaining.
*/
public Builder addEndpointsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEndpointsIsMutable();
endpoints_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 6;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 6;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the app was shared with. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*