public static enum Task.View extends Enum<Task.View> implements com.google.protobuf.ProtocolMessageEnum
The view specifies a subset of [Task][google.cloud.tasks.v2.Task] data. When a task is returned in a response, not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.Protobuf enum
google.cloud.tasks.v2.Task.View| Enum Constant and Description |
|---|
BASIC
The basic view omits fields which can be large or can contain
sensitive data.
|
FULL
All information is returned.
|
UNRECOGNIZED |
VIEW_UNSPECIFIED
Unspecified.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_VALUE
The basic view omits fields which can be large or can contain
sensitive data.
|
static int |
FULL_VALUE
All information is returned.
|
static int |
VIEW_UNSPECIFIED_VALUE
Unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static Task.View |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Task.View> |
internalGetValueMap() |
static Task.View |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Task.View |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Task.View |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Task.View[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Task.View VIEW_UNSPECIFIED
Unspecified. Defaults to BASIC.
VIEW_UNSPECIFIED = 0;public static final Task.View BASIC
The basic view omits fields which can be large or can contain sensitive data. This view does not include the [body in AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body]. Bodies are desirable to return only when needed, because they can be large and because of the sensitivity of the data that you choose to store in it.
BASIC = 1;public static final Task.View FULL
All information is returned. Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Queue][google.cloud.tasks.v2.Queue] resource.
FULL = 2;public static final Task.View UNRECOGNIZED
public static final int VIEW_UNSPECIFIED_VALUE
Unspecified. Defaults to BASIC.
VIEW_UNSPECIFIED = 0;public static final int BASIC_VALUE
The basic view omits fields which can be large or can contain sensitive data. This view does not include the [body in AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body]. Bodies are desirable to return only when needed, because they can be large and because of the sensitivity of the data that you choose to store in it.
BASIC = 1;public static final int FULL_VALUE
All information is returned. Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Queue][google.cloud.tasks.v2.Queue] resource.
FULL = 2;public static Task.View[] values()
for (Task.View c : Task.View.values()) System.out.println(c);
public static Task.View valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Task.View valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Task.View forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Task.View> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Task.View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.