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/kms/v1/service.proto 18 19 package com.google.cloud.kms.v1; 20 21 public interface CreateKeyRingRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CreateKeyRingRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. The resource name of the location associated with the 31 * [KeyRings][google.cloud.kms.v1.KeyRing], in the format 32 * `projects/*/locations/*`. 33 * </pre> 34 * 35 * <code> 36 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 37 * </code> 38 * 39 * @return The parent. 40 */ getParent()41 java.lang.String getParent(); 42 /** 43 * 44 * 45 * <pre> 46 * Required. The resource name of the location associated with the 47 * [KeyRings][google.cloud.kms.v1.KeyRing], in the format 48 * `projects/*/locations/*`. 49 * </pre> 50 * 51 * <code> 52 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 53 * </code> 54 * 55 * @return The bytes for parent. 56 */ getParentBytes()57 com.google.protobuf.ByteString getParentBytes(); 58 59 /** 60 * 61 * 62 * <pre> 63 * Required. It must be unique within a location and match the regular 64 * expression `[a-zA-Z0-9_-]{1,63}` 65 * </pre> 66 * 67 * <code>string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> 68 * 69 * @return The keyRingId. 70 */ getKeyRingId()71 java.lang.String getKeyRingId(); 72 /** 73 * 74 * 75 * <pre> 76 * Required. It must be unique within a location and match the regular 77 * expression `[a-zA-Z0-9_-]{1,63}` 78 * </pre> 79 * 80 * <code>string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> 81 * 82 * @return The bytes for keyRingId. 83 */ getKeyRingIdBytes()84 com.google.protobuf.ByteString getKeyRingIdBytes(); 85 86 /** 87 * 88 * 89 * <pre> 90 * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field 91 * values. 92 * </pre> 93 * 94 * <code>.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; 95 * </code> 96 * 97 * @return Whether the keyRing field is set. 98 */ hasKeyRing()99 boolean hasKeyRing(); 100 /** 101 * 102 * 103 * <pre> 104 * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field 105 * values. 106 * </pre> 107 * 108 * <code>.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; 109 * </code> 110 * 111 * @return The keyRing. 112 */ getKeyRing()113 com.google.cloud.kms.v1.KeyRing getKeyRing(); 114 /** 115 * 116 * 117 * <pre> 118 * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field 119 * values. 120 * </pre> 121 * 122 * <code>.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; 123 * </code> 124 */ getKeyRingOrBuilder()125 com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingOrBuilder(); 126 } 127