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();
}
Aggregations