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/tasks/v2/cloudtasks.proto 18 19 package com.google.cloud.tasks.v2; 20 21 public interface RunTaskRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.RunTaskRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. The task name. For example: 31 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 32 * </pre> 33 * 34 * <code> 35 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 36 * </code> 37 * 38 * @return The name. 39 */ getName()40 java.lang.String getName(); 41 /** 42 * 43 * 44 * <pre> 45 * Required. The task name. For example: 46 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 47 * </pre> 48 * 49 * <code> 50 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 51 * </code> 52 * 53 * @return The bytes for name. 54 */ getNameBytes()55 com.google.protobuf.ByteString getNameBytes(); 56 57 /** 58 * 59 * 60 * <pre> 61 * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be 62 * returned. 63 * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all 64 * information is retrieved by default because some data, such as 65 * payloads, might be desirable to return only when needed because 66 * of its large size or because of the sensitivity of data that it 67 * contains. 68 * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires 69 * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) 70 * permission on the [Task][google.cloud.tasks.v2.Task] resource. 71 * </pre> 72 * 73 * <code>.google.cloud.tasks.v2.Task.View response_view = 2;</code> 74 * 75 * @return The enum numeric value on the wire for responseView. 76 */ getResponseViewValue()77 int getResponseViewValue(); 78 /** 79 * 80 * 81 * <pre> 82 * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be 83 * returned. 84 * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all 85 * information is retrieved by default because some data, such as 86 * payloads, might be desirable to return only when needed because 87 * of its large size or because of the sensitivity of data that it 88 * contains. 89 * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires 90 * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) 91 * permission on the [Task][google.cloud.tasks.v2.Task] resource. 92 * </pre> 93 * 94 * <code>.google.cloud.tasks.v2.Task.View response_view = 2;</code> 95 * 96 * @return The responseView. 97 */ getResponseView()98 com.google.cloud.tasks.v2.Task.View getResponseView(); 99 } 100