Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 2ea0320

Browse files
docs: clarified gcs_bucket field of the SecuritySettings message (#578)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 478035442 Source-Link: https://togithub.com/googleapis/googleapis/commit/8cb255f53114838674ca2657862d59f5dea53a21 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/461eeeb770c0397b5ef8392d2429953f1393ff64 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDYxZWVlYjc3MGMwMzk3YjVlZjgzOTJkMjQyOTk1M2YxMzkzZmY2NCJ9 chore(bazel): update protobuf to v3.21.7 PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 docs: clarified gcs_bucket field of the SecuritySettings message PiperOrigin-RevId: 477778532 Source-Link: https://togithub.com/googleapis/googleapis/commit/22d2bdaeef002825047e3f9065f251da25463eab Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/821f121f01c150e4dbd0bf9a792bc05c2ceec1d2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODIxZjEyMWYwMWMxNTBlNGRiZDBiZjlhNzkyYmMwNWMyY2VlYzFkMiJ9
1 parent 488f6d2 commit 2ea0320

File tree

400 files changed

+30151
-46059
lines changed

Some content is hidden

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

400 files changed

+30151
-46059
lines changed

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java

+97-151
Original file line numberDiff line numberDiff line change
@@ -58,63 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5858
return this.unknownFields;
5959
}
6060

61-
private AdvancedSettings(
62-
com.google.protobuf.CodedInputStream input,
63-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
64-
throws com.google.protobuf.InvalidProtocolBufferException {
65-
this();
66-
if (extensionRegistry == null) {
67-
throw new java.lang.NullPointerException();
68-
}
69-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
70-
com.google.protobuf.UnknownFieldSet.newBuilder();
71-
try {
72-
boolean done = false;
73-
while (!done) {
74-
int tag = input.readTag();
75-
switch (tag) {
76-
case 0:
77-
done = true;
78-
break;
79-
case 50:
80-
{
81-
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.Builder
82-
subBuilder = null;
83-
if (loggingSettings_ != null) {
84-
subBuilder = loggingSettings_.toBuilder();
85-
}
86-
loggingSettings_ =
87-
input.readMessage(
88-
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.parser(),
89-
extensionRegistry);
90-
if (subBuilder != null) {
91-
subBuilder.mergeFrom(loggingSettings_);
92-
loggingSettings_ = subBuilder.buildPartial();
93-
}
94-
95-
break;
96-
}
97-
default:
98-
{
99-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
100-
done = true;
101-
}
102-
break;
103-
}
104-
}
105-
}
106-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
107-
throw e.setUnfinishedMessage(this);
108-
} catch (com.google.protobuf.UninitializedMessageException e) {
109-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
110-
} catch (java.io.IOException e) {
111-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
112-
} finally {
113-
this.unknownFields = unknownFields.build();
114-
makeExtensionsImmutable();
115-
}
116-
}
117-
11861
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
11962
return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto
12063
.internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor;
@@ -193,55 +136,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
193136
return this.unknownFields;
194137
}
195138

196-
private LoggingSettings(
197-
com.google.protobuf.CodedInputStream input,
198-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
199-
throws com.google.protobuf.InvalidProtocolBufferException {
200-
this();
201-
if (extensionRegistry == null) {
202-
throw new java.lang.NullPointerException();
203-
}
204-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
205-
com.google.protobuf.UnknownFieldSet.newBuilder();
206-
try {
207-
boolean done = false;
208-
while (!done) {
209-
int tag = input.readTag();
210-
switch (tag) {
211-
case 0:
212-
done = true;
213-
break;
214-
case 16:
215-
{
216-
enableStackdriverLogging_ = input.readBool();
217-
break;
218-
}
219-
case 24:
220-
{
221-
enableInteractionLogging_ = input.readBool();
222-
break;
223-
}
224-
default:
225-
{
226-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
227-
done = true;
228-
}
229-
break;
230-
}
231-
}
232-
}
233-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
234-
throw e.setUnfinishedMessage(this);
235-
} catch (com.google.protobuf.UninitializedMessageException e) {
236-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
237-
} catch (java.io.IOException e) {
238-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
239-
} finally {
240-
this.unknownFields = unknownFields.build();
241-
makeExtensionsImmutable();
242-
}
243-
}
244-
245139
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
246140
return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto
247141
.internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_LoggingSettings_descriptor;
@@ -313,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
313207
if (enableInteractionLogging_ != false) {
314208
output.writeBool(3, enableInteractionLogging_);
315209
}
316-
unknownFields.writeTo(output);
210+
getUnknownFields().writeTo(output);
317211
}
318212

