/** Acknowledgement expiration padding. See {@link Builder#setAckExpirationPadding}. */ @InternalApi Duration getAckExpirationPadding() { return ackExpirationPadding; }
/** * Creates the request protobuf. This method is considered an internal implementation detail and * not meant to be used by applications. */ @InternalApi MultiClusterRoutingUseAny toProto() { return proto; }
/** * Creates the request protobuf. This method is considered an internal implementation detail and * not meant to be used by applications. */ @InternalApi public com.google.bigtable.admin.v2.Instance.State toProto() { return proto; } }
@InternalApi("This class should only be extended within google-cloud-java") protected BaseWriteChannel(ServiceOptionsT options, EntityT entity, String uploadId) { this.options = options; this.entity = entity; this.uploadId = uploadId; }
@InternalApi("This class should only be extended within google-cloud-java") protected Builder(ServiceOptionsT options, EntityT entity, String uploadId) { this.serviceOptions = options; this.entity = entity; this.uploadId = uploadId; }
@InternalApi("This class should only be extended within google-cloud-java") protected Builder(ServiceOptions<ServiceT, OptionsT> options) { projectId = options.projectId; host = options.host; credentials = options.credentials; retrySettings = options.retrySettings; serviceFactory = options.serviceFactory; serviceRpcFactory = options.serviceRpcFactory; clock = options.clock; transportOptions = options.transportOptions; }
@InternalApi public int pendingMessages() { return pendingMessages; } }
/** * Returns results of the query associated with the provided job. * * <p>Users are encouraged to use {@link Job#getQueryResults(QueryResultsOption...)} instead. */ @InternalApi QueryResponse getQueryResults(JobId jobId, QueryResultsOption... options);
/** * Creates the request protobuf. This method is considered an internal implementation detail and * not meant to be used by applications. */ @InternalApi public com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState toProto() { return proto; } }
@InternalApi("This class should only be extended within google-cloud-java") protected BaseState(Builder<ServiceOptionsT, EntityT> builder) { this.serviceOptions = builder.serviceOptions; this.entity = builder.entity; this.uploadId = builder.uploadId; this.position = builder.position; this.buffer = builder.buffer; this.isOpen = builder.isOpen; this.chunkSize = builder.chunkSize; }
/** * If {@code schema} is non-null, {@code TableResult} adds the schema to {@code FieldValueList}s * when iterating through them. {@code pageNoSchema} must not be null. */ @InternalApi("Exposed for testing") public TableResult(Schema schema, long totalRows, Page<FieldValueList> pageNoSchema) { this.schema = schema; this.totalRows = totalRows; this.pageNoSchema = checkNotNull(pageNoSchema); }
/** Don't create subclasses outside of google-cloud-java. */ @InternalApi("This class should only be extended within google-cloud-java") protected StringEnumValue(String constant) { this.constant = Preconditions.checkNotNull(constant); }
@InternalApi public static <T> T getFromServiceLoader(Class<? extends T> clazz, T defaultInstance) { return Iterables.getFirst(ServiceLoader.load(clazz), defaultInstance); } }
@InternalApi public static void translate(ExecutionException ex) { if (ex.getCause() instanceof BaseServiceException) { throw (BaseServiceException) ex.getCause(); } }
@SuppressWarnings("unchecked") @InternalApi public static <T> T newInstance(String className) throws IOException, ClassNotFoundException { try { return (T) Class.forName(className).newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new IOException(e); } }
@InternalApi public static boolean isRetryable(boolean idempotent, IOException exception) { boolean exceptionIsRetryable = exception instanceof SocketTimeoutException || exception instanceof SocketException || (exception instanceof SSLHandshakeException && !(exception.getCause() instanceof CertificateException)) || "insufficient data written".equals(exception.getMessage()) || "Error writing request body to server".equals(exception.getMessage()); return idempotent && exceptionIsRetryable; }
@InternalApi("This class should only be extended within google-cloud-java") protected BaseHttpServiceException( GoogleJsonError googleJsonError, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) { super(makeExceptionData(googleJsonError, idempotent, retryableErrors)); }
@InternalApi @Override public GcRule toProto() { return builder.build(); } }
@InternalApi @Override public GcRule toProto() { return GcRule.getDefaultInstance(); }
/** Creates a new instance of the {@link RowCell}. */ @InternalApi public static RowCell create( @Nonnull String family, @Nonnull ByteString qualifier, long timestamp, @Nonnull List<String> labels, @Nonnull ByteString value) { return new AutoValue_RowCell(family, qualifier, timestamp, value, labels); }