Skip to content

Commit c79107d

Browse files
committed
---
yaml --- r: 6803 b: refs/heads/tswast-patch-1 c: 81cedc4 h: refs/heads/master i: 6801: a5566ab 6799: 0f80b29
1 parent c89f31a commit c79107d

2 files changed

Lines changed: 57 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 06becd885dc0d4c45cd779a06be448b5179e77d1
60+
refs/heads/tswast-patch-1: 81cedc4edf78e745817c831c1d7cde7653dfc4f8
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Copyright 2016 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.gcloud.spi;
18+
19+
import java.util.Map;
20+
21+
public interface DnsServiceRpc {
22+
23+
enum Option {
24+
FIELDS("fields"),
25+
PAGE_SIZE("maxSize"),
26+
PAGE_TOKEN("pageToken"),
27+
DNS_NAME("dnsName"),
28+
SORTING_KEY("sortBy"),
29+
SORTING_ORDER("sortOrder");
30+
31+
private final String value;
32+
33+
Option(String value) {
34+
this.value = value;
35+
}
36+
37+
public String value() {
38+
return value;
39+
}
40+
41+
@SuppressWarnings("unchecked")
42+
<T> T get(Map<Option, ?> options) {
43+
return (T) options.get(this);
44+
}
45+
46+
String getString(Map<Option, ?> options) {
47+
return get(options);
48+
}
49+
50+
Integer getInt(Map<Option, ?> options) {
51+
return get(options);
52+
}
53+
}
54+
55+
//TODO(mderka) add supported operations. Created issue #594.
56+
}

0 commit comments

Comments
 (0)