@@ -163,6 +163,31 @@ public interface ContinuousValidationPodEventOrBuilder
163
163
// @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent)
164
164
com .google .protobuf .MessageOrBuilder {
165
165
166
+ /**
167
+ *
168
+ *
169
+ * <pre>
170
+ * The k8s namespace of the Pod.
171
+ * </pre>
172
+ *
173
+ * <code>string pod_namespace = 7;</code>
174
+ *
175
+ * @return The podNamespace.
176
+ */
177
+ java .lang .String getPodNamespace ();
178
+ /**
179
+ *
180
+ *
181
+ * <pre>
182
+ * The k8s namespace of the Pod.
183
+ * </pre>
184
+ *
185
+ * <code>string pod_namespace = 7;</code>
186
+ *
187
+ * @return The bytes for podNamespace.
188
+ */
189
+ com .google .protobuf .ByteString getPodNamespaceBytes ();
190
+
166
191
/**
167
192
*
168
193
*
@@ -384,6 +409,7 @@ private ContinuousValidationPodEvent(
384
409
}
385
410
386
411
private ContinuousValidationPodEvent () {
412
+ podNamespace_ = "" ;
387
413
pod_ = "" ;
388
414
verdict_ = 0 ;
389
415
images_ = java .util .Collections .emptyList ();
@@ -479,6 +505,13 @@ private ContinuousValidationPodEvent(
479
505
extensionRegistry ));
480
506
break ;
481
507
}
508
+ case 58 :
509
+ {
510
+ java .lang .String s = input .readStringRequireUtf8 ();
511
+
512
+ podNamespace_ = s ;
513
+ break ;
514
+ }
482
515
default :
483
516
{
484
517
if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
@@ -1977,6 +2010,55 @@ public com.google.protobuf.Parser<ImageDetails> getParserForType() {
1977
2010
}
1978
2011
}
1979
2012
2013
+ public static final int POD_NAMESPACE_FIELD_NUMBER = 7 ;
2014
+ private volatile java .lang .Object podNamespace_ ;
2015
+ /**
2016
+ *
2017
+ *
2018
+ * <pre>
2019
+ * The k8s namespace of the Pod.
2020
+ * </pre>
2021
+ *
2022
+ * <code>string pod_namespace = 7;</code>
2023
+ *
2024
+ * @return The podNamespace.
2025
+ */
2026
+ @ java .lang .Override
2027
+ public java .lang .String getPodNamespace () {
2028
+ java .lang .Object ref = podNamespace_ ;
2029
+ if (ref instanceof java .lang .String ) {
2030
+ return (java .lang .String ) ref ;
2031
+ } else {
2032
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
2033
+ java .lang .String s = bs .toStringUtf8 ();
2034
+ podNamespace_ = s ;
2035
+ return s ;
2036
+ }
2037
+ }
2038
+ /**
2039
+ *
2040
+ *
2041
+ * <pre>
2042
+ * The k8s namespace of the Pod.
2043
+ * </pre>
2044
+ *
2045
+ * <code>string pod_namespace = 7;</code>
2046
+ *
2047
+ * @return The bytes for podNamespace.
2048
+ */
2049
+ @ java .lang .Override
2050
+ public com .google .protobuf .ByteString getPodNamespaceBytes () {
2051
+ java .lang .Object ref = podNamespace_ ;
2052
+ if (ref instanceof java .lang .String ) {
2053
+ com .google .protobuf .ByteString b =
2054
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
2055
+ podNamespace_ = b ;
2056
+ return b ;
2057
+ } else {
2058
+ return (com .google .protobuf .ByteString ) ref ;
2059
+ }
2060
+ }
2061
+
1980
2062
public static final int POD_FIELD_NUMBER = 1 ;
1981
2063
private volatile java .lang .Object pod_ ;
1982
2064
/**
@@ -2291,6 +2373,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
2291
2373
for (int i = 0 ; i < images_ .size (); i ++) {
2292
2374
output .writeMessage (5 , images_ .get (i ));
2293
2375
}
2376
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (podNamespace_ )) {
2377
+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 7 , podNamespace_ );
2378
+ }
2294
2379
unknownFields .writeTo (output );
2295
2380
}
2296
2381
@@ -2319,6 +2404,9 @@ public int getSerializedSize() {
2319
2404
for (int i = 0 ; i < images_ .size (); i ++) {
2320
2405
size += com .google .protobuf .CodedOutputStream .computeMessageSize (5 , images_ .get (i ));
2321
2406
}
2407
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (podNamespace_ )) {
2408
+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (7 , podNamespace_ );
2409
+ }
2322
2410
size += unknownFields .getSerializedSize ();
2323
2411
memoizedSize = size ;
2324
2412
return size ;
@@ -2342,6 +2430,7 @@ public boolean equals(final java.lang.Object obj) {
2342
2430
.ContinuousValidationPodEvent )
2343
2431
obj ;
2344
2432
2433
+ if (!getPodNamespace ().equals (other .getPodNamespace ())) return false ;
2345
2434
if (!getPod ().equals (other .getPod ())) return false ;
2346
2435
if (hasDeployTime () != other .hasDeployTime ()) return false ;
2347
2436
if (hasDeployTime ()) {
@@ -2364,6 +2453,8 @@ public int hashCode() {
2364
2453
}
2365
2454
int hash = 41 ;
2366
2455
hash = (19 * hash ) + getDescriptor ().hashCode ();
2456
+ hash = (37 * hash ) + POD_NAMESPACE_FIELD_NUMBER ;
2457
+ hash = (53 * hash ) + getPodNamespace ().hashCode ();
2367
2458
hash = (37 * hash ) + POD_FIELD_NUMBER ;
2368
2459
hash = (53 * hash ) + getPod ().hashCode ();
2369
2460
if (hasDeployTime ()) {
@@ -2555,6 +2646,8 @@ private void maybeForceBuilderInitialization() {
2555
2646
@ java .lang .Override
2556
2647
public Builder clear () {
2557
2648
super .clear ();
2649
+ podNamespace_ = "" ;
2650
+
2558
2651
pod_ = "" ;
2559
2652
2560
2653
if (deployTimeBuilder_ == null ) {
@@ -2617,6 +2710,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2617
2710
new com .google .cloud .binaryauthorization .v1beta1 .ContinuousValidationEvent
2618
2711
.ContinuousValidationPodEvent (this );
2619
2712
int from_bitField0_ = bitField0_ ;
2713
+ result .podNamespace_ = podNamespace_ ;
2620
2714
result .pod_ = pod_ ;
2621
2715
if (deployTimeBuilder_ == null ) {
2622
2716
result .deployTime_ = deployTime_ ;
@@ -2700,6 +2794,10 @@ public Builder mergeFrom(
2700
2794
if (other
2701
2795
== com .google .cloud .binaryauthorization .v1beta1 .ContinuousValidationEvent
2702
2796
.ContinuousValidationPodEvent .getDefaultInstance ()) return this ;
2797
+ if (!other .getPodNamespace ().isEmpty ()) {
2798
+ podNamespace_ = other .podNamespace_ ;
2799
+ onChanged ();
2800
+ }
2703
2801
if (!other .getPod ().isEmpty ()) {
2704
2802
pod_ = other .pod_ ;
2705
2803
onChanged ();
@@ -2776,6 +2874,112 @@ public Builder mergeFrom(
2776
2874
2777
2875
private int bitField0_ ;
2778
2876
2877
+ private java .lang .Object podNamespace_ = "" ;
2878
+ /**
2879
+ *
2880
+ *
2881
+ * <pre>
2882
+ * The k8s namespace of the Pod.
2883
+ * </pre>
2884
+ *
2885
+ * <code>string pod_namespace = 7;</code>
2886
+ *
2887
+ * @return The podNamespace.
2888
+ */
2889
+ public java .lang .String getPodNamespace () {
2890
+ java .lang .Object ref = podNamespace_ ;
2891
+ if (!(ref instanceof java .lang .String )) {
2892
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
2893
+ java .lang .String s = bs .toStringUtf8 ();
2894
+ podNamespace_ = s ;
2895
+ return s ;
2896
+ } else {
2897
+ return (java .lang .String ) ref ;
2898
+ }
2899
+ }
2900
+ /**
2901
+ *
2902
+ *
2903
+ * <pre>
2904
+ * The k8s namespace of the Pod.
2905
+ * </pre>
2906
+ *
2907
+ * <code>string pod_namespace = 7;</code>
2908
+ *
2909
+ * @return The bytes for podNamespace.
2910
+ */
2911
+ public com .google .protobuf .ByteString getPodNamespaceBytes () {
2912
+ java .lang .Object ref = podNamespace_ ;
2913
+ if (ref instanceof String ) {
2914
+ com .google .protobuf .ByteString b =
2915
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
2916
+ podNamespace_ = b ;
2917
+ return b ;
2918
+ } else {
2919
+ return (com .google .protobuf .ByteString ) ref ;
2920
+ }
2921
+ }
2922
+ /**
2923
+ *
2924
+ *
2925
+ * <pre>
2926
+ * The k8s namespace of the Pod.
2927
+ * </pre>
2928
+ *
2929
+ * <code>string pod_namespace = 7;</code>
2930
+ *
2931
+ * @param value The podNamespace to set.
2932
+ * @return This builder for chaining.
2933
+ */
2934
+ public Builder setPodNamespace (java .lang .String value ) {
2935
+ if (value == null ) {
2936
+ throw new NullPointerException ();
2937
+ }
2938
+
2939
+ podNamespace_ = value ;
2940
+ onChanged ();
2941
+ return this ;
2942
+ }
2943
+ /**
2944
+ *
2945
+ *
2946
+ * <pre>
2947
+ * The k8s namespace of the Pod.
2948
+ * </pre>
2949
+ *
2950
+ * <code>string pod_namespace = 7;</code>
2951
+ *
2952
+ * @return This builder for chaining.
2953
+ */
2954
+ public Builder clearPodNamespace () {
2955
+
2956
+ podNamespace_ = getDefaultInstance ().getPodNamespace ();
2957
+ onChanged ();
2958
+ return this ;
2959
+ }
2960
+ /**
2961
+ *
2962
+ *
2963
+ * <pre>
2964
+ * The k8s namespace of the Pod.
2965
+ * </pre>
2966
+ *
2967
+ * <code>string pod_namespace = 7;</code>
2968
+ *
2969
+ * @param value The bytes for podNamespace to set.
2970
+ * @return This builder for chaining.
2971
+ */
2972
+ public Builder setPodNamespaceBytes (com .google .protobuf .ByteString value ) {
2973
+ if (value == null ) {
2974
+ throw new NullPointerException ();
2975
+ }
2976
+ checkByteStringIsUtf8 (value );
2977
+
2978
+ podNamespace_ = value ;
2979
+ onChanged ();
2980
+ return this ;
2981
+ }
2982
+
2779
2983
private java .lang .Object pod_ = "" ;
2780
2984
/**
2781
2985
*
0 commit comments