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/secretmanager/v1/resources.proto 18 19 package com.google.cloud.secretmanager.v1; 20 21 public interface TopicOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Topic) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. The resource name of the Pub/Sub topic that will be published to, 31 * in the following format: `projects/*/topics/*`. For publication to succeed, 32 * the Secret Manager P4SA must have `pubsub.publisher` permissions on the 33 * topic. 34 * </pre> 35 * 36 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 37 * 38 * @return The name. 39 */ getName()40 java.lang.String getName(); 41 /** 42 * 43 * 44 * <pre> 45 * Required. The resource name of the Pub/Sub topic that will be published to, 46 * in the following format: `projects/*/topics/*`. For publication to succeed, 47 * the Secret Manager P4SA must have `pubsub.publisher` permissions on the 48 * topic. 49 * </pre> 50 * 51 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 52 * 53 * @return The bytes for name. 54 */ getNameBytes()55 com.google.protobuf.ByteString getNameBytes(); 56 } 57