publicfinalclass CancelLeaseRequestextendsGeneratedMessageV3implementsCancelLeaseRequestOrBuilder
Request message for canceling a lease using
CancelLease.
Protobuf type google.cloud.tasks.v2beta2.CancelLeaseRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
RESPONSE_VIEW_FIELD_NUMBER
publicstaticfinalintRESPONSE_VIEW_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SCHEDULE_TIME_FIELD_NUMBER
publicstaticfinalintSCHEDULE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticCancelLeaseRequestgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticCancelLeaseRequest.BuildernewBuilder()
newBuilder(CancelLeaseRequest prototype)
publicstaticCancelLeaseRequest.BuildernewBuilder(CancelLeaseRequestprototype)
publicstaticCancelLeaseRequestparseDelimitedFrom(InputStreaminput)
publicstaticCancelLeaseRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticCancelLeaseRequestparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticCancelLeaseRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticCancelLeaseRequestparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticCancelLeaseRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticCancelLeaseRequestparseFrom(CodedInputStreaminput)
publicstaticCancelLeaseRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticCancelLeaseRequestparseFrom(InputStreaminput)
publicstaticCancelLeaseRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticCancelLeaseRequestparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticCancelLeaseRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<CancelLeaseRequest>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicCancelLeaseRequestgetDefaultInstanceForType()
getName()
Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
publicByteStringgetNameBytes()
Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
publicParser<CancelLeaseRequest>getParserForType()
Overrides
getResponseView()
publicTask.ViewgetResponseView()
The response_view specifies which subset of the
Task will be returned.
By default response_view is
BASIC; 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.
Authorization for FULL
requires cloudtasks.tasks.fullView Google
IAM permission on the
Task resource.
.google.cloud.tasks.v2beta2.Task.View response_view = 3;
| Returns |
| Type |
Description |
Task.View |
The responseView.
|
getResponseViewValue()
publicintgetResponseViewValue()
The response_view specifies which subset of the
Task will be returned.
By default response_view is
BASIC; 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.
Authorization for FULL
requires cloudtasks.tasks.fullView Google
IAM permission on the
Task resource.
.google.cloud.tasks.v2beta2.Task.View response_view = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for responseView.
|
getScheduleTime()
publicTimestampgetScheduleTime()
Required. The task's current schedule time, available in the
schedule_time returned by
LeaseTasks response or
RenewLease response.
This restriction is to ensure that your worker currently holds the lease.
.google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Timestamp |
The scheduleTime.
|
getScheduleTimeOrBuilder()
publicTimestampOrBuildergetScheduleTimeOrBuilder()
Required. The task's current schedule time, available in the
schedule_time returned by
LeaseTasks response or
RenewLease response.
This restriction is to ensure that your worker currently holds the lease.
.google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED];
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hasScheduleTime()
publicbooleanhasScheduleTime()
Required. The task's current schedule time, available in the
schedule_time returned by
LeaseTasks response or
RenewLease response.
This restriction is to ensure that your worker currently holds the lease.
.google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the scheduleTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicCancelLeaseRequest.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedCancelLeaseRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicCancelLeaseRequest.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides