Skip to content

Commit 3949e1a

Browse files
committed
---
yaml --- r: 3535 b: refs/heads/pubsub-alpha c: 81cedc4 h: refs/heads/master i: 3533: 3b95efe 3531: df48f13 3527: 98b5572 3519: a60db54
1 parent 5d91a08 commit 3949e1a

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 36a62ef856d199f8efd09501b5ba65c422c01f23
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 7406918e071dd2c5677a638ae2a06e7592b6542c
5-
refs/heads/pubsub-alpha: 06becd885dc0d4c45cd779a06be448b5179e77d1
5+
refs/heads/pubsub-alpha: 81cedc4edf78e745817c831c1d7cde7653dfc4f8
66
refs/heads/update-datastore: 47aae517c2cb33f1dccd909adaced73ec9d0f4df
77
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
88
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
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)