
com.google.api.gax.grpc.AutoValue_GrpcTransportChannel Maven / Gradle / Ivy
package com.google.api.gax.grpc;
import io.grpc.ManagedChannel;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GrpcTransportChannel extends GrpcTransportChannel {
private final ManagedChannel managedChannel;
private AutoValue_GrpcTransportChannel(
ManagedChannel managedChannel) {
this.managedChannel = managedChannel;
}
@Override
ManagedChannel getManagedChannel() {
return managedChannel;
}
@Override
public String toString() {
return "GrpcTransportChannel{"
+ "managedChannel=" + managedChannel
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GrpcTransportChannel) {
GrpcTransportChannel that = (GrpcTransportChannel) o;
return this.managedChannel.equals(that.getManagedChannel());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= managedChannel.hashCode();
return h$;
}
static final class Builder extends GrpcTransportChannel.Builder {
private ManagedChannel managedChannel;
Builder() {
}
@Override
public GrpcTransportChannel.Builder setManagedChannel(ManagedChannel managedChannel) {
if (managedChannel == null) {
throw new NullPointerException("Null managedChannel");
}
this.managedChannel = managedChannel;
return this;
}
@Override
public GrpcTransportChannel build() {
if (this.managedChannel == null) {
String missing = " managedChannel";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_GrpcTransportChannel(
this.managedChannel);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy