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

com.clarifai.grpc.api.Collaboration 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;

/**
 * 
 * collaboration includes an app you're invited to work on.
 * 
* * Protobuf type {@code clarifai.api.Collaboration} */ public final class Collaboration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Collaboration) CollaborationOrBuilder { private static final long serialVersionUID = 0L; // Use Collaboration.newBuilder() to construct. private Collaboration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Collaboration() { 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 Collaboration(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Collaboration( 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.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 18: { com.clarifai.grpc.api.User.Builder subBuilder = null; if (appOwner_ != null) { subBuilder = appOwner_.toBuilder(); } appOwner_ = input.readMessage(com.clarifai.grpc.api.User.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appOwner_); appOwner_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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 42: { 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; } 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_Collaboration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaboration_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Collaboration.class, com.clarifai.grpc.api.Collaboration.Builder.class); } public static final int APP_FIELD_NUMBER = 1; private com.clarifai.grpc.api.App app_; /** *
   * the application
   * 
* * .clarifai.api.App app = 1; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return app_ != null; } /** *
   * the application
   * 
* * .clarifai.api.App app = 1; * @return The app. */ @java.lang.Override public com.clarifai.grpc.api.App getApp() { return app_ == null ? com.clarifai.grpc.api.App.getDefaultInstance() : app_; } /** *
   * the application
   * 
* * .clarifai.api.App app = 1; */ @java.lang.Override public com.clarifai.grpc.api.AppOrBuilder getAppOrBuilder() { return getApp(); } public static final int APP_OWNER_FIELD_NUMBER = 2; private com.clarifai.grpc.api.User appOwner_; /** *
   * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
   * 
* * .clarifai.api.User app_owner = 2; * @return Whether the appOwner field is set. */ @java.lang.Override public boolean hasAppOwner() { return appOwner_ != null; } /** *
   * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
   * 
* * .clarifai.api.User app_owner = 2; * @return The appOwner. */ @java.lang.Override public com.clarifai.grpc.api.User getAppOwner() { return appOwner_ == null ? com.clarifai.grpc.api.User.getDefaultInstance() : appOwner_; } /** *
   * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
   * 
* * .clarifai.api.User app_owner = 2; */ @java.lang.Override public com.clarifai.grpc.api.UserOrBuilder getAppOwnerOrBuilder() { return getAppOwner(); } public static final int SCOPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList scopes_; /** *
   * the low-level scope users are shared with for this collaboration
   * 
* * repeated string scopes = 3; * @return A list containing the scopes. */ public com.google.protobuf.ProtocolStringList getScopesList() { return scopes_; } /** *
   * the low-level scope users are shared with for this collaboration
   * 
* * repeated string scopes = 3; * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** *
   * the low-level scope users are shared with for this collaboration
   * 
* * repeated string scopes = 3; * @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 low-level scope users are shared with for this collaboration
   * 
* * repeated string scopes = 3; * @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 = 4; private com.google.protobuf.LazyStringList endpoints_; /** *
   * the endpoint-level scopes users are shared with for this collaboration
   * 
* * repeated string endpoints = 4; * @return A list containing the endpoints. */ public com.google.protobuf.ProtocolStringList getEndpointsList() { return endpoints_; } /** *
   * the endpoint-level scopes users are shared with for this collaboration
   * 
* * repeated string endpoints = 4; * @return The count of endpoints. */ public int getEndpointsCount() { return endpoints_.size(); } /** *
   * the endpoint-level scopes users are shared with for this collaboration
   * 
* * repeated string endpoints = 4; * @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); } /** *
   * the endpoint-level scopes users are shared with for this collaboration
   * 
* * repeated string endpoints = 4; * @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 = 5; private com.google.protobuf.Timestamp createdAt_; /** *
   * when is the collaboration created
   * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * when is the collaboration created
   * 
* * .google.protobuf.Timestamp created_at = 5; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * when is the collaboration created
   * 
* * .google.protobuf.Timestamp created_at = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } 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 (app_ != null) { output.writeMessage(1, getApp()); } if (appOwner_ != null) { output.writeMessage(2, getAppOwner()); } for (int i = 0; i < scopes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scopes_.getRaw(i)); } for (int i = 0; i < endpoints_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpoints_.getRaw(i)); } if (createdAt_ != null) { output.writeMessage(5, getCreatedAt()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (app_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getApp()); } if (appOwner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAppOwner()); } { 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(5, getCreatedAt()); } 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.Collaboration)) { return super.equals(obj); } com.clarifai.grpc.api.Collaboration other = (com.clarifai.grpc.api.Collaboration) obj; if (hasApp() != other.hasApp()) return false; if (hasApp()) { if (!getApp() .equals(other.getApp())) return false; } if (hasAppOwner() != other.hasAppOwner()) return false; if (hasAppOwner()) { if (!getAppOwner() .equals(other.getAppOwner())) 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 (!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 (hasApp()) { hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); } if (hasAppOwner()) { hash = (37 * hash) + APP_OWNER_FIELD_NUMBER; hash = (53 * hash) + getAppOwner().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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Collaboration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Collaboration 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.Collaboration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Collaboration 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.Collaboration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Collaboration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Collaboration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Collaboration 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.Collaboration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Collaboration 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.Collaboration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Collaboration 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.Collaboration 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; } /** *
   * collaboration includes an app you're invited to work on.
   * 
* * Protobuf type {@code clarifai.api.Collaboration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Collaboration) com.clarifai.grpc.api.CollaborationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaboration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaboration_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Collaboration.class, com.clarifai.grpc.api.Collaboration.Builder.class); } // Construct using com.clarifai.grpc.api.Collaboration.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(); if (appBuilder_ == null) { app_ = null; } else { app_ = null; appBuilder_ = null; } if (appOwnerBuilder_ == null) { appOwner_ = null; } else { appOwner_ = null; appOwnerBuilder_ = 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; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Collaboration_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Collaboration getDefaultInstanceForType() { return com.clarifai.grpc.api.Collaboration.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Collaboration build() { com.clarifai.grpc.api.Collaboration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Collaboration buildPartial() { com.clarifai.grpc.api.Collaboration result = new com.clarifai.grpc.api.Collaboration(this); int from_bitField0_ = bitField0_; if (appBuilder_ == null) { result.app_ = app_; } else { result.app_ = appBuilder_.build(); } if (appOwnerBuilder_ == null) { result.appOwner_ = appOwner_; } else { result.appOwner_ = appOwnerBuilder_.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(); } 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.Collaboration) { return mergeFrom((com.clarifai.grpc.api.Collaboration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Collaboration other) { if (other == com.clarifai.grpc.api.Collaboration.getDefaultInstance()) return this; if (other.hasApp()) { mergeApp(other.getApp()); } if (other.hasAppOwner()) { mergeAppOwner(other.getAppOwner()); } 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()); } 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.Collaboration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Collaboration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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 application
     * 
* * .clarifai.api.App app = 1; * @return Whether the app field is set. */ public boolean hasApp() { return appBuilder_ != null || app_ != null; } /** *
     * the application
     * 
* * .clarifai.api.App app = 1; * @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 application
     * 
* * .clarifai.api.App app = 1; */ 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 application
     * 
