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 2024 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/cloud/translate/v3beta1/translation_service.proto
// Protobuf Java Version: 3.25.2
package com.google.cloud.translate.v3beta1;
/**
*
*
*
* Stored in the
* [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
* field returned by DeleteGlossary.
*
*
* Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
*/
public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
DeleteGlossaryMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteGlossaryMetadata.newBuilder() to construct.
private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteGlossaryMetadata() {
name_ = "";
state_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeleteGlossaryMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.translate.v3beta1.TranslationServiceProto
.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.translate.v3beta1.TranslationServiceProto
.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
}
/**
*
*
*
* Enumerates the possible states that the creation request can be in.
*
*
* Protobuf enum {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Request is being processed.
*
*
* RUNNING = 1;
*/
public static final int RUNNING_VALUE = 1;
/**
*
*
*
* The glossary was successfully deleted.
*
*
* SUCCEEDED = 2;
*/
public static final int SUCCEEDED_VALUE = 2;
/**
*
*
*
* Failed to delete the glossary.
*
*
* FAILED = 3;
*/
public static final int FAILED_VALUE = 3;
/**
*
*
*
* Request is in the process of being canceled after caller invoked
* longrunning.Operations.CancelOperation on the request id.
*
*
* CANCELLING = 4;
*/
public static final int CANCELLING_VALUE = 4;
/**
*
*
*
* The glossary deletion request was successfully canceled.
*
*
* CANCELLED = 5;
*/
public static final int CANCELLED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return RUNNING;
case 2:
return SUCCEEDED;
case 3:
return FAILED;
case 4:
return CANCELLING;
case 5:
return CANCELLED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The name of the glossary that is being deleted.
*
* The name of the glossary that is being deleted.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 2;
private int state_ = 0;
/**
*
*
*
* The current state of the glossary deletion operation.
*
*
* .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* The current state of the glossary deletion operation.
*
*
* .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() {
com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result =
com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_);
return result == null
? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED
: result;
}
public static final int SUBMIT_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp submitTime_;
/**
*
*
*
* The time when the operation was submitted to the server.
*
*
* .google.protobuf.Timestamp submit_time = 3;
*
* @return Whether the submitTime field is set.
*/
@java.lang.Override
public boolean hasSubmitTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The time when the operation was submitted to the server.
*
* The name of the glossary that is being deleted.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the glossary that is being deleted.
*
*
* 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 glossary that is being deleted.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the glossary that is being deleted.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* The current state of the glossary deletion operation.
*
*
* .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* The current state of the glossary deletion operation.
*
*
* .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2;
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The current state of the glossary deletion operation.
*
*
* .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() {
com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result =
com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_);
return result == null
? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* The current state of the glossary deletion operation.
*
*
* .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2;
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The current state of the glossary deletion operation.
*