Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/longrunning/operations.proto
package com.alibaba.nacos.shaded.com.google.longrunning;
/**
*
*
*
* The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
*
*
* Protobuf type {@code google.longrunning.CancelOperationRequest}
*/
public final class CancelOperationRequest extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.longrunning.CancelOperationRequest)
CancelOperationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CancelOperationRequest.newBuilder() to construct.
private CancelOperationRequest(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CancelOperationRequest() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CancelOperationRequest();
}
@java.lang.Override
public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.alibaba.nacos.shaded.com.google.longrunning.OperationsProto
.internal_static_google_longrunning_CancelOperationRequest_descriptor;
}
@java.lang.Override
protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.nacos.shaded.com.google.longrunning.OperationsProto
.internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.nacos.shaded.com.google.longrunning.CancelOperationRequest.class,
com.alibaba.nacos.shaded.com.google.longrunning.CancelOperationRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The name of the operation resource to be cancelled.
*
* The name of the operation resource to be cancelled.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.alibaba.nacos.shaded.com.google.protobuf.ByteString b =
com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the operation resource to be cancelled.
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name of the operation resource to be cancelled.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the operation resource to be cancelled.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.longrunning.CancelOperationRequest)
}
// @@protoc_insertion_point(class_scope:google.longrunning.CancelOperationRequest)
private static final com.alibaba.nacos.shaded.com.google.longrunning.CancelOperationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.longrunning.CancelOperationRequest();
}
public static com.alibaba.nacos.shaded.com.google.longrunning.CancelOperationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER =
new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public CancelOperationRequest parsePartialFrom(
com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input,
com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.alibaba.nacos.shaded.com.google.longrunning.CancelOperationRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}