Skip to content

Commit 855ecd5

Browse files
committed
chore: format code
1 parent 7fa0332 commit 855ecd5

File tree

305 files changed

+7037
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+7037
-29
lines changed

java-dns/src/main/java/com/google/cloud/dns/RecordSet.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,43 @@ public Type apply(String constant) {
9191

9292
/** Address record, which is used to map host names to their IPv4 address. */
9393
public static final Type A = type.createAndRegister("A");
94+
9495
/** IPv6 Address record, which is used to map host names to their IPv6 address. */
9596
public static final Type AAAA = type.createAndRegister("AAAA");
97+
9698
/**
9799
* Certificate Authority (CA) Authorization, which specifies which CAs are allowed to create
98100
* certificates for a domain.
99101
*/
100102
public static final Type CAA = type.createAndRegister("CAA");
103+
101104
/** Canonical name record, which is used to alias names. */
102105
public static final Type CNAME = type.createAndRegister("CNAME");
106+
103107
/** Mail exchange record, which is used in routing requests to mail servers. */
104108
public static final Type MX = type.createAndRegister("MX");
109+
105110
/** Naming authority pointer record, defined by RFC3403. */
106111
public static final Type NAPTR = type.createAndRegister("NAPTR");
112+
107113
/** Name server record, which delegates a DNS zone to an authoritative server. */
108114
public static final Type NS = type.createAndRegister("NS");
115+
109116
/** Pointer record, which is often used for reverse DNS lookups. */
110117
public static final Type PTR = type.createAndRegister("PTR");
118+
111119
/** Start of authority record, which specifies authoritative information about a DNS zone. */
112120
public static final Type SOA = type.createAndRegister("SOA");
121+
113122
/** Sender policy framework record, which is used in email validation systems. */
114123
public static final Type SPF = type.createAndRegister("SPF");
124+
115125
/**
116126
* Service locator record, which is used by some voice over IP, instant messaging protocols and
117127
* other applications.
118128
*/
119129
public static final Type SRV = type.createAndRegister("SRV");
130+
120131
/**
121132
* Text record, which can contain arbitrary text and can also be used to define machine readable
122133
* data such as security or abuse prevention information.

java-dns/src/main/java/com/google/cloud/dns/ZoneInfo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ public abstract static class Builder {
370370
* servers that all host the same zones. Most users will not need to specify this value.
371371
*/
372372
abstract Builder setNameServerSet(String nameServerSet);
373+
373374
// this should not be included in tooling as per the service owners
374375

375376
/**

java-dns/src/test/java/com/google/cloud/dns/ChangeRequestTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public void setUp() throws Exception {
5656
dns,
5757
ZONE_NAME,
5858
new ChangeRequestInfo.BuilderImpl(
59-
CHANGE_REQUEST_INFO
60-
.toBuilder()
59+
CHANGE_REQUEST_INFO.toBuilder()
6160
.setStartTime(132L)
6261
.setGeneratedId("12")
6362
.setStatus(ChangeRequest.Status.DONE)
@@ -67,8 +66,7 @@ public void setUp() throws Exception {
6766
dns,
6867
ZONE_NAME,
6968
new ChangeRequestInfo.BuilderImpl(
70-
CHANGE_REQUEST_INFO
71-
.toBuilder()
69+
CHANGE_REQUEST_INFO.toBuilder()
7270
.setStartTime(132L)
7371
.setGeneratedId("12")
7472
.setStatus(ChangeRequest.Status.PENDING)

java-dns/src/test/java/com/google/cloud/dns/SerializationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
public class SerializationTest extends BaseSerializationTest {
2929

3030
private static final ZoneInfo FULL_ZONE_INFO =
31-
Zone.of("some zone name", "www.example.com", "some descriptions")
32-
.toBuilder()
31+
Zone.of("some zone name", "www.example.com", "some descriptions").toBuilder()
3332
.setCreationTimeMillis(132L)
3433
.setGeneratedId("123333")
3534
.setNameServers(ImmutableList.of("server 1", "server 2"))

java-dns/src/test/java/com/google/cloud/dns/ZoneInfoTest.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public class ZoneInfoTest {
7272
.setNonExistence(NON_EXISTENCE)
7373
.build();
7474
private static final ZoneInfo INFO =
75-
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION)
76-
.toBuilder()
75+
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder()
7776
.setCreationTimeMillis(CREATION_TIME_MILLIS)
7877
.setGeneratedId(GENERATED_ID)
7978
.setNameServerSet(NAME_SERVER_SET)
@@ -174,8 +173,7 @@ public void testToBuilder() {
174173
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder().setGeneratedId(GENERATED_ID).build();
175174
assertEquals(partial, partial.toBuilder().build());
176175
partial =
177-
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION)
178-
.toBuilder()
176+
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder()
179177
.setCreationTimeMillis(CREATION_TIME_MILLIS)
180178
.build();
181179
assertEquals(partial, partial.toBuilder().build());
@@ -185,8 +183,7 @@ public void testToBuilder() {
185183
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder().setNameServers(nameServers).build();
186184
assertEquals(partial, partial.toBuilder().build());
187185
partial =
188-
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION)
189-
.toBuilder()
186+
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder()
190187
.setNameServerSet(NAME_SERVER_SET)
191188
.build();
192189
assertEquals(partial, partial.toBuilder().build());
@@ -205,8 +202,7 @@ public void testToAndFromPb() {
205202
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder().setGeneratedId(GENERATED_ID).build();
206203
assertEquals(partial, ZoneInfo.fromPb(partial.toPb()));
207204
partial =
208-
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION)
209-
.toBuilder()
205+
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder()
210206
.setCreationTimeMillis(CREATION_TIME_MILLIS)
211207
.build();
212208
assertEquals(partial, ZoneInfo.fromPb(partial.toPb()));
@@ -216,8 +212,7 @@ public void testToAndFromPb() {
216212
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder().setNameServers(nameServers).build();
217213
assertEquals(partial, ZoneInfo.fromPb(partial.toPb()));
218214
partial =
219-
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION)
220-
.toBuilder()
215+
ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION).toBuilder()
221216
.setNameServerSet(NAME_SERVER_SET)
222217
.build();
223218
assertEquals(partial, ZoneInfo.fromPb(partial.toPb()));

java-dns/src/test/java/com/google/cloud/dns/ZoneTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ public class ZoneTest {
4242
private static final String ZONE_NAME = "dns-zone-name";
4343
private static final String ZONE_ID = "123";
4444
private static final ZoneInfo ZONE_INFO =
45-
Zone.of(ZONE_NAME, "example.com", "description")
46-
.toBuilder()
45+
Zone.of(ZONE_NAME, "example.com", "description").toBuilder()
4746
.setGeneratedId(ZONE_ID)
4847
.setCreationTimeMillis(123478946464L)
4948
.build();
5049
private static final ZoneInfo NO_ID_INFO =
51-
ZoneInfo.of(ZONE_NAME, "another-example.com", "description")
52-
.toBuilder()
50+
ZoneInfo.of(ZONE_NAME, "another-example.com", "description").toBuilder()
5351
.setCreationTimeMillis(893123464L)
5452
.build();
5553
private static final Dns.ZoneOption ZONE_FIELD_OPTIONS =

java-notification/src/test/java/com/google/cloud/notification/NotificationInfoTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public void testBuilder() {
8686
public void testToPbAndFromPb() {
8787
compareBuckets(NOTIFICATION_INFO, NotificationInfo.fromPb(NOTIFICATION_INFO.toPb()));
8888
NotificationInfo bucketInfo =
89-
NotificationInfo.of(ProjectTopicName.of("myProject", "topic1"))
90-
.toBuilder()
89+
NotificationInfo.of(ProjectTopicName.of("myProject", "topic1")).toBuilder()
9190
.setPayloadFormat(PayloadFormat.NONE)
9291
.build();
9392
compareBuckets(bucketInfo, NotificationInfo.fromPb(bucketInfo.toPb()));

java-notification/src/test/java/com/google/cloud/notification/it/ITSystemTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ public void testNotifications() {
134134
NotificationInfo notification2 =
135135
notificationService.createNotification(
136136
BUCKET,
137-
NotificationInfo.of(topic)
138-
.toBuilder()
137+
NotificationInfo.of(topic).toBuilder()
139138
.setPayloadFormat(PayloadFormat.JSON_API_V1)
140139
.build());
141140
assertEquals(topic, notification2.getTopic());

java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/Attribute.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public enum Attribute implements com.google.protobuf.ProtocolMessageEnum {
6363
* <code>ATTRIBUTE_UNSPECIFIED = 0;</code>
6464
*/
6565
public static final int ATTRIBUTE_UNSPECIFIED_VALUE = 0;
66+
6667
/**
6768
*
6869
*

java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/CreateNotificationSubscriptionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public final class CreateNotificationSubscriptionRequest
3535
// @@protoc_insertion_point(message_implements:google.shopping.merchant.notifications.v1beta.CreateNotificationSubscriptionRequest)
3636
CreateNotificationSubscriptionRequestOrBuilder {
3737
private static final long serialVersionUID = 0L;
38+
3839
// Use CreateNotificationSubscriptionRequest.newBuilder() to construct.
3940
private CreateNotificationSubscriptionRequest(
4041
com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
@@ -73,6 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7374

7475
@SuppressWarnings("serial")
7576
private volatile java.lang.Object parent_ = "";
77+
7678
/**
7779
*
7880
*
@@ -99,6 +101,7 @@ public java.lang.String getParent() {
99101
return s;
100102
}
101103
}
104+
102105
/**
103106
*
104107
*
@@ -129,6 +132,7 @@ public com.google.protobuf.ByteString getParentBytes() {
129132
public static final int NOTIFICATION_SUBSCRIPTION_FIELD_NUMBER = 2;
130133
private com.google.shopping.merchant.notifications.v1beta.NotificationSubscription
131134
notificationSubscription_;
135+
132136
/**
133137
*
134138
*
@@ -146,6 +150,7 @@ public com.google.protobuf.ByteString getParentBytes() {
146150
public boolean hasNotificationSubscription() {
147151
return ((bitField0_ & 0x00000001) != 0);
148152
}
153+
149154
/**
150155
*
151156
*
@@ -167,6 +172,7 @@ public boolean hasNotificationSubscription() {
167172
.getDefaultInstance()
168173
: notificationSubscription_;
169174
}
175+
170176
/**
171177
*
172178
*
@@ -385,6 +391,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
385391
Builder builder = new Builder(parent);
386392
return builder;
387393
}
394+
388395
/**
389396
*
390397
*
@@ -624,6 +631,7 @@ public Builder mergeFrom(
624631
private int bitField0_;
625632

626633
private java.lang.Object parent_ = "";
634+
627635
/**
628636
*
629637
*
@@ -649,6 +657,7 @@ public java.lang.String getParent() {
649657
return (java.lang.String) ref;
650658
}
651659
}
660+
652661
/**
653662
*
654663
*
@@ -674,6 +683,7 @@ public com.google.protobuf.ByteString getParentBytes() {
674683
return (com.google.protobuf.ByteString) ref;
675684
}
676685
}
686+
677687
/**
678688
*
679689
*
@@ -698,6 +708,7 @@ public Builder setParent(java.lang.String value) {
698708
onChanged();
699709
return this;
700710
}
711+
701712
/**
702713
*
703714
*
@@ -718,6 +729,7 @@ public Builder clearParent() {
718729
onChanged();
719730
return this;
720731
}
732+
721733
/**
722734
*
723735
*
@@ -751,6 +763,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
751763
com.google.shopping.merchant.notifications.v1beta.NotificationSubscription.Builder,
752764
com.google.shopping.merchant.notifications.v1beta.NotificationSubscriptionOrBuilder>
753765
notificationSubscriptionBuilder_;
766+
754767
/**
755768
*
756769
*
@@ -767,6 +780,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
767780
public boolean hasNotificationSubscription() {
768781
return ((bitField0_ & 0x00000002) != 0);
769782
}
783+
770784
/**
771785
*
772786
*
@@ -791,6 +805,7 @@ public boolean hasNotificationSubscription() {
791805
return notificationSubscriptionBuilder_.getMessage();
792806
}
793807
}
808+
794809
/**
795810
*
796811
*
@@ -816,6 +831,7 @@ public Builder setNotificationSubscription(
816831
onChanged();
817832
return this;
818833
}
834+
819835
/**
820836
*
821837
*
@@ -839,6 +855,7 @@ public Builder setNotificationSubscription(
839855
onChanged();
840856
return this;
841857
}
858+
842859
/**
843860
*
844861
*
@@ -871,6 +888,7 @@ public Builder mergeNotificationSubscription(
871888
}
872889
return this;
873890
}
891+
874892
/**
875893
*
876894
*
@@ -892,6 +910,7 @@ public Builder clearNotificationSubscription() {
892910
onChanged();
893911
return this;
894912
}
913+
895914
/**
896915
*
897916
*
@@ -909,6 +928,7 @@ public Builder clearNotificationSubscription() {
909928
onChanged();
910929
return getNotificationSubscriptionFieldBuilder().getBuilder();
911930
}
931+
912932
/**
913933
*
914934
*
@@ -931,6 +951,7 @@ public Builder clearNotificationSubscription() {
931951
: notificationSubscription_;
932952
}
933953
}
954+
934955
/**
935956
*
936957
*

0 commit comments

Comments
 (0)