• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
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  *     https://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 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/privacy/dlp/v2/dlp.proto
18 
19 package com.google.privacy.dlp.v2;
20 
21 public interface DateShiftConfigOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DateShiftConfig)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Required. Range of shift in days. Actual shift will be selected at random within this
31    * range (inclusive ends). Negative means shift to earlier in time. Must not
32    * be more than 365250 days (1000 years) each direction.
33    * For example, 3 means shift date to at most 3 days into the future.
34    * </pre>
35    *
36    * <code>int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED];</code>
37    *
38    * @return The upperBoundDays.
39    */
getUpperBoundDays()40   int getUpperBoundDays();
41 
42   /**
43    *
44    *
45    * <pre>
46    * Required. For example, -5 means shift date to at most 5 days back in the past.
47    * </pre>
48    *
49    * <code>int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED];</code>
50    *
51    * @return The lowerBoundDays.
52    */
getLowerBoundDays()53   int getLowerBoundDays();
54 
55   /**
56    *
57    *
58    * <pre>
59    * Points to the field that contains the context, for example, an entity id.
60    * If set, must also set cryptoKey. If set, shift will be consistent for the
61    * given context.
62    * </pre>
63    *
64    * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
65    *
66    * @return Whether the context field is set.
67    */
hasContext()68   boolean hasContext();
69   /**
70    *
71    *
72    * <pre>
73    * Points to the field that contains the context, for example, an entity id.
74    * If set, must also set cryptoKey. If set, shift will be consistent for the
75    * given context.
76    * </pre>
77    *
78    * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
79    *
80    * @return The context.
81    */
getContext()82   com.google.privacy.dlp.v2.FieldId getContext();
83   /**
84    *
85    *
86    * <pre>
87    * Points to the field that contains the context, for example, an entity id.
88    * If set, must also set cryptoKey. If set, shift will be consistent for the
89    * given context.
90    * </pre>
91    *
92    * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
93    */
getContextOrBuilder()94   com.google.privacy.dlp.v2.FieldIdOrBuilder getContextOrBuilder();
95 
96   /**
97    *
98    *
99    * <pre>
100    * Causes the shift to be computed based on this key and the context. This
101    * results in the same shift for the same context and crypto_key. If
102    * set, must also set context. Can only be applied to table items.
103    * </pre>
104    *
105    * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
106    *
107    * @return Whether the cryptoKey field is set.
108    */
hasCryptoKey()109   boolean hasCryptoKey();
110   /**
111    *
112    *
113    * <pre>
114    * Causes the shift to be computed based on this key and the context. This
115    * results in the same shift for the same context and crypto_key. If
116    * set, must also set context. Can only be applied to table items.
117    * </pre>
118    *
119    * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
120    *
121    * @return The cryptoKey.
122    */
getCryptoKey()123   com.google.privacy.dlp.v2.CryptoKey getCryptoKey();
124   /**
125    *
126    *
127    * <pre>
128    * Causes the shift to be computed based on this key and the context. This
129    * results in the same shift for the same context and crypto_key. If
130    * set, must also set context. Can only be applied to table items.
131    * </pre>
132    *
133    * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
134    */
getCryptoKeyOrBuilder()135   com.google.privacy.dlp.v2.CryptoKeyOrBuilder getCryptoKeyOrBuilder();
136 
getMethodCase()137   public com.google.privacy.dlp.v2.DateShiftConfig.MethodCase getMethodCase();
138 }
139