Search in sources :

Example 1 with TypeRegistry

use of com.google.protobuf.TypeRegistry in project gax-java by googleapis.

the class HttpJsonCallOptions method merge.

public HttpJsonCallOptions merge(HttpJsonCallOptions inputOptions) {
    if (inputOptions == null) {
        return this;
    }
    Builder builder = this.toBuilder();
    Instant newDeadline = inputOptions.getDeadline();
    if (newDeadline != null) {
        builder.setDeadline(newDeadline);
    }
    Credentials newCredentials = inputOptions.getCredentials();
    if (newCredentials != null) {
        builder.setCredentials(newCredentials);
    }
    TypeRegistry newTypeRegistry = inputOptions.getTypeRegistry();
    if (newTypeRegistry != null) {
        builder.setTypeRegistry(newTypeRegistry);
    }
    return builder.build();
}
Also used : Instant(org.threeten.bp.Instant) TypeRegistry(com.google.protobuf.TypeRegistry) Credentials(com.google.auth.Credentials)

Aggregations

Credentials (com.google.auth.Credentials)1 TypeRegistry (com.google.protobuf.TypeRegistry)1 Instant (org.threeten.bp.Instant)1