com.google.cloud.grpc
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.google.cloud.grpc(Showing top 15 results out of 315)

origin: GoogleCloudPlatform/google-cloud-java

 @Override
 public void run() {
  executorFactory.release(executor);
 }
},
origin: GoogleCloudPlatform/google-cloud-java

public static GrpcTransportOptions getDefaultGrpcTransportOptions() {
 return GrpcTransportOptions.newBuilder().build();
}
origin: GoogleCloudPlatform/google-cloud-java

@Test
public void testBaseEquals() {
 assertEquals(OPTIONS, OPTIONS_COPY);
 assertNotEquals(DEFAULT_OPTIONS, OPTIONS);
 GrpcTransportOptions options = OPTIONS.toBuilder()
   .setExecutorFactory(new DefaultExecutorFactory())
   .build();
 assertNotEquals(OPTIONS, options);
}
origin: GoogleCloudPlatform/google-cloud-java

 public static Builder newBuilder() {
  return new Builder();
 }
}
origin: GoogleCloudPlatform/google-cloud-java

@Test
public void testBaseHashCode() {
 assertEquals(OPTIONS.hashCode(), OPTIONS_COPY.hashCode());
 assertNotEquals(DEFAULT_OPTIONS.hashCode(), OPTIONS.hashCode());
 GrpcTransportOptions options = OPTIONS.toBuilder()
   .setExecutorFactory(new DefaultExecutorFactory())
   .build();
 assertNotEquals(OPTIONS.hashCode(), options.hashCode());
}
origin: com.google.cloud/google-cloud-core-grpc

public GrpcTransportOptions build() {
 return new GrpcTransportOptions(this);
}
origin: GoogleCloudPlatform/google-cloud-java

public Builder toBuilder() {
 return new Builder(this);
}
origin: GoogleCloudPlatform/google-cloud-java

 @Test
 public void testDefaultExecutorFactory() {
  ExecutorFactory<ScheduledExecutorService> executorFactory = new DefaultExecutorFactory();
  ScheduledExecutorService executorService = executorFactory.get();
  assertSame(executorService, executorFactory.get());
 }
}
origin: GoogleCloudPlatform/google-cloud-java

@InternalApi("This class should only be extended within google-cloud-java")
protected BaseGrpcServiceException(IOException exception, boolean idempotent) {
 super(makeExceptionData(exception, idempotent));
}
origin: GoogleCloudPlatform/google-cloud-java

@Nonnull
public static GrpcTransportOptions getDefaultGrpcTransportOptions() {
 return GrpcTransportOptions.newBuilder().build();
}
origin: GoogleCloudPlatform/google-cloud-java

public static GrpcTransportOptions getDefaultGrpcTransportOptions() {
 return GrpcTransportOptions.newBuilder().build();
}
origin: com.google.cloud/google-cloud-core-grpc

 public static Builder newBuilder() {
  return new Builder();
 }
}
origin: com.google.cloud/google-cloud-logging

public static GrpcTransportOptions getDefaultGrpcTransportOptions() {
 return GrpcTransportOptions.newBuilder().build();
}
origin: GoogleCloudPlatform/google-cloud-java

public GrpcTransportOptions build() {
 return new GrpcTransportOptions(this);
}
origin: com.google.cloud/google-cloud-core-grpc

public Builder toBuilder() {
 return new Builder(this);
}
com.google.cloud.grpc

Most used classes

  • GrpcTransportOptions$Builder
    Builder for GrpcTransportOptions.
  • GrpcTransportOptions
    Class representing service options for those services that use gRPC as the transport layer.
  • GrpcTransportOptions$ExecutorFactory
    An interface for ExecutorService factories. Implementations of this interface can be used to provide
  • BaseGrpcServiceException
    Base class for all exceptions from grpc-based services.
  • GrpcTransportOptions$DefaultExecutorFactory

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)