• 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/cloud/orgpolicy/v1/orgpolicy.proto
18 
19 package com.google.cloud.orgpolicy.v1;
20 
21 public interface PolicyOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.orgpolicy.v1.Policy)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Version of the `Policy`. Default version is 0;
31    * </pre>
32    *
33    * <code>int32 version = 1;</code>
34    *
35    * @return The version.
36    */
getVersion()37   int getVersion();
38 
39   /**
40    *
41    *
42    * <pre>
43    * The name of the `Constraint` the `Policy` is configuring, for example,
44    * `constraints/serviceuser.services`.
45    * Immutable after creation.
46    * </pre>
47    *
48    * <code>string constraint = 2;</code>
49    *
50    * @return The constraint.
51    */
getConstraint()52   java.lang.String getConstraint();
53   /**
54    *
55    *
56    * <pre>
57    * The name of the `Constraint` the `Policy` is configuring, for example,
58    * `constraints/serviceuser.services`.
59    * Immutable after creation.
60    * </pre>
61    *
62    * <code>string constraint = 2;</code>
63    *
64    * @return The bytes for constraint.
65    */
getConstraintBytes()66   com.google.protobuf.ByteString getConstraintBytes();
67 
68   /**
69    *
70    *
71    * <pre>
72    * An opaque tag indicating the current version of the `Policy`, used for
73    * concurrency control.
74    * When the `Policy` is returned from either a `GetPolicy` or a
75    * `ListOrgPolicy` request, this `etag` indicates the version of the current
76    * `Policy` to use when executing a read-modify-write loop.
77    * When the `Policy` is returned from a `GetEffectivePolicy` request, the
78    * `etag` will be unset.
79    * When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
80    * that was returned from a `GetOrgPolicy` request as part of a
81    * read-modify-write loop for concurrency control. Not setting the `etag`in a
82    * `SetOrgPolicy` request will result in an unconditional write of the
83    * `Policy`.
84    * </pre>
85    *
86    * <code>bytes etag = 3;</code>
87    *
88    * @return The etag.
89    */
getEtag()90   com.google.protobuf.ByteString getEtag();
91 
92   /**
93    *
94    *
95    * <pre>
96    * The time stamp the `Policy` was previously updated. This is set by the
97    * server, not specified by the caller, and represents the last time a call to
98    * `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
99    * be ignored.
100    * </pre>
101    *
102    * <code>.google.protobuf.Timestamp update_time = 4;</code>
103    *
104    * @return Whether the updateTime field is set.
105    */
hasUpdateTime()106   boolean hasUpdateTime();
107   /**
108    *
109    *
110    * <pre>
111    * The time stamp the `Policy` was previously updated. This is set by the
112    * server, not specified by the caller, and represents the last time a call to
113    * `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
114    * be ignored.
115    * </pre>
116    *
117    * <code>.google.protobuf.Timestamp update_time = 4;</code>
118    *
119    * @return The updateTime.
120    */
getUpdateTime()121   com.google.protobuf.Timestamp getUpdateTime();
122   /**
123    *
124    *
125    * <pre>
126    * The time stamp the `Policy` was previously updated. This is set by the
127    * server, not specified by the caller, and represents the last time a call to
128    * `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
129    * be ignored.
130    * </pre>
131    *
132    * <code>.google.protobuf.Timestamp update_time = 4;</code>
133    */
getUpdateTimeOrBuilder()134   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
135 
136   /**
137    *
138    *
139    * <pre>
140    * List of values either allowed or disallowed.
141    * </pre>
142    *
143    * <code>.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;</code>
144    *
145    * @return Whether the listPolicy field is set.
146    */
hasListPolicy()147   boolean hasListPolicy();
148   /**
149    *
150    *
151    * <pre>
152    * List of values either allowed or disallowed.
153    * </pre>
154    *
155    * <code>.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;</code>
156    *
157    * @return The listPolicy.
158    */
getListPolicy()159   com.google.cloud.orgpolicy.v1.Policy.ListPolicy getListPolicy();
160   /**
161    *
162    *
163    * <pre>
164    * List of values either allowed or disallowed.
165    * </pre>
166    *
167    * <code>.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;</code>
168    */
getListPolicyOrBuilder()169   com.google.cloud.orgpolicy.v1.Policy.ListPolicyOrBuilder getListPolicyOrBuilder();
170 
171   /**
172    *
173    *
174    * <pre>
175    * For boolean `Constraints`, whether to enforce the `Constraint` or not.
176    * </pre>
177    *
178    * <code>.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;</code>
179    *
180    * @return Whether the booleanPolicy field is set.
181    */
hasBooleanPolicy()182   boolean hasBooleanPolicy();
183   /**
184    *
185    *
186    * <pre>
187    * For boolean `Constraints`, whether to enforce the `Constraint` or not.
188    * </pre>
189    *
190    * <code>.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;</code>
191    *
192    * @return The booleanPolicy.
193    */
getBooleanPolicy()194   com.google.cloud.orgpolicy.v1.Policy.BooleanPolicy getBooleanPolicy();
195   /**
196    *
197    *
198    * <pre>
199    * For boolean `Constraints`, whether to enforce the `Constraint` or not.
200    * </pre>
201    *
202    * <code>.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;</code>
203    */
getBooleanPolicyOrBuilder()204   com.google.cloud.orgpolicy.v1.Policy.BooleanPolicyOrBuilder getBooleanPolicyOrBuilder();
205 
206   /**
207    *
208    *
209    * <pre>
210    * Restores the default behavior of the constraint; independent of
211    * `Constraint` type.
212    * </pre>
213    *
214    * <code>.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;</code>
215    *
216    * @return Whether the restoreDefault field is set.
217    */
hasRestoreDefault()218   boolean hasRestoreDefault();
219   /**
220    *
221    *
222    * <pre>
223    * Restores the default behavior of the constraint; independent of
224    * `Constraint` type.
225    * </pre>
226    *
227    * <code>.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;</code>
228    *
229    * @return The restoreDefault.
230    */
getRestoreDefault()231   com.google.cloud.orgpolicy.v1.Policy.RestoreDefault getRestoreDefault();
232   /**
233    *
234    *
235    * <pre>
236    * Restores the default behavior of the constraint; independent of
237    * `Constraint` type.
238    * </pre>
239    *
240    * <code>.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;</code>
241    */
getRestoreDefaultOrBuilder()242   com.google.cloud.orgpolicy.v1.Policy.RestoreDefaultOrBuilder getRestoreDefaultOrBuilder();
243 
getPolicyTypeCase()244   public com.google.cloud.orgpolicy.v1.Policy.PolicyTypeCase getPolicyTypeCase();
245 }
246