319213
@java.lang.Override
@@ -328,7 +222,7 @@ public int getSerializedSize() {
328222
if (enableInteractionLogging_ != false) {
329223
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableInteractionLogging_);
330224
}
331-
size += unknownFields.getSerializedSize();
225+
size += getUnknownFields().getSerializedSize();
332226
memoizedSize = size;
333227
return size;
334228
}
@@ -346,7 +240,7 @@ public boolean equals(final java.lang.Object obj) {
346240

347241
if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false;
348242
if (getEnableInteractionLogging() != other.getEnableInteractionLogging()) return false;
349-
if (!unknownFields.equals(other.unknownFields)) return false;
243+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
350244
return true;
351245
}
352246

@@ -361,7 +255,7 @@ public int hashCode() {
361255
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStackdriverLogging());
362256
hash = (37 * hash) + ENABLE_INTERACTION_LOGGING_FIELD_NUMBER;
363257
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableInteractionLogging());
364-
hash = (29 * hash) + unknownFields.hashCode();
258+
hash = (29 * hash) + getUnknownFields().hashCode();
365259
memoizedHashCode = hash;
366260
return hash;
367261
}
@@ -495,17 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
495389

496390
// Construct using
497391
// com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.newBuilder()
498-
private Builder() {
499-
maybeForceBuilderInitialization();
500-
}
392+
private Builder() {}
501393

502394
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
503395
super(parent);
504-
maybeForceBuilderInitialization();
505-
}
506-
507-
private void maybeForceBuilderInitialization() {
508-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
509396
}
510397

511398
@java.lang.Override
@@ -607,7 +494,7 @@ public Builder mergeFrom(
607494
if (other.getEnableInteractionLogging() != false) {
608495
setEnableInteractionLogging(other.getEnableInteractionLogging());
609496
}
610-
this.mergeUnknownFields(other.unknownFields);
497+
this.mergeUnknownFields(other.getUnknownFields());
611498
onChanged();
612499
return this;
613500
}
@@ -622,19 +509,43 @@ public Builder mergeFrom(
622509
com.google.protobuf.CodedInputStream input,
623510
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
624511
throws java.io.IOException {
625-
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings parsedMessage = null;
512+
if (extensionRegistry == null) {
513+
throw new java.lang.NullPointerException();
514+
}
626515
try {
627-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
516+
boolean done = false;
517+
while (!done) {
518+
int tag = input.readTag();
519+
switch (tag) {
520+
case 0:
521+
done = true;
522+
break;
523+
case 16:
524+
{
525+
enableStackdriverLogging_ = input.readBool();
526+
527+
break;
528+
} // case 16
529+
case 24:
530+
{
531+
enableInteractionLogging_ = input.readBool();
532+
533+
break;
534+
} // case 24
535+
default:
536+
{
537+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
538+
done = true; // was an endgroup tag
539+
}
540+
break;
541+
} // default:
542+
} // switch (tag)
543+
} // while (!done)
628544
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
629-
parsedMessage =
630-
(com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings)
631-
e.getUnfinishedMessage();
632545
throw e.unwrapIOException();
633546
} finally {
634-
if (parsedMessage != null) {
635-
mergeFrom(parsedMessage);
636-
}
637-
}
547+
onChanged();
548+
} // finally
638549
return this;
639550
}
640551

@@ -777,7 +688,19 @@ public LoggingSettings parsePartialFrom(
777688
com.google.protobuf.CodedInputStream input,
778689
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
779690
throws com.google.protobuf.InvalidProtocolBufferException {
780-
return new LoggingSettings(input, extensionRegistry);
691+
Builder builder = newBuilder();
692+
try {
693+
builder.mergeFrom(input, extensionRegistry);
694+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
695+
throw e.setUnfinishedMessage(builder.buildPartial());
696+
} catch (com.google.protobuf.UninitializedMessageException e) {
697+
throw e.asInvalidProtocolBufferException()
698+
.setUnfinishedMessage(builder.buildPartial());
699+
} catch (java.io.IOException e) {
700+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
701+
.setUnfinishedMessage(builder.buildPartial());
702+
}
703+
return builder.buildPartial();
781704
}
782705
};
783706

@@ -878,7 +801,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
878801
if (loggingSettings_ != null) {
879802
output.writeMessage(6, getLoggingSettings());
880803
}
881-
unknownFields.writeTo(output);
804+
getUnknownFields().writeTo(output);
882805
}
883806