* * .clarifai.api.App app = 1; */ 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 application
     * 
* * .clarifai.api.App app = 1; */ 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 application
     * 
* * .clarifai.api.App app = 1; */ public Builder clearApp() { if (appBuilder_ == null) { app_ = null; onChanged(); } else { app_ = null; appBuilder_ = null; } return this; } /** *
     * the application
     * 
* * .clarifai.api.App app = 1; */ public com.clarifai.grpc.api.App.Builder getAppBuilder() { onChanged(); return getAppFieldBuilder().getBuilder(); } /** *
     * the application
     * 
* * .clarifai.api.App app = 1; */ 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 application
     * 
* * .clarifai.api.App app = 1; */ 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 appOwner_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.User, com.clarifai.grpc.api.User.Builder, com.clarifai.grpc.api.UserOrBuilder> appOwnerBuilder_; /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; * @return Whether the appOwner field is set. */ public boolean hasAppOwner() { return appOwnerBuilder_ != null || appOwner_ != null; } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; * @return The appOwner. */ public com.clarifai.grpc.api.User getAppOwner() { if (appOwnerBuilder_ == null) { return appOwner_ == null ? com.clarifai.grpc.api.User.getDefaultInstance() : appOwner_; } else { return appOwnerBuilder_.getMessage(); } } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ public Builder setAppOwner(com.clarifai.grpc.api.User value) { if (appOwnerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appOwner_ = value; onChanged(); } else { appOwnerBuilder_.setMessage(value); } return this; } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ public Builder setAppOwner( com.clarifai.grpc.api.User.Builder builderForValue) { if (appOwnerBuilder_ == null) { appOwner_ = builderForValue.build(); onChanged(); } else { appOwnerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ public Builder mergeAppOwner(com.clarifai.grpc.api.User value) { if (appOwnerBuilder_ == null) { if (appOwner_ != null) { appOwner_ = com.clarifai.grpc.api.User.newBuilder(appOwner_).mergeFrom(value).buildPartial(); } else { appOwner_ = value; } onChanged(); } else { appOwnerBuilder_.mergeFrom(value); } return this; } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ public Builder clearAppOwner() { if (appOwnerBuilder_ == null) { appOwner_ = null; onChanged(); } else { appOwner_ = null; appOwnerBuilder_ = null; } return this; } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ public com.clarifai.grpc.api.User.Builder getAppOwnerBuilder() { onChanged(); return getAppOwnerFieldBuilder().getBuilder(); } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ public com.clarifai.grpc.api.UserOrBuilder getAppOwnerOrBuilder() { if (appOwnerBuilder_ != null) { return appOwnerBuilder_.getMessageOrBuilder(); } else { return appOwner_ == null ? com.clarifai.grpc.api.User.getDefaultInstance() : appOwner_; } } /** *
     * the app owner's info(including user_unique_id, first_name, last_name, primary_email)
     * 
* * .clarifai.api.User app_owner = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.User, com.clarifai.grpc.api.User.Builder, com.clarifai.grpc.api.UserOrBuilder> getAppOwnerFieldBuilder() { if (appOwnerBuilder_ == null) { appOwnerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.User, com.clarifai.grpc.api.User.Builder, com.clarifai.grpc.api.UserOrBuilder>( getAppOwner(), getParentForChildren(), isClean()); appOwner_ = null; } return appOwnerBuilder_; } 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 low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @return A list containing the scopes. */ public com.google.protobuf.ProtocolStringList getScopesList() { return scopes_.getUnmodifiableView(); } /** *
     * the low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** *
     * the low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @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 low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @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 low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @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 low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @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 low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @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 low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @return This builder for chaining. */ public Builder clearScopes() { scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * the low-level scope users are shared with for this collaboration
     * 
* * repeated string scopes = 3; * @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; } } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @return A list containing the endpoints. */ public com.google.protobuf.ProtocolStringList getEndpointsList() { return endpoints_.getUnmodifiableView(); } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @return The count of endpoints. */ public int getEndpointsCount() { return endpoints_.size(); } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @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); } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @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); } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @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; } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @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; } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @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; } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @return This builder for chaining. */ public Builder clearEndpoints() { endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * the endpoint-level scopes users are shared with for this collaboration
     * 
* * repeated string endpoints = 4; * @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 is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * when is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; * @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 is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ 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 is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * when is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ 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 is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * when is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * when is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * when is the collaboration created
     * 
* * .google.protobuf.Timestamp created_at = 5; */ 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_; } @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.Collaboration) } // @@protoc_insertion_point(class_scope:clarifai.api.Collaboration) private static final com.clarifai.grpc.api.Collaboration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Collaboration(); } public static com.clarifai.grpc.api.Collaboration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Collaboration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Collaboration(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.Collaboration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy