@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * Gets a single channel descriptor. The descriptor indicates which fields are expected / * permitted for a notification channel of the given type. * * <p>Sample code: * * <pre><code> * try (NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = NotificationChannelDescriptorName.of("[PROJECT]", "[CHANNEL_DESCRIPTOR]"); * NotificationChannelDescriptor response = notificationChannelServiceClient.getNotificationChannelDescriptor(name.toString()); * } * </code></pre> * * @param name The channel type for which to execute the request. The format is * `projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannelDescriptor getNotificationChannelDescriptor(String name) { GetNotificationChannelDescriptorRequest request = GetNotificationChannelDescriptorRequest.newBuilder().setName(name).build(); return getNotificationChannelDescriptor(request); }
/** * Gets a single channel descriptor. The descriptor indicates which fields are expected / * permitted for a notification channel of the given type. * * <p>Sample code: * * <pre><code> * try (NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = NotificationChannelDescriptorName.of("[PROJECT]", "[CHANNEL_DESCRIPTOR]"); * NotificationChannelDescriptor response = notificationChannelServiceClient.getNotificationChannelDescriptor(name); * } * </code></pre> * * @param name The channel type for which to execute the request. The format is * `projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannelDescriptor getNotificationChannelDescriptor( NotificationChannelDescriptorName name) { GetNotificationChannelDescriptorRequest request = GetNotificationChannelDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); return getNotificationChannelDescriptor(request); }
/** * Gets a single channel descriptor. The descriptor indicates which fields are expected / * permitted for a notification channel of the given type. * * <p>Sample code: * * <pre><code> * try (NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = NotificationChannelDescriptorName.of("[PROJECT]", "[CHANNEL_DESCRIPTOR]"); * NotificationChannelDescriptor response = notificationChannelServiceClient.getNotificationChannelDescriptor(name.toString()); * } * </code></pre> * * @param name The channel type for which to execute the request. The format is * `projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannelDescriptor getNotificationChannelDescriptor(String name) { GetNotificationChannelDescriptorRequest request = GetNotificationChannelDescriptorRequest.newBuilder().setName(name).build(); return getNotificationChannelDescriptor(request); }
/** * Gets a single channel descriptor. The descriptor indicates which fields are expected / * permitted for a notification channel of the given type. * * <p>Sample code: * * <pre><code> * try (NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = NotificationChannelDescriptorName.of("[PROJECT]", "[CHANNEL_DESCRIPTOR]"); * NotificationChannelDescriptor response = notificationChannelServiceClient.getNotificationChannelDescriptor(name); * } * </code></pre> * * @param name The channel type for which to execute the request. The format is * `projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannelDescriptor getNotificationChannelDescriptor( NotificationChannelDescriptorName name) { GetNotificationChannelDescriptorRequest request = GetNotificationChannelDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); return getNotificationChannelDescriptor(request); }