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

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

/**
 * Protobuf type {@code clarifai.api.InstalledModuleVersion}
 */
public final class InstalledModuleVersion extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:clarifai.api.InstalledModuleVersion)
    InstalledModuleVersionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use InstalledModuleVersion.newBuilder() to construct.
  private InstalledModuleVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private InstalledModuleVersion() {
    id_ = "";
    appId_ = "";
    userId_ = "";
    deployUrl_ = "";
    keyId_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new InstalledModuleVersion();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private InstalledModuleVersion(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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.ModuleVersion.Builder subBuilder = null;
            if (moduleVersion_ != null) {
              subBuilder = moduleVersion_.toBuilder();
            }
            moduleVersion_ = input.readMessage(com.clarifai.grpc.api.ModuleVersion.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(moduleVersion_);
              moduleVersion_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            appId_ = s;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            userId_ = 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;
          }
          case 50: {
            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 58: {
            java.lang.String s = input.readStringRequireUtf8();

            deployUrl_ = s;
            break;
          }
          case 66: {
            com.clarifai.grpc.api.Visibility.Builder subBuilder = null;
            if (visibility_ != null) {
              subBuilder = visibility_.toBuilder();
            }
            visibility_ = input.readMessage(com.clarifai.grpc.api.Visibility.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(visibility_);
              visibility_ = subBuilder.buildPartial();
            }

            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            keyId_ = s;
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InstalledModuleVersion_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InstalledModuleVersion_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.clarifai.grpc.api.InstalledModuleVersion.class, com.clarifai.grpc.api.InstalledModuleVersion.Builder.class);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * 
   * A unique id for this install. This will be used in the browser url.
   * 
* * 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; } } /** *
   * A unique id for this install. This will be used in the browser url.
   * 
* * 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 MODULE_VERSION_FIELD_NUMBER = 2; private com.clarifai.grpc.api.ModuleVersion moduleVersion_; /** *
   * The installed module version provided here so that we users don't need to do an additional
   * fetch. When creating a new InstalledModuleVersion you should provide the:
   * module_version.user_id
   * module_version.app_id
   * module_version.module_id
   * module_version.id
   * in order to uniquely define which module version.
   * 
* * .clarifai.api.ModuleVersion module_version = 2; * @return Whether the moduleVersion field is set. */ @java.lang.Override public boolean hasModuleVersion() { return moduleVersion_ != null; } /** *
   * The installed module version provided here so that we users don't need to do an additional
   * fetch. When creating a new InstalledModuleVersion you should provide the:
   * module_version.user_id
   * module_version.app_id
   * module_version.module_id
   * module_version.id
   * in order to uniquely define which module version.
   * 
* * .clarifai.api.ModuleVersion module_version = 2; * @return The moduleVersion. */ @java.lang.Override public com.clarifai.grpc.api.ModuleVersion getModuleVersion() { return moduleVersion_ == null ? com.clarifai.grpc.api.ModuleVersion.getDefaultInstance() : moduleVersion_; } /** *
   * The installed module version provided here so that we users don't need to do an additional
   * fetch. When creating a new InstalledModuleVersion you should provide the:
   * module_version.user_id
   * module_version.app_id
   * module_version.module_id
   * module_version.id
   * in order to uniquely define which module version.
   * 
* * .clarifai.api.ModuleVersion module_version = 2; */ @java.lang.Override public com.clarifai.grpc.api.ModuleVersionOrBuilder getModuleVersionOrBuilder() { return getModuleVersion(); } public static final int APP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object appId_; /** *
   * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
   * created). This doesn't have to be provided in requests to install, but will be returned in
   * responses.
   * 
* * string app_id = 3; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; 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(); appId_ = s; return s; } } /** *
   * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
   * created). This doesn't have to be provided in requests to install, but will be returned in
   * responses.
   * 
* * string app_id = 3; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 4; private volatile java.lang.Object userId_; /** *
   * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
   * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
   * will be returned in responses.
   * 
* * string user_id = 4; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; 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(); userId_ = s; return s; } } /** *
   * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
   * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
   * will be returned in responses.
   * 
* * string user_id = 4; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the install was created.
   * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the install was 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 the install was created.
   * 
* * .google.protobuf.Timestamp created_at = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int MODIFIED_AT_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp modifiedAt_; /** *
   * When the install was last modified.
   * 
* * .google.protobuf.Timestamp modified_at = 6; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
   * When the install was last modified.
   * 
* * .google.protobuf.Timestamp modified_at = 6; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
   * When the install was last modified.
   * 
* * .google.protobuf.Timestamp modified_at = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int DEPLOY_URL_FIELD_NUMBER = 7; private volatile java.lang.Object deployUrl_; /** *
   * The URL of where this app module version is deployed.
   * If you provide this deploy_url when creating the install then it will
   * be treated as a pre-deployed module. You can only use a pre-deployed module
   * in when installing to an app_id that you own as the creator of the module.
   * If you want to install someone elses module or to rely on Clarifai deploying
   * your module for you, leave deploy_url empty when creating the install.
   * If it is left empty, then deployment will occur when this module version is
   * installed into an app using the git_commit_url of the ModuleVersion.
   * 
* * string deploy_url = 7; * @return The deployUrl. */ @java.lang.Override public java.lang.String getDeployUrl() { java.lang.Object ref = deployUrl_; 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(); deployUrl_ = s; return s; } } /** *
   * The URL of where this app module version is deployed.
   * If you provide this deploy_url when creating the install then it will
   * be treated as a pre-deployed module. You can only use a pre-deployed module
   * in when installing to an app_id that you own as the creator of the module.
   * If you want to install someone elses module or to rely on Clarifai deploying
   * your module for you, leave deploy_url empty when creating the install.
   * If it is left empty, then deployment will occur when this module version is
   * installed into an app using the git_commit_url of the ModuleVersion.
   * 
* * string deploy_url = 7; * @return The bytes for deployUrl. */ @java.lang.Override public com.google.protobuf.ByteString getDeployUrlBytes() { java.lang.Object ref = deployUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deployUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VISIBILITY_FIELD_NUMBER = 8; private com.clarifai.grpc.api.Visibility visibility_; /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
   * installed the module version to decide if they want other users of their app to have
   * the added functionality that the modules version provides to their app.
   * Defaults to PRIVATE if not provided.
   * 
* * .clarifai.api.Visibility visibility = 8; * @return Whether the visibility field is set. */ @java.lang.Override public boolean hasVisibility() { return visibility_ != null; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
   * installed the module version to decide if they want other users of their app to have
   * the added functionality that the modules version provides to their app.
   * Defaults to PRIVATE if not provided.
   * 
* * .clarifai.api.Visibility visibility = 8; * @return The visibility. */ @java.lang.Override public com.clarifai.grpc.api.Visibility getVisibility() { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
   * installed the module version to decide if they want other users of their app to have
   * the added functionality that the modules version provides to their app.
   * Defaults to PRIVATE if not provided.
   * 
* * .clarifai.api.Visibility visibility = 8; */ @java.lang.Override public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { return getVisibility(); } public static final int KEY_ID_FIELD_NUMBER = 9; private volatile java.lang.Object keyId_; /** *
   * The key ID to use for making requests to the API for this module.
   * This key is associated to this installed module version by PostInstalledModuleVersionsKey
   * request. The key is associated with the CALLER not the App Owner where this module is installed
   * nor the author of the module. This allows the module to act on behalf of the caller at all
   * times so we get proper permissions the caller has (such as if they are stranger, teammate or
   * collaborator). This key should be a personal access token to enable modules to work across apps
   * and have necessary abilities beyond what app-specific keys offer.
   * 
* * string key_id = 9; * @return The keyId. */ @java.lang.Override public java.lang.String getKeyId() { java.lang.Object ref = keyId_; 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(); keyId_ = s; return s; } } /** *
   * The key ID to use for making requests to the API for this module.
   * This key is associated to this installed module version by PostInstalledModuleVersionsKey
   * request. The key is associated with the CALLER not the App Owner where this module is installed
   * nor the author of the module. This allows the module to act on behalf of the caller at all
   * times so we get proper permissions the caller has (such as if they are stranger, teammate or
   * collaborator). This key should be a personal access token to enable modules to work across apps
   * and have necessary abilities beyond what app-specific keys offer.
   * 
* * string key_id = 9; * @return The bytes for keyId. */ @java.lang.Override public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (moduleVersion_ != null) { output.writeMessage(2, getModuleVersion()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userId_); } if (createdAt_ != null) { output.writeMessage(5, getCreatedAt()); } if (modifiedAt_ != null) { output.writeMessage(6, getModifiedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deployUrl_); } if (visibility_ != null) { output.writeMessage(8, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, keyId_); } 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 (moduleVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getModuleVersion()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCreatedAt()); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getModifiedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deployUrl_); } if (visibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, keyId_); } 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.InstalledModuleVersion)) { return super.equals(obj); } com.clarifai.grpc.api.InstalledModuleVersion other = (com.clarifai.grpc.api.InstalledModuleVersion) obj; if (!getId() .equals(other.getId())) return false; if (hasModuleVersion() != other.hasModuleVersion()) return false; if (hasModuleVersion()) { if (!getModuleVersion() .equals(other.getModuleVersion())) return false; } if (!getAppId() .equals(other.getAppId())) return false; if (!getUserId() .equals(other.getUserId())) 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 (!getDeployUrl() .equals(other.getDeployUrl())) return false; if (hasVisibility() != other.hasVisibility()) return false; if (hasVisibility()) { if (!getVisibility() .equals(other.getVisibility())) return false; } if (!getKeyId() .equals(other.getKeyId())) 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 (hasModuleVersion()) { hash = (37 * hash) + MODULE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getModuleVersion().hashCode(); } hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().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(); } hash = (37 * hash) + DEPLOY_URL_FIELD_NUMBER; hash = (53 * hash) + getDeployUrl().hashCode(); if (hasVisibility()) { hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getVisibility().hashCode(); } hash = (37 * hash) + KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getKeyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.InstalledModuleVersion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.InstalledModuleVersion 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.InstalledModuleVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.InstalledModuleVersion 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.InstalledModuleVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.InstalledModuleVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.InstalledModuleVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.InstalledModuleVersion 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.InstalledModuleVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.InstalledModuleVersion 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.InstalledModuleVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.InstalledModuleVersion 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.InstalledModuleVersion 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; } /** * Protobuf type {@code clarifai.api.InstalledModuleVersion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.InstalledModuleVersion) com.clarifai.grpc.api.InstalledModuleVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InstalledModuleVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InstalledModuleVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.InstalledModuleVersion.class, com.clarifai.grpc.api.InstalledModuleVersion.Builder.class); } // Construct using com.clarifai.grpc.api.InstalledModuleVersion.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 (moduleVersionBuilder_ == null) { moduleVersion_ = null; } else { moduleVersion_ = null; moduleVersionBuilder_ = null; } appId_ = ""; userId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } deployUrl_ = ""; if (visibilityBuilder_ == null) { visibility_ = null; } else { visibility_ = null; visibilityBuilder_ = null; } keyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InstalledModuleVersion_descriptor; } @java.lang.Override public com.clarifai.grpc.api.InstalledModuleVersion getDefaultInstanceForType() { return com.clarifai.grpc.api.InstalledModuleVersion.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.InstalledModuleVersion build() { com.clarifai.grpc.api.InstalledModuleVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.InstalledModuleVersion buildPartial() { com.clarifai.grpc.api.InstalledModuleVersion result = new com.clarifai.grpc.api.InstalledModuleVersion(this); result.id_ = id_; if (moduleVersionBuilder_ == null) { result.moduleVersion_ = moduleVersion_; } else { result.moduleVersion_ = moduleVersionBuilder_.build(); } result.appId_ = appId_; result.userId_ = userId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } result.deployUrl_ = deployUrl_; if (visibilityBuilder_ == null) { result.visibility_ = visibility_; } else { result.visibility_ = visibilityBuilder_.build(); } result.keyId_ = keyId_; 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.InstalledModuleVersion) { return mergeFrom((com.clarifai.grpc.api.InstalledModuleVersion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.InstalledModuleVersion other) { if (other == com.clarifai.grpc.api.InstalledModuleVersion.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasModuleVersion()) { mergeModuleVersion(other.getModuleVersion()); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } if (!other.getDeployUrl().isEmpty()) { deployUrl_ = other.deployUrl_; onChanged(); } if (other.hasVisibility()) { mergeVisibility(other.getVisibility()); } if (!other.getKeyId().isEmpty()) { keyId_ = other.keyId_; onChanged(); } 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.InstalledModuleVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.InstalledModuleVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
     * A unique id for this install. This will be used in the browser url.
     * 
* * 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; } } /** *
     * A unique id for this install. This will be used in the browser url.
     * 
* * 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; } } /** *
     * A unique id for this install. This will be used in the browser url.
     * 
* * 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; } /** *
     * A unique id for this install. This will be used in the browser url.
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * A unique id for this install. This will be used in the browser url.
     * 
* * 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.ModuleVersion moduleVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ModuleVersion, com.clarifai.grpc.api.ModuleVersion.Builder, com.clarifai.grpc.api.ModuleVersionOrBuilder> moduleVersionBuilder_; /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; * @return Whether the moduleVersion field is set. */ public boolean hasModuleVersion() { return moduleVersionBuilder_ != null || moduleVersion_ != null; } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; * @return The moduleVersion. */ public com.clarifai.grpc.api.ModuleVersion getModuleVersion() { if (moduleVersionBuilder_ == null) { return moduleVersion_ == null ? com.clarifai.grpc.api.ModuleVersion.getDefaultInstance() : moduleVersion_; } else { return moduleVersionBuilder_.getMessage(); } } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ public Builder setModuleVersion(com.clarifai.grpc.api.ModuleVersion value) { if (moduleVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } moduleVersion_ = value; onChanged(); } else { moduleVersionBuilder_.setMessage(value); } return this; } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ public Builder setModuleVersion( com.clarifai.grpc.api.ModuleVersion.Builder builderForValue) { if (moduleVersionBuilder_ == null) { moduleVersion_ = builderForValue.build(); onChanged(); } else { moduleVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ public Builder mergeModuleVersion(com.clarifai.grpc.api.ModuleVersion value) { if (moduleVersionBuilder_ == null) { if (moduleVersion_ != null) { moduleVersion_ = com.clarifai.grpc.api.ModuleVersion.newBuilder(moduleVersion_).mergeFrom(value).buildPartial(); } else { moduleVersion_ = value; } onChanged(); } else { moduleVersionBuilder_.mergeFrom(value); } return this; } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ public Builder clearModuleVersion() { if (moduleVersionBuilder_ == null) { moduleVersion_ = null; onChanged(); } else { moduleVersion_ = null; moduleVersionBuilder_ = null; } return this; } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ public com.clarifai.grpc.api.ModuleVersion.Builder getModuleVersionBuilder() { onChanged(); return getModuleVersionFieldBuilder().getBuilder(); } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ public com.clarifai.grpc.api.ModuleVersionOrBuilder getModuleVersionOrBuilder() { if (moduleVersionBuilder_ != null) { return moduleVersionBuilder_.getMessageOrBuilder(); } else { return moduleVersion_ == null ? com.clarifai.grpc.api.ModuleVersion.getDefaultInstance() : moduleVersion_; } } /** *
     * The installed module version provided here so that we users don't need to do an additional
     * fetch. When creating a new InstalledModuleVersion you should provide the:
     * module_version.user_id
     * module_version.app_id
     * module_version.module_id
     * module_version.id
     * in order to uniquely define which module version.
     * 
* * .clarifai.api.ModuleVersion module_version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ModuleVersion, com.clarifai.grpc.api.ModuleVersion.Builder, com.clarifai.grpc.api.ModuleVersionOrBuilder> getModuleVersionFieldBuilder() { if (moduleVersionBuilder_ == null) { moduleVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ModuleVersion, com.clarifai.grpc.api.ModuleVersion.Builder, com.clarifai.grpc.api.ModuleVersionOrBuilder>( getModuleVersion(), getParentForChildren(), isClean()); moduleVersion_ = null; } return moduleVersionBuilder_; } private java.lang.Object appId_ = ""; /** *
     * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
     * created). This doesn't have to be provided in requests to install, but will be returned in
     * responses.
     * 
* * string app_id = 3; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
     * created). This doesn't have to be provided in requests to install, but will be returned in
     * responses.
     * 
* * string app_id = 3; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
     * created). This doesn't have to be provided in requests to install, but will be returned in
     * responses.
     * 
* * string app_id = 3; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); return this; } /** *
     * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
     * created). This doesn't have to be provided in requests to install, but will be returned in
     * responses.
     * 
* * string app_id = 3; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** *
     * The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was
     * created). This doesn't have to be provided in requests to install, but will be returned in
     * responses.
     * 
* * string app_id = 3; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; onChanged(); return this; } private java.lang.Object userId_ = ""; /** *
     * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
     * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
     * will be returned in responses.
     * 
* * string user_id = 4; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
     * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
     * will be returned in responses.
     * 
* * string user_id = 4; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
     * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
     * will be returned in responses.
     * 
* * string user_id = 4; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** *
     * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
     * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
     * will be returned in responses.
     * 
* * string user_id = 4; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** *
     * The user that the app belongs to where the ModuleVersion is installed into (not necessary where
     * the ModuleVersion was created). This doesn't have to be provided in requests to install, but
     * will be returned in responses.
     * 
* * string user_id = 4; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = 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 install was created.
     * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the install was 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 the install was 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 the install was 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 the install was 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 the install was created.
     * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the install was created.
     * 
* * .google.protobuf.Timestamp created_at = 5; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the install was 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 the install was 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_; } 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 install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
     * When the install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; * @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 install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ 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 install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ 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 install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ 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 install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
     * When the install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
     * When the install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
     * When the install was last modified.
     * 
* * .google.protobuf.Timestamp modified_at = 6; */ 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 java.lang.Object deployUrl_ = ""; /** *
     * The URL of where this app module version is deployed.
     * If you provide this deploy_url when creating the install then it will
     * be treated as a pre-deployed module. You can only use a pre-deployed module
     * in when installing to an app_id that you own as the creator of the module.
     * If you want to install someone elses module or to rely on Clarifai deploying
     * your module for you, leave deploy_url empty when creating the install.
     * If it is left empty, then deployment will occur when this module version is
     * installed into an app using the git_commit_url of the ModuleVersion.
     * 
* * string deploy_url = 7; * @return The deployUrl. */ public java.lang.String getDeployUrl() { java.lang.Object ref = deployUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The URL of where this app module version is deployed.
     * If you provide this deploy_url when creating the install then it will
     * be treated as a pre-deployed module. You can only use a pre-deployed module
     * in when installing to an app_id that you own as the creator of the module.
     * If you want to install someone elses module or to rely on Clarifai deploying
     * your module for you, leave deploy_url empty when creating the install.
     * If it is left empty, then deployment will occur when this module version is
     * installed into an app using the git_commit_url of the ModuleVersion.
     * 
* * string deploy_url = 7; * @return The bytes for deployUrl. */ public com.google.protobuf.ByteString getDeployUrlBytes() { java.lang.Object ref = deployUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deployUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The URL of where this app module version is deployed.
     * If you provide this deploy_url when creating the install then it will
     * be treated as a pre-deployed module. You can only use a pre-deployed module
     * in when installing to an app_id that you own as the creator of the module.
     * If you want to install someone elses module or to rely on Clarifai deploying
     * your module for you, leave deploy_url empty when creating the install.
     * If it is left empty, then deployment will occur when this module version is
     * installed into an app using the git_commit_url of the ModuleVersion.
     * 
* * string deploy_url = 7; * @param value The deployUrl to set. * @return This builder for chaining. */ public Builder setDeployUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deployUrl_ = value; onChanged(); return this; } /** *
     * The URL of where this app module version is deployed.
     * If you provide this deploy_url when creating the install then it will
     * be treated as a pre-deployed module. You can only use a pre-deployed module
     * in when installing to an app_id that you own as the creator of the module.
     * If you want to install someone elses module or to rely on Clarifai deploying
     * your module for you, leave deploy_url empty when creating the install.
     * If it is left empty, then deployment will occur when this module version is
     * installed into an app using the git_commit_url of the ModuleVersion.
     * 
* * string deploy_url = 7; * @return This builder for chaining. */ public Builder clearDeployUrl() { deployUrl_ = getDefaultInstance().getDeployUrl(); onChanged(); return this; } /** *
     * The URL of where this app module version is deployed.
     * If you provide this deploy_url when creating the install then it will
     * be treated as a pre-deployed module. You can only use a pre-deployed module
     * in when installing to an app_id that you own as the creator of the module.
     * If you want to install someone elses module or to rely on Clarifai deploying
     * your module for you, leave deploy_url empty when creating the install.
     * If it is left empty, then deployment will occur when this module version is
     * installed into an app using the git_commit_url of the ModuleVersion.
     * 
* * string deploy_url = 7; * @param value The bytes for deployUrl to set. * @return This builder for chaining. */ public Builder setDeployUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deployUrl_ = value; onChanged(); return this; } private com.clarifai.grpc.api.Visibility visibility_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_; /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; * @return Whether the visibility field is set. */ public boolean hasVisibility() { return visibilityBuilder_ != null || visibility_ != null; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; * @return The visibility. */ public com.clarifai.grpc.api.Visibility getVisibility() { if (visibilityBuilder_ == null) { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } else { return visibilityBuilder_.getMessage(); } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ public Builder setVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } visibility_ = value; onChanged(); } else { visibilityBuilder_.setMessage(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ public Builder setVisibility( com.clarifai.grpc.api.Visibility.Builder builderForValue) { if (visibilityBuilder_ == null) { visibility_ = builderForValue.build(); onChanged(); } else { visibilityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ public Builder mergeVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (visibility_ != null) { visibility_ = com.clarifai.grpc.api.Visibility.newBuilder(visibility_).mergeFrom(value).buildPartial(); } else { visibility_ = value; } onChanged(); } else { visibilityBuilder_.mergeFrom(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ public Builder clearVisibility() { if (visibilityBuilder_ == null) { visibility_ = null; onChanged(); } else { visibility_ = null; visibilityBuilder_ = null; } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ public com.clarifai.grpc.api.Visibility.Builder getVisibilityBuilder() { onChanged(); return getVisibilityFieldBuilder().getBuilder(); } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { if (visibilityBuilder_ != null) { return visibilityBuilder_.getMessageOrBuilder(); } else { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible. For the InstalledModuleVersion this allows the app owner who
     * installed the module version to decide if they want other users of their app to have
     * the added functionality that the modules version provides to their app.
     * Defaults to PRIVATE if not provided.
     * 
* * .clarifai.api.Visibility visibility = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> getVisibilityFieldBuilder() { if (visibilityBuilder_ == null) { visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>( getVisibility(), getParentForChildren(), isClean()); visibility_ = null; } return visibilityBuilder_; } private java.lang.Object keyId_ = ""; /** *
     * The key ID to use for making requests to the API for this module.
     * This key is associated to this installed module version by PostInstalledModuleVersionsKey
     * request. The key is associated with the CALLER not the App Owner where this module is installed
     * nor the author of the module. This allows the module to act on behalf of the caller at all
     * times so we get proper permissions the caller has (such as if they are stranger, teammate or
     * collaborator). This key should be a personal access token to enable modules to work across apps
     * and have necessary abilities beyond what app-specific keys offer.
     * 
* * string key_id = 9; * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The key ID to use for making requests to the API for this module.
     * This key is associated to this installed module version by PostInstalledModuleVersionsKey
     * request. The key is associated with the CALLER not the App Owner where this module is installed
     * nor the author of the module. This allows the module to act on behalf of the caller at all
     * times so we get proper permissions the caller has (such as if they are stranger, teammate or
     * collaborator). This key should be a personal access token to enable modules to work across apps
     * and have necessary abilities beyond what app-specific keys offer.
     * 
* * string key_id = 9; * @return The bytes for keyId. */ public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The key ID to use for making requests to the API for this module.
     * This key is associated to this installed module version by PostInstalledModuleVersionsKey
     * request. The key is associated with the CALLER not the App Owner where this module is installed
     * nor the author of the module. This allows the module to act on behalf of the caller at all
     * times so we get proper permissions the caller has (such as if they are stranger, teammate or
     * collaborator). This key should be a personal access token to enable modules to work across apps
     * and have necessary abilities beyond what app-specific keys offer.
     * 
* * string key_id = 9; * @param value The keyId to set. * @return This builder for chaining. */ public Builder setKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyId_ = value; onChanged(); return this; } /** *
     * The key ID to use for making requests to the API for this module.
     * This key is associated to this installed module version by PostInstalledModuleVersionsKey
     * request. The key is associated with the CALLER not the App Owner where this module is installed
     * nor the author of the module. This allows the module to act on behalf of the caller at all
     * times so we get proper permissions the caller has (such as if they are stranger, teammate or
     * collaborator). This key should be a personal access token to enable modules to work across apps
     * and have necessary abilities beyond what app-specific keys offer.
     * 
* * string key_id = 9; * @return This builder for chaining. */ public Builder clearKeyId() { keyId_ = getDefaultInstance().getKeyId(); onChanged(); return this; } /** *
     * The key ID to use for making requests to the API for this module.
     * This key is associated to this installed module version by PostInstalledModuleVersionsKey
     * request. The key is associated with the CALLER not the App Owner where this module is installed
     * nor the author of the module. This allows the module to act on behalf of the caller at all
     * times so we get proper permissions the caller has (such as if they are stranger, teammate or
     * collaborator). This key should be a personal access token to enable modules to work across apps
     * and have necessary abilities beyond what app-specific keys offer.
     * 
* * string key_id = 9; * @param value The bytes for keyId to set. * @return This builder for chaining. */ public Builder setKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyId_ = value; onChanged(); return this; } @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.InstalledModuleVersion) } // @@protoc_insertion_point(class_scope:clarifai.api.InstalledModuleVersion) private static final com.clarifai.grpc.api.InstalledModuleVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.InstalledModuleVersion(); } public static com.clarifai.grpc.api.InstalledModuleVersion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstalledModuleVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InstalledModuleVersion(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.InstalledModuleVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy