public static enum Task.View extends Enum<Task.View> implements ProtocolMessageEnum
The view specifies a subset of [Task][google.cloud.tasks.v2beta3.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.v2beta3.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 Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Task.View> |
internalGetValueMap() |
static Task.View |
valueOf(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.v2beta3.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.v2beta3.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Queue][google.cloud.tasks.v2beta3.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.v2beta3.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.v2beta3.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Queue][google.cloud.tasks.v2beta3.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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<Task.View> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Task.View valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.