use of com.google.pubsub.v1.GetSchemaRequest in project gapic-generator-java by googleapis.
the class SyncGetSchema method syncGetSchema.
public static void syncGetSchema() throws Exception {
// It may require modifications to work in your environment.
try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()).setView(SchemaView.forNumber(0)).build();
Schema response = schemaServiceClient.getSchema(request);
}
}
Aggregations