884807
@java.lang.Override
@@ -890,7 +813,7 @@ public int getSerializedSize() {
890813
if (loggingSettings_ != null) {
891814
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingSettings());
892815
}
893-
size += unknownFields.getSerializedSize();
816+
size += getUnknownFields().getSerializedSize();
894817
memoizedSize = size;
895818
return size;
896819
}
@@ -910,7 +833,7 @@ public boolean equals(final java.lang.Object obj) {
910833
if (hasLoggingSettings()) {
911834
if (!getLoggingSettings().equals(other.getLoggingSettings())) return false;
912835
}
913-
if (!unknownFields.equals(other.unknownFields)) return false;
836+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
914837
return true;
915838
}
916839

@@ -925,7 +848,7 @@ public int hashCode() {
925848
hash = (37 * hash) + LOGGING_SETTINGS_FIELD_NUMBER;
926849
hash = (53 * hash) + getLoggingSettings().hashCode();
927850
}
928-
hash = (29 * hash) + unknownFields.hashCode();
851+
hash = (29 * hash) + getUnknownFields().hashCode();
929852
memoizedHashCode = hash;
930853
return hash;
931854
}
@@ -1062,17 +985,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1062985
}
1063986

1064987
// Construct using com.google.cloud.dialogflow.cx.v3.AdvancedSettings.newBuilder()
1065-
private Builder() {
1066-
maybeForceBuilderInitialization();
1067-
}
988+
private Builder() {}
1068989

1069990
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1070991
super(parent);
1071-
maybeForceBuilderInitialization();
1072-
}
1073-
1074-
private void maybeForceBuilderInitialization() {
1075-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
1076992
}
1077993

1078994
@java.lang.Override
@@ -1169,7 +1085,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.AdvancedSettings othe
11691085
if (other.hasLoggingSettings()) {
11701086
mergeLoggingSettings(other.getLoggingSettings());
11711087
}
1172-
this.mergeUnknownFields(other.unknownFields);
1088+
this.mergeUnknownFields(other.getUnknownFields());
11731089
onChanged();
11741090
return this;
11751091
}
@@ -1184,18 +1100,37 @@ public Builder mergeFrom(
11841100
com.google.protobuf.CodedInputStream input,
11851101
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11861102
throws java.io.IOException {
1187-
com.google.cloud.dialogflow.cx.v3.AdvancedSettings parsedMessage = null;
1103+
if (extensionRegistry == null) {
1104+
throw new java.lang.NullPointerException();
1105+
}
11881106
try {
1189-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1107+
boolean done = false;
1108+
while (!done) {
1109+
int tag = input.readTag();
1110+
switch (tag) {
1111+
case 0:
1112+
done = true;
1113+
break;
1114+
case 50:
1115+
{
1116+
input.readMessage(getLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry);
1117+
1118+
break;
1119+
} // case 50
1120+
default:
1121+
{
1122+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1123+
done = true; // was an endgroup tag
1124+
}
1125+
break;
1126+
} // default:
1127+
} // switch (tag)
1128+
} // while (!done)
11901129
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1191-
parsedMessage =
1192-
(com.google.cloud.dialogflow.cx.v3.AdvancedSettings) e.getUnfinishedMessage();
11931130
throw e.unwrapIOException();
11941131
} finally {
1195-
if (parsedMessage != null) {
1196-
mergeFrom(parsedMessage);
1197-
}
1198-
}
1132+
onChanged();
1133+
} // finally
11991134
return this;
12001135
}
12011136

@@ -1470,7 +1405,18 @@ public AdvancedSettings parsePartialFrom(
14701405
com.google.protobuf.CodedInputStream input,
14711406
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
14721407
throws com.google.protobuf.InvalidProtocolBufferException {
1473-
return new AdvancedSettings(input, extensionRegistry);
1408+
Builder builder = newBuilder();
1409+
try {
1410+
builder.mergeFrom(input, extensionRegistry);
1411+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1412+
throw e.setUnfinishedMessage(builder.buildPartial());
1413+
} catch (com.google.protobuf.UninitializedMessageException e) {
1414+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1415+
} catch (java.io.IOException e) {
1416+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1417+
.setUnfinishedMessage(builder.buildPartial());
1418+
}
1419+
return builder.buildPartial();
14741420
}
14751421
};
14761422

0 commit comments

Comments
 (0)