@Test public void getItemInfoReturnsNullBeforeClose() throws Exception { GoogleCloudStorageGrpcWriteChannel writeChannel = newWriteChannel(); ByteString data = ByteString.copyFromUtf8("test data"); writeChannel.initialize(); writeChannel.write(data.asReadOnlyByteBuffer()); assertNull(writeChannel.getItemInfo()); }
@Override public GoogleCloudStorageItemInfo getItemInfo() { return this.completedItemInfo; }
GoogleCloudStorageGrpcWriteChannel extends BaseAbstractGoogleAsyncWriteChannel<Object> implements GoogleCloudStorageItemInfo.Provider { @Override public GoogleCloudStorageItemInfo getItemInfo() { return this.completedItemInfo; } }
GoogleCloudStorageGrpcWriteChannel extends BaseAbstractGoogleAsyncWriteChannel<Object> implements GoogleCloudStorageItemInfo.Provider { @Override public GoogleCloudStorageItemInfo getItemInfo() { return this.completedItemInfo; } GoogleCloudStorageGrpcWriteChannel(
      StorageStub stub,
      ExecutorService threadPool,
      AsyncWriteChannelOptions channelOptions,
      StorageResourceId resourceId,
      CreateObjectOptions createOptions,
      ObjectWriteConditions writeConditions,
      String requesterPaysProject); }
GoogleCloudStorageGrpcWriteChannel extends BaseAbstractGoogleAsyncWriteChannel<Object> implements GoogleCloudStorageItemInfo.Provider { @Override public GoogleCloudStorageItemInfo getItemInfo() { return this.completedItemInfo; } GoogleCloudStorageGrpcWriteChannel(
      StorageStub stub,
      ExecutorService threadPool,
      AsyncWriteChannelOptions channelOptions,
      StorageResourceId resourceId,
      CreateObjectOptions createOptions,
      ObjectWriteConditions writeConditions,
      String requesterPaysProject); @Override void handleResponse(Object response); @Override void startUpload(InputStream pipeSource); @Override GoogleCloudStorageItemInfo getItemInfo(); }
GoogleCloudStorageGrpcWriteChannel extends BaseAbstractGoogleAsyncWriteChannel<Object> implements GoogleCloudStorageItemInfo.Provider { @Override public GoogleCloudStorageItemInfo getItemInfo() { return this.completedItemInfo; } GoogleCloudStorageGrpcWriteChannel(
      StorageStub stub,
      ExecutorService threadPool,
      AsyncWriteChannelOptions channelOptions,
      StorageResourceId resourceId,
      CreateObjectOptions createOptions,
      ObjectWriteConditions writeConditions,
      String requesterPaysProject); @Override void handleResponse(Object response); @Override void startUpload(InputStream pipeSource); @Override GoogleCloudStorageItemInfo getItemInfo();  }