Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 4307f41

Browse files
committed
Fix formatting
1 parent 0c267b6 commit 4307f41

3 files changed

Lines changed: 29 additions & 26 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/CreateInstanceRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ public CreateInstanceRequest addLabel(@Nonnull String key, @Nonnull String value
121121
/**
122122
* Adds a tag to the instance.
123123
*
124-
* <p>Tags are a way to organize and govern resources across Google Cloud. Unlike labels,
125-
* Tags are standalone resources created and managed through the Resource Manager API.
124+
* <p>Tags are a way to organize and govern resources across Google Cloud. Unlike labels, Tags are
125+
* standalone resources created and managed through the Resource Manager API.
126126
*
127127
* @see <a href="https://cloud.google.com/bigtable/docs/tags">For more details</a>
128128
*/

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/Instance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public String getDisplayName() {
152152

153153
/** Gets the instance's tags. */
154154
@SuppressWarnings("WeakerAccess")
155-
public Map<String,String> getTags() {
155+
public Map<String, String> getTags() {
156156
return proto.getTagsMap();
157157
}
158158

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/models/InstanceTest.java

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ public class InstanceTest {
2828

2929
@Test
3030
public void testFromProto() {
31-
com.google.bigtable.admin.v2.Instance proto = com.google.bigtable.admin.v2.Instance.newBuilder()
32-
.setName("projects/my-project/instances/my-instance")
33-
.setDisplayName("my display name")
34-
.setType(com.google.bigtable.admin.v2.Instance.Type.PRODUCTION)
35-
.setState(com.google.bigtable.admin.v2.Instance.State.READY)
36-
.putLabels("label1", "value1")
37-
.putLabels("label2", "value2")
38-
.putTags("tagKeys/123", "tagValues/456")
39-
.putTags("tagKeys/234", "tagValues/567")
40-
.build();
31+
com.google.bigtable.admin.v2.Instance proto =
32+
com.google.bigtable.admin.v2.Instance.newBuilder()
33+
.setName("projects/my-project/instances/my-instance")
34+
.setDisplayName("my display name")
35+
.setType(com.google.bigtable.admin.v2.Instance.Type.PRODUCTION)
36+
.setState(com.google.bigtable.admin.v2.Instance.State.READY)
37+
.putLabels("label1", "value1")
38+
.putLabels("label2", "value2")
39+
.putTags("tagKeys/123", "tagValues/456")
40+
.putTags("tagKeys/234", "tagValues/567")
41+
.build();
4142

4243
Instance result = Instance.fromProto(proto);
4344

@@ -49,19 +50,21 @@ public void testFromProto() {
4950
.containsExactly(
5051
"label1", "value1",
5152
"label2", "value2");
52-
assertThat(result.getTags()).containsExactly("tagKeys/123", "tagValues/456", "tagKeys/234", "tagValues/567");
53+
assertThat(result.getTags())
54+
.containsExactly("tagKeys/123", "tagValues/456", "tagKeys/234", "tagValues/567");
5355
}
5456

5557
@Test
5658
public void testRequiresName() {
57-
com.google.bigtable.admin.v2.Instance proto = com.google.bigtable.admin.v2.Instance.newBuilder()
58-
.setDisplayName("my display name")
59-
.setType(com.google.bigtable.admin.v2.Instance.Type.PRODUCTION)
60-
.setState(com.google.bigtable.admin.v2.Instance.State.READY)
61-
.putLabels("label1", "value1")
62-
.putLabels("label2", "value2")
63-
.putTags("tagKeys/123", "tagValues/456")
64-
.build();
59+
com.google.bigtable.admin.v2.Instance proto =
60+
com.google.bigtable.admin.v2.Instance.newBuilder()
61+
.setDisplayName("my display name")
62+
.setType(com.google.bigtable.admin.v2.Instance.Type.PRODUCTION)
63+
.setState(com.google.bigtable.admin.v2.Instance.State.READY)
64+
.putLabels("label1", "value1")
65+
.putLabels("label2", "value2")
66+
.putTags("tagKeys/123", "tagValues/456")
67+
.build();
6568

6669
Exception actualException = null;
6770

@@ -76,8 +79,8 @@ public void testRequiresName() {
7679

7780
@Test
7881
public void testTypeEnumUpToDate() {
79-
List<com.google.bigtable.admin.v2.Instance.Type> validProtoValues = Lists
80-
.newArrayList(com.google.bigtable.admin.v2.Instance.Type.values());
82+
List<com.google.bigtable.admin.v2.Instance.Type> validProtoValues =
83+
Lists.newArrayList(com.google.bigtable.admin.v2.Instance.Type.values());
8184

8285
// TYPE_UNSPECIFIED is not surfaced
8386
validProtoValues.remove(com.google.bigtable.admin.v2.Instance.Type.TYPE_UNSPECIFIED);
@@ -102,8 +105,8 @@ public void testTypeEnumUpToDate() {
102105

103106
@Test
104107
public void testStateEnumUpToDate() {
105-
List<com.google.bigtable.admin.v2.Instance.State> validProtoValues = Lists
106-
.newArrayList(com.google.bigtable.admin.v2.Instance.State.values());
108+
List<com.google.bigtable.admin.v2.Instance.State> validProtoValues =
109+
Lists.newArrayList(com.google.bigtable.admin.v2.Instance.State.values());
107110

108111
List<Instance.State> validModelValues = Lists.newArrayList(Instance.State.values());
109112

0 commit comments

Comments
 (0)