Gets the instanceName this client is associated with.

@deprecated Please use {@link #getProjectId()} and {@link #getInstanceId()}.
353319
@Deprecated
  public com.google.bigtable.admin.v2.InstanceName getInstanceName() {
    return com.google.bigtable.admin.v2.InstanceName.of(projectId, instanceId);
  }
648988
public synchronized BigtableClusterName getClusterName() throws IOException {
    if (this.clusterName == null) {
      try (BigtableClusterUtilities util = new BigtableClusterUtilities(options)) {
        ListClustersResponse clusters = util.getClusters();
        Preconditions.checkState(clusters.getClustersCount() == 1,
          String.format(
            "Project '%s' / Instance '%s' has %d clusters. There must be exactly 1 for this operation to work.",
            options.getProjectId(), options.getInstanceId(), clusters.getClustersCount()));
        clusterName = new BigtableClusterName(clusters.getClusters(0).getName());
      } catch (GeneralSecurityException e) {
        throw new IOException("Could not get cluster Id.", e);
      }
    }
    return clusterName;
  }
209140
private String getProjectName() {
    String pName = Strings.emptyToNull(projectName);
    if (pName == null) { 
      pName = Strings.emptyToNull(junit4.getProject().getName());
    }
    if (pName == null) {
      pName = "(unnamed project)";      
    }
    return pName;
  }
919808
public static String getProjectName( File inputDefFile)
    {
    String projectName = null;
    if( inputDefFile != null)
      {
      String inputBase = FilenameUtils.getBaseName( inputDefFile.getName());

      projectName =
        inputBase.toLowerCase().endsWith( "-input")
        ? inputBase.substring( 0, inputBase.length() - "-input".length())
        : inputBase;
      }

    return projectName;
    }
832557
public synchronized BigtableInstanceClient getInstanceAdminClient() throws IOException {
    if (instanceAdminClient == null) {
      ManagedChannel channel = createManagedPool(options.getAdminHost(), 1);
      instanceAdminClient = new BigtableInstanceGrpcClient(channel);
    }
    return instanceAdminClient;
  }
902538
public static Client getInstance() {
        if(instance == null) {
            instance = new Client();
        }

        instance.API_PORT = PortSingleton.getInstance().getPort();
        return instance;
    }
1112874
public static String getProjectId(String sessionId, AzkabanProjectConfig azkabanProjectConfig)
      throws IOException {
    log.info("Getting project Id for project: " + azkabanProjectConfig.getAzkabanProjectName());
    String projectId = AzkabanAjaxAPIClient.getProjectId(sessionId, azkabanProjectConfig);
    log.info("Project id: " + projectId);

    return projectId;
  }
428907
public CmsUUID getProjectId() {

        CmsUUID projectId = m_resource.getProjectLastModified();
        if (!getLock().isUnlocked() && !getLock().isInherited()) {
            // use lock project ID only if lock is not inherited
            projectId = getLock().getProjectId();
        }
        return projectId;
    }
1079167
public ArrayList<OvhInstance> project_serviceName_instance_GET(String serviceName, String region) throws IOException {
		String qPath = "/cloud/project/{serviceName}/instance";
		StringBuilder sb = path(qPath, serviceName);
		query(sb, "region", region);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t21);
	}
713922
public GetInstanceResponse getInstance(GetInstanceRequest request) {
        checkNotNull(request, "request should not be null.");
        checkNotNull(request.getInstanceId(), "request instanceId should not be null.");
        InternalRequest internalRequest = this.createRequest(
                request, HttpMethodName.GET, INSTANCE_PREFIX, request.getInstanceId());
        return this.invokeHttpClient(internalRequest, GetInstanceResponse.class);
    }
120385
public long getInstanceId() {
        HprofByteBuffer dumpBuffer = classDump.getHprofBuffer();
        return dumpBuffer.getID(fileOffset + classDump.classDumpSegment.fieldValueOffset);
    }
1291847
public String serverName() {
        if (tc.isDebugEnabled())
            Tr.debug(tc, "serverName", new Object[] { this, _serverName });
        return _serverName;
    }
412456
@SuppressWarnings("WeakerAccess")
  public String getInstanceId() {
    // Constructor ensures that name is not null
    ClusterName fullName =
        Verify.verifyNotNull(ClusterName.parse(stateProto.getName()), "Name can never be null");
    //noinspection ConstantConditions
    return fullName.getInstance();
  }
16942
def _get_instance(project_id, instance_zone, name, service):
    '''
    
    '''
    return service.instances().get(project=project_id,
                                   zone=instance_zone,
                                   instance=name).execute()
368532
@Override
    public Object getObjectInstance(JavaColonNamespace namespace, String name) throws NamingException {

        Object objectInstance = null;

        // java:app and java:global are the only namespaces that we could expect to find when
        // checking the server, so we'll only check those:
        if (JavaColonNamespace.APP.equals(namespace) || JavaColonNamespace.GLOBAL.equals(namespace)) {
            // ok, so either we have never looked it up before, or if we did it wasn't cacheable
            // so we must do the lookup on the server
            ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
            J2EEName j2eeName = cmd.getJ2EEName();
            RemoteObjectInstance roi = null;
            try {
                ClientSupport jndiHelper = clientSupportFactory.getRemoteClientSupport();
                roi = jndiHelper.getRemoteObjectInstance(j2eeName.getApplication(), j2eeName.getModule(), j2eeName.getComponent(), namespace.toString(), name);
            } catch (RemoteException ex) {
                //ffdc
                throw new NamingException("Failed remote lookup of " + namespace.prefix() + name);
            }

            if (roi != null) {
                try {
                    objectInstance = roi.getObject();
                    if (roi instanceof RemoteReferenceObjectInstanceImpl) {
                        // need to deserialize remote object byte array into javax.naming.Reference and re-construct
                        ObjectInputStream ois = null;
                        try {
                            byte[] bytes = (byte[]) objectInstance;
                            ClassLoader classLoader = AccessController.doPrivileged(new GetCL("this"));
                            DeserializationContext dc = serializationService.createDeserializationContext();
                            ois = dc.createObjectInputStream(new ByteArrayInputStream(bytes), classLoader);
                            objectInstance = ois.readObject();

                            if (objectInstance == null || !(objectInstance instanceof javax.naming.Reference)) {
                                throw new NamingException("Invalid reference returned from server");
                            }
                            javax.naming.Reference ref = (javax.naming.Reference) objectInstance;
                            String factoryClassName = ref.getFactoryClassName();
                            ObjectFactory objectFactory = null;
                            ObjectFactoryInfo info = objectFactoryInfos.get(factoryClassName);
                            if (info != null) {
                                objectFactory = info.getObjectFactoryClass().newInstance();
                            } else {
                                objectFactory = objectFactories.getServiceWithException(factoryClassName);
                            }
                            objectInstance = objectFactory.getObjectInstance(ref, null, null, null);
                            if (objectInstance == null) {
                                // should never happen
                                throw new NamingException("Could not object instance from object factory " + objectFactory);
                            }

                        } catch (Exception ex) {
                            NamingException ne = new NamingException("Failure occurred while reconstructing remote reference object");
                            ne.initCause(ex);
                            throw ne;
                        } finally {
                            if (ois != null)
                                try {
                                    ois.close();
                                } catch (IOException ex) {
                                }
                        }

                    }

                } catch (RemoteObjectInstanceException ex) {
                    //ffdc
                    NamingException ne = new NamingException();
                    ne.initCause(ex);
                    throw ne;
                }
            }
        }
        return objectInstance;
    }
989079
String getInstanceName(String clsName) {
		return clsName.substring(0, 1).toLowerCase(Locale.ENGLISH) + clsName.substring(1);
	}
73101
public java.util.List<String> getInstanceNames() {
        if (instanceNames == null) {
            instanceNames = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return instanceNames;
    }