All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.Collaborator Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * Collaborator - invited user, who shares an access to an application
 * 
* * Protobuf type {@code clarifai.api.Collaborator} */ public final class Collaborator extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Collaborator) CollaboratorOrBuilder { private static final long serialVersionUID = 0L; // Use Collaborator.newBuilder() to construct. private Collaborator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Collaborator() { id_ = ""; scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Collaborator(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Collaborator( 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: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { com.clarifai.grpc.api.App.Builder subBuilder = null; if (app_ != null) { subBuilder = app_.toBuilder(); } app_ = input.readMessage(com.clarifai.grpc.api.App.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(app_); app_ = subBuilder.buildPartial(); } break; } case 26: { com.clarifai.grpc.api.User.Builder subBuilder = null; if (user_ != null) { subBuilder = user_.toBuilder(); } user_ = input.readMessage(com.clarifai.grpc.api.User.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(user_); user_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { scopes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } scopes_.add(s); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { endpoints_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } endpoints_.add(s); break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (modifiedAt_ != null) { subBuilder = modifiedAt_.toBuilder(); } modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modifiedAt_); modifiedAt_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (deletedAt_ != null) { subBuilder = deletedAt_.toBuilder(); } deletedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deletedAt_); deletedAt_ = subBuilder.buildPartial(); } 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)) { scopes_ = scopes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { endpoints_ = endpoints_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaborator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaborator_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Collaborator.class, com.clarifai.grpc.api.Collaborator.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * id of this collaborator
   * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
   * id of this collaborator
   * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.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; } } public static final int APP_FIELD_NUMBER = 2; private com.clarifai.grpc.api.App app_; /** *
   * 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. */ @java.lang.Override public boolean hasApp() { return 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.App app = 2; * @return The app. */ @java.lang.Override public com.clarifai.grpc.api.App getApp() { return app_ == null ? com.clarifai.grpc.api.App.getDefaultInstance() : app_; } /** *
   * 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"
   * 
* * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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; */ @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; } /** *
   * When the collaborator was updated.
   * 
* * .google.protobuf.Timestamp modified_at = 7; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
   * When the collaborator was updated.
   * 
* * .google.protobuf.Timestamp modified_at = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int DELETED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deletedAt_; /** *
   * When the collaborator was removed from app.
   * 
* * .google.protobuf.Timestamp deleted_at = 8; * @return Whether the deletedAt field is set. */ @java.lang.Override public boolean hasDeletedAt() { return deletedAt_ != null; } /** *
   * When the collaborator was removed from app.
   * 
* * .google.protobuf.Timestamp deleted_at = 8; * @return The deletedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getDeletedAt() { return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; } /** *
   * When the collaborator was removed from app.
   * 
* * .google.protobuf.Timestamp deleted_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { return getDeletedAt(); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (app_ != null) { output.writeMessage(2, getApp()); } if (user_ != null) { output.writeMessage(3, getUser()); } for (int i = 0; i < scopes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scopes_.getRaw(i)); } for (int i = 0; i < endpoints_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, endpoints_.getRaw(i)); } if (createdAt_ != null) { output.writeMessage(6, getCreatedAt()); } if (modifiedAt_ != null) { output.writeMessage(7, getModifiedAt()); } if (deletedAt_ != null) { output.writeMessage(8, getDeletedAt()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (app_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getApp()); } if (user_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUser()); } { int dataSize = 0; for (int i = 0; i < scopes_.size(); i++) { dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); } size += dataSize; size += 1 * getScopesList().size(); } { int dataSize = 0; for (int i = 0; i < endpoints_.size(); i++) { dataSize += computeStringSizeNoTag(endpoints_.getRaw(i)); } size += dataSize; size += 1 * getEndpointsList().size(); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreatedAt()); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getModifiedAt()); } if (deletedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDeletedAt()); } 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.Collaborator)) { return super.equals(obj); } com.clarifai.grpc.api.Collaborator other = (com.clarifai.grpc.api.Collaborator) obj; if (!getId() .equals(other.getId())) return false; if (hasApp() != other.hasApp()) return false; if (hasApp()) { if (!getApp() .equals(other.getApp())) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { if (!getUser() .equals(other.getUser())) return false; } if (!getScopesList() .equals(other.getScopesList())) return false; if (!getEndpointsList() .equals(other.getEndpointsList())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) return false; } if (hasDeletedAt() != other.hasDeletedAt()) return false; if (hasDeletedAt()) { if (!getDeletedAt() .equals(other.getDeletedAt())) 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasApp()) { hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopesList().hashCode(); } if (getEndpointsCount() > 0) { hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getEndpointsList().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().hashCode(); } if (hasDeletedAt()) { hash = (37 * hash) + DELETED_AT_FIELD_NUMBER; hash = (53 * hash) + getDeletedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Collaborator parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Collaborator 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.Collaborator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Collaborator 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.Collaborator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Collaborator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Collaborator parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Collaborator 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.Collaborator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Collaborator 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.Collaborator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Collaborator 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.Collaborator 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; } /** *
   * Collaborator - invited user, who shares an access to an application
   * 
* * Protobuf type {@code clarifai.api.Collaborator} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Collaborator) com.clarifai.grpc.api.CollaboratorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaborator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaborator_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Collaborator.class, com.clarifai.grpc.api.Collaborator.Builder.class); } // Construct using com.clarifai.grpc.api.Collaborator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; if (appBuilder_ == null) { app_ = null; } else { app_ = null; appBuilder_ = null; } if (userBuilder_ == null) { user_ = null; } else { user_ = null; userBuilder_ = null; } scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } if (deletedAtBuilder_ == null) { deletedAt_ = null; } else { deletedAt_ = null; deletedAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaborator_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Collaborator getDefaultInstanceForType() { return com.clarifai.grpc.api.Collaborator.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Collaborator build() { com.clarifai.grpc.api.Collaborator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Collaborator buildPartial() { com.clarifai.grpc.api.Collaborator result = new com.clarifai.grpc.api.Collaborator(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (appBuilder_ == null) { result.app_ = app_; } else { result.app_ = appBuilder_.build(); } if (userBuilder_ == null) { result.user_ = user_; } else { result.user_ = userBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { scopes_ = scopes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.scopes_ = scopes_; if (((bitField0_ & 0x00000002) != 0)) { endpoints_ = endpoints_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.endpoints_ = endpoints_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } if (deletedAtBuilder_ == null) { result.deletedAt_ = deletedAt_; } else { result.deletedAt_ = deletedAtBuilder_.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.Collaborator) { return mergeFrom((com.clarifai.grpc.api.Collaborator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Collaborator other) { if (other == com.clarifai.grpc.api.Collaborator.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasApp()) { mergeApp(other.getApp()); } if (other.hasUser()) { mergeUser(other.getUser()); } if (!other.scopes_.isEmpty()) { if (scopes_.isEmpty()) { scopes_ = other.scopes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureScopesIsMutable(); scopes_.addAll(other.scopes_); } onChanged(); } if (!other.endpoints_.isEmpty()) { if (endpoints_.isEmpty()) { endpoints_ = other.endpoints_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEndpointsIsMutable(); endpoints_.addAll(other.endpoints_); } onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } if (other.hasDeletedAt()) { mergeDeletedAt(other.getDeletedAt()); } 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.Collaborator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Collaborator) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * id of this collaborator
     * 
* * 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.App app = 2; * @return The app. */ public com.clarifai.grpc.api.App getApp() { if (appBuilder_ == null) { return app_ == null ? com.clarifai.grpc.api.App.getDefaultInstance() : app_; } else { return appBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setApp(com.clarifai.grpc.api.App value) { if (appBuilder_ == null) { if (value == null) { throw new NullPointerException(); } app_ = value; onChanged(); } else { appBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setApp( com.clarifai.grpc.api.App.Builder builderForValue) { if (appBuilder_ == null) { app_ = builderForValue.build(); onChanged(); } else { appBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeApp(com.clarifai.grpc.api.App value) { if (appBuilder_ == null) { if (app_ != null) { app_ = com.clarifai.grpc.api.App.newBuilder(app_).mergeFrom(value).buildPartial(); } else { app_ = value; } onChanged(); } else { appBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearApp() { if (appBuilder_ == null) { app_ = null; onChanged(); } else { app_ = null; appBuilder_ = null; } return this; } /** *
     * 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; */ public com.clarifai.grpc.api.App.Builder getAppBuilder() { onChanged(); return getAppFieldBuilder().getBuilder(); } /** *
     * 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; */ public com.clarifai.grpc.api.AppOrBuilder getAppOrBuilder() { if (appBuilder_ != null) { return appBuilder_.getMessageOrBuilder(); } else { return app_ == null ? com.clarifai.grpc.api.App.getDefaultInstance() : app_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.App, com.clarifai.grpc.api.App.Builder, com.clarifai.grpc.api.AppOrBuilder> getAppFieldBuilder() { if (appBuilder_ == null) { appBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.App, com.clarifai.grpc.api.App.Builder, com.clarifai.grpc.api.AppOrBuilder>( getApp(), getParentForChildren(), isClean()); app_ = null; } return appBuilder_; } private com.clarifai.grpc.api.User user_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.User, com.clarifai.grpc.api.User.Builder, com.clarifai.grpc.api.UserOrBuilder> userBuilder_; /** *
     * who is this collaborator
     * 
* * .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; } /** *
     * who is this collaborator
     * 
* * .clarifai.api.User user = 3; */ public Builder setUser( com.clarifai.grpc.api.User.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); onChanged(); } else { userBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * who is this collaborator
     * 
* * .clarifai.api.User user = 3; */ public Builder mergeUser(com.clarifai.grpc.api.User value) { if (userBuilder_ == null) { if (user_ != null) { user_ = com.clarifai.grpc.api.User.newBuilder(user_).mergeFrom(value).buildPartial(); } else { user_ = value; } onChanged(); } else { userBuilder_.mergeFrom(value); } return this; } /** *
     * who is this collaborator
     * 
* * .clarifai.api.User user = 3; */ public Builder clearUser() { if (userBuilder_ == null) { user_ = null; onChanged(); } else { user_ = null; userBuilder_ = null; } return this; } /** *
     * who is this collaborator
     * 
* * .clarifai.api.User user = 3; */ public com.clarifai.grpc.api.User.Builder getUserBuilder() { onChanged(); return getUserFieldBuilder().getBuilder(); } /** *
     * who is this collaborator
     * 
* * .clarifai.api.User user = 3; */ public com.clarifai.grpc.api.UserOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { return user_ == null ? com.clarifai.grpc.api.User.getDefaultInstance() : user_; } } /** *
     * who is this collaborator
     * 
* * .clarifai.api.User user = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.User, com.clarifai.grpc.api.User.Builder, com.clarifai.grpc.api.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.User, com.clarifai.grpc.api.User.Builder, com.clarifai.grpc.api.UserOrBuilder>( getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureScopesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); bitField0_ |= 0x00000001; } } /** *
     * the permission this collaborator
     * 
* * 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; } /** *
     * the permission this collaborator
     * 
* * repeated string scopes = 4; * @return This builder for chaining. */ public Builder clearScopes() { scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * the permission this collaborator
     * 
* * 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"
     * 
* * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * 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"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } 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"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * 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 clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } 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"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * 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 com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; * @return The modifiedAt. */ public com.google.protobuf.Timestamp getModifiedAt() { if (modifiedAtBuilder_ == null) { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } else { return modifiedAtBuilder_.getMessage(); } } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ public Builder setModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modifiedAt_ = value; onChanged(); } else { modifiedAtBuilder_.setMessage(value); } return this; } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ public Builder setModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedAtBuilder_ == null) { modifiedAt_ = builderForValue.build(); onChanged(); } else { modifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (modifiedAt_ != null) { modifiedAt_ = com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial(); } else { modifiedAt_ = value; } onChanged(); } else { modifiedAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
     * When the collaborator was updated.
     * 
* * .google.protobuf.Timestamp modified_at = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } private com.google.protobuf.Timestamp deletedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_; /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; * @return Whether the deletedAt field is set. */ public boolean hasDeletedAt() { return deletedAtBuilder_ != null || deletedAt_ != null; } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; * @return The deletedAt. */ public com.google.protobuf.Timestamp getDeletedAt() { if (deletedAtBuilder_ == null) { return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; } else { return deletedAtBuilder_.getMessage(); } } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ public Builder setDeletedAt(com.google.protobuf.Timestamp value) { if (deletedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deletedAt_ = value; onChanged(); } else { deletedAtBuilder_.setMessage(value); } return this; } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ public Builder setDeletedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (deletedAtBuilder_ == null) { deletedAt_ = builderForValue.build(); onChanged(); } else { deletedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { if (deletedAtBuilder_ == null) { if (deletedAt_ != null) { deletedAt_ = com.google.protobuf.Timestamp.newBuilder(deletedAt_).mergeFrom(value).buildPartial(); } else { deletedAt_ = value; } onChanged(); } else { deletedAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ public Builder clearDeletedAt() { if (deletedAtBuilder_ == null) { deletedAt_ = null; onChanged(); } else { deletedAt_ = null; deletedAtBuilder_ = null; } return this; } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { onChanged(); return getDeletedAtFieldBuilder().getBuilder(); } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { if (deletedAtBuilder_ != null) { return deletedAtBuilder_.getMessageOrBuilder(); } else { return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; } } /** *
     * When the collaborator was removed from app.
     * 
* * .google.protobuf.Timestamp deleted_at = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeletedAtFieldBuilder() { if (deletedAtBuilder_ == null) { deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDeletedAt(), getParentForChildren(), isClean()); deletedAt_ = null; } return deletedAtBuilder_; } @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.Collaborator) } // @@protoc_insertion_point(class_scope:clarifai.api.Collaborator) private static final com.clarifai.grpc.api.Collaborator DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Collaborator(); } public static com.clarifai.grpc.api.Collaborator getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Collaborator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Collaborator(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.Collaborator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy