com.google.appengine.v1.OperationMetadataV1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Proto library for google-cloud-appengine-admin
/*
* 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/appengine/v1/operation.proto
// Protobuf Java Version: 3.25.5
package com.google.appengine.v1;
/**
*
*
*
* Metadata for the given [google.longrunning.Operation][google.longrunning.Operation].
*
*
* Protobuf type {@code google.appengine.v1.OperationMetadataV1}
*/
public final class OperationMetadataV1 extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.appengine.v1.OperationMetadataV1)
OperationMetadataV1OrBuilder {
private static final long serialVersionUID = 0L;
// Use OperationMetadataV1.newBuilder() to construct.
private OperationMetadataV1(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OperationMetadataV1() {
method_ = "";
user_ = "";
target_ = "";
ephemeralMessage_ = "";
warning_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OperationMetadataV1();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.appengine.v1.OperationProto
.internal_static_google_appengine_v1_OperationMetadataV1_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.v1.OperationProto
.internal_static_google_appengine_v1_OperationMetadataV1_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.v1.OperationMetadataV1.class,
com.google.appengine.v1.OperationMetadataV1.Builder.class);
}
private int bitField0_;
private int methodMetadataCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object methodMetadata_;
public enum MethodMetadataCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATE_VERSION_METADATA(8),
METHODMETADATA_NOT_SET(0);
private final int value;
private MethodMetadataCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MethodMetadataCase valueOf(int value) {
return forNumber(value);
}
public static MethodMetadataCase forNumber(int value) {
switch (value) {
case 8:
return CREATE_VERSION_METADATA;
case 0:
return METHODMETADATA_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public MethodMetadataCase getMethodMetadataCase() {
return MethodMetadataCase.forNumber(methodMetadataCase_);
}
public static final int METHOD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object method_ = "";
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @return The method.
*/
@java.lang.Override
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
method_ = s;
return s;
}
}
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @return The bytes for method.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSERT_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp insertTime_;
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*
* @return Whether the insertTime field is set.
*/
@java.lang.Override
public boolean hasInsertTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*
* @return The insertTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getInsertTime() {
return insertTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : insertTime_;
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getInsertTimeOrBuilder() {
return insertTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : insertTime_;
}
public static final int END_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp endTime_;
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*
* @return The endTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEndTime() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
public static final int USER_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object user_ = "";
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
}
}
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object target_ = "";
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
target_ = s;
return s;
}
}
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EPHEMERAL_MESSAGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object ephemeralMessage_ = "";
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @return The ephemeralMessage.
*/
@java.lang.Override
public java.lang.String getEphemeralMessage() {
java.lang.Object ref = ephemeralMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ephemeralMessage_ = s;
return s;
}
}
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @return The bytes for ephemeralMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEphemeralMessageBytes() {
java.lang.Object ref = ephemeralMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ephemeralMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WARNING_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList warning_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @return A list containing the warning.
*/
public com.google.protobuf.ProtocolStringList getWarningList() {
return warning_;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @return The count of warning.
*/
public int getWarningCount() {
return warning_.size();
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param index The index of the element to return.
* @return The warning at the given index.
*/
public java.lang.String getWarning(int index) {
return warning_.get(index);
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param index The index of the value to return.
* @return The bytes of the warning at the given index.
*/
public com.google.protobuf.ByteString getWarningBytes(int index) {
return warning_.getByteString(index);
}
public static final int CREATE_VERSION_METADATA_FIELD_NUMBER = 8;
/**
* .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*
* @return Whether the createVersionMetadata field is set.
*/
@java.lang.Override
public boolean hasCreateVersionMetadata() {
return methodMetadataCase_ == 8;
}
/**
* .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*
* @return The createVersionMetadata.
*/
@java.lang.Override
public com.google.appengine.v1.CreateVersionMetadataV1 getCreateVersionMetadata() {
if (methodMetadataCase_ == 8) {
return (com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_;
}
return com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance();
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
@java.lang.Override
public com.google.appengine.v1.CreateVersionMetadataV1OrBuilder
getCreateVersionMetadataOrBuilder() {
if (methodMetadataCase_ == 8) {
return (com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_;
}
return com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getInsertTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getEndTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ephemeralMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ephemeralMessage_);
}
for (int i = 0; i < warning_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, warning_.getRaw(i));
}
if (methodMetadataCase_ == 8) {
output.writeMessage(8, (com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInsertTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ephemeralMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ephemeralMessage_);
}
{
int dataSize = 0;
for (int i = 0; i < warning_.size(); i++) {
dataSize += computeStringSizeNoTag(warning_.getRaw(i));
}
size += dataSize;
size += 1 * getWarningList().size();
}
if (methodMetadataCase_ == 8) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
8, (com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.v1.OperationMetadataV1)) {
return super.equals(obj);
}
com.google.appengine.v1.OperationMetadataV1 other =
(com.google.appengine.v1.OperationMetadataV1) obj;
if (!getMethod().equals(other.getMethod())) return false;
if (hasInsertTime() != other.hasInsertTime()) return false;
if (hasInsertTime()) {
if (!getInsertTime().equals(other.getInsertTime())) return false;
}
if (hasEndTime() != other.hasEndTime()) return false;
if (hasEndTime()) {
if (!getEndTime().equals(other.getEndTime())) return false;
}
if (!getUser().equals(other.getUser())) return false;
if (!getTarget().equals(other.getTarget())) return false;
if (!getEphemeralMessage().equals(other.getEphemeralMessage())) return false;
if (!getWarningList().equals(other.getWarningList())) return false;
if (!getMethodMetadataCase().equals(other.getMethodMetadataCase())) return false;
switch (methodMetadataCase_) {
case 8:
if (!getCreateVersionMetadata().equals(other.getCreateVersionMetadata())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
if (hasInsertTime()) {
hash = (37 * hash) + INSERT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getInsertTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
hash = (37 * hash) + EPHEMERAL_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getEphemeralMessage().hashCode();
if (getWarningCount() > 0) {
hash = (37 * hash) + WARNING_FIELD_NUMBER;
hash = (53 * hash) + getWarningList().hashCode();
}
switch (methodMetadataCase_) {
case 8:
hash = (37 * hash) + CREATE_VERSION_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getCreateVersionMetadata().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.appengine.v1.OperationMetadataV1 parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.v1.OperationMetadataV1 parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.appengine.v1.OperationMetadataV1 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.v1.OperationMetadataV1 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Metadata for the given [google.longrunning.Operation][google.longrunning.Operation].
*
*
* Protobuf type {@code google.appengine.v1.OperationMetadataV1}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.appengine.v1.OperationMetadataV1)
com.google.appengine.v1.OperationMetadataV1OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.appengine.v1.OperationProto
.internal_static_google_appengine_v1_OperationMetadataV1_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.v1.OperationProto
.internal_static_google_appengine_v1_OperationMetadataV1_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.v1.OperationMetadataV1.class,
com.google.appengine.v1.OperationMetadataV1.Builder.class);
}
// Construct using com.google.appengine.v1.OperationMetadataV1.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getInsertTimeFieldBuilder();
getEndTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
method_ = "";
insertTime_ = null;
if (insertTimeBuilder_ != null) {
insertTimeBuilder_.dispose();
insertTimeBuilder_ = null;
}
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
user_ = "";
target_ = "";
ephemeralMessage_ = "";
warning_ = com.google.protobuf.LazyStringArrayList.emptyList();
if (createVersionMetadataBuilder_ != null) {
createVersionMetadataBuilder_.clear();
}
methodMetadataCase_ = 0;
methodMetadata_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.appengine.v1.OperationProto
.internal_static_google_appengine_v1_OperationMetadataV1_descriptor;
}
@java.lang.Override
public com.google.appengine.v1.OperationMetadataV1 getDefaultInstanceForType() {
return com.google.appengine.v1.OperationMetadataV1.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.v1.OperationMetadataV1 build() {
com.google.appengine.v1.OperationMetadataV1 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.v1.OperationMetadataV1 buildPartial() {
com.google.appengine.v1.OperationMetadataV1 result =
new com.google.appengine.v1.OperationMetadataV1(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.v1.OperationMetadataV1 result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.method_ = method_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.insertTime_ = insertTimeBuilder_ == null ? insertTime_ : insertTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.user_ = user_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.target_ = target_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.ephemeralMessage_ = ephemeralMessage_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
warning_.makeImmutable();
result.warning_ = warning_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.appengine.v1.OperationMetadataV1 result) {
result.methodMetadataCase_ = methodMetadataCase_;
result.methodMetadata_ = this.methodMetadata_;
if (methodMetadataCase_ == 8 && createVersionMetadataBuilder_ != null) {
result.methodMetadata_ = createVersionMetadataBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.v1.OperationMetadataV1) {
return mergeFrom((com.google.appengine.v1.OperationMetadataV1) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.v1.OperationMetadataV1 other) {
if (other == com.google.appengine.v1.OperationMetadataV1.getDefaultInstance()) return this;
if (!other.getMethod().isEmpty()) {
method_ = other.method_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasInsertTime()) {
mergeInsertTime(other.getInsertTime());
}
if (other.hasEndTime()) {
mergeEndTime(other.getEndTime());
}
if (!other.getUser().isEmpty()) {
user_ = other.user_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getEphemeralMessage().isEmpty()) {
ephemeralMessage_ = other.ephemeralMessage_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.warning_.isEmpty()) {
if (warning_.isEmpty()) {
warning_ = other.warning_;
bitField0_ |= 0x00000040;
} else {
ensureWarningIsMutable();
warning_.addAll(other.warning_);
}
onChanged();
}
switch (other.getMethodMetadataCase()) {
case CREATE_VERSION_METADATA:
{
mergeCreateVersionMetadata(other.getCreateVersionMetadata());
break;
}
case METHODMETADATA_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
method_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getInsertTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
user_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
target_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
ephemeralMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
java.lang.String s = input.readStringRequireUtf8();
ensureWarningIsMutable();
warning_.add(s);
break;
} // case 58
case 66:
{
input.readMessage(
getCreateVersionMetadataFieldBuilder().getBuilder(), extensionRegistry);
methodMetadataCase_ = 8;
break;
} // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int methodMetadataCase_ = 0;
private java.lang.Object methodMetadata_;
public MethodMetadataCase getMethodMetadataCase() {
return MethodMetadataCase.forNumber(methodMetadataCase_);
}
public Builder clearMethodMetadata() {
methodMetadataCase_ = 0;
methodMetadata_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object method_ = "";
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @return The method.
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
method_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @return The bytes for method.
*/
public com.google.protobuf.ByteString getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @param value The method to set.
* @return This builder for chaining.
*/
public Builder setMethod(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
method_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @return This builder for chaining.
*/
public Builder clearMethod() {
method_ = getDefaultInstance().getMethod();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* API method that initiated this operation. Example:
* `google.appengine.v1.Versions.CreateVersion`.
*
* @OutputOnly
*
*
* string method = 1;
*
* @param value The bytes for method to set.
* @return This builder for chaining.
*/
public Builder setMethodBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
method_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp insertTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
insertTimeBuilder_;
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*
* @return Whether the insertTime field is set.
*/
public boolean hasInsertTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*
* @return The insertTime.
*/
public com.google.protobuf.Timestamp getInsertTime() {
if (insertTimeBuilder_ == null) {
return insertTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: insertTime_;
} else {
return insertTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
public Builder setInsertTime(com.google.protobuf.Timestamp value) {
if (insertTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
insertTime_ = value;
} else {
insertTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
public Builder setInsertTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (insertTimeBuilder_ == null) {
insertTime_ = builderForValue.build();
} else {
insertTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
public Builder mergeInsertTime(com.google.protobuf.Timestamp value) {
if (insertTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& insertTime_ != null
&& insertTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getInsertTimeBuilder().mergeFrom(value);
} else {
insertTime_ = value;
}
} else {
insertTimeBuilder_.mergeFrom(value);
}
if (insertTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
public Builder clearInsertTime() {
bitField0_ = (bitField0_ & ~0x00000002);
insertTime_ = null;
if (insertTimeBuilder_ != null) {
insertTimeBuilder_.dispose();
insertTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getInsertTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInsertTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getInsertTimeOrBuilder() {
if (insertTimeBuilder_ != null) {
return insertTimeBuilder_.getMessageOrBuilder();
} else {
return insertTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: insertTime_;
}
}
/**
*
*
*
* Time that this operation was created.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp insert_time = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getInsertTimeFieldBuilder() {
if (insertTimeBuilder_ == null) {
insertTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getInsertTime(), getParentForChildren(), isClean());
insertTime_ = null;
}
return insertTimeBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
endTimeBuilder_;
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
} else {
endTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& endTime_ != null
&& endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
} else {
endTime_ = value;
}
} else {
endTimeBuilder_.mergeFrom(value);
}
if (endTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000004);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
*
*
* Time that this operation completed.
*
* @OutputOnly
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getEndTime(), getParentForChildren(), isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
private java.lang.Object user_ = "";
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @return The user.
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @return The bytes for user.
*/
public com.google.protobuf.ByteString getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @param value The user to set.
* @return This builder for chaining.
*/
public Builder setUser(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @return This builder for chaining.
*/
public Builder clearUser() {
user_ = getDefaultInstance().getUser();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* User who requested this operation.
*
* @OutputOnly
*
*
* string user = 4;
*
* @param value The bytes for user to set.
* @return This builder for chaining.
*/
public Builder setUserBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
user_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object target_ = "";
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
target_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @return The bytes for target.
*/
public com.google.protobuf.ByteString getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Name of the resource that this operation is acting on. Example:
* `apps/myapp/services/default`.
*
* @OutputOnly
*
*
* string target = 5;
*
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
target_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object ephemeralMessage_ = "";
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @return The ephemeralMessage.
*/
public java.lang.String getEphemeralMessage() {
java.lang.Object ref = ephemeralMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ephemeralMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @return The bytes for ephemeralMessage.
*/
public com.google.protobuf.ByteString getEphemeralMessageBytes() {
java.lang.Object ref = ephemeralMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ephemeralMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @param value The ephemeralMessage to set.
* @return This builder for chaining.
*/
public Builder setEphemeralMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ephemeralMessage_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @return This builder for chaining.
*/
public Builder clearEphemeralMessage() {
ephemeralMessage_ = getDefaultInstance().getEphemeralMessage();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
*
* string ephemeral_message = 6;
*
* @param value The bytes for ephemeralMessage to set.
* @return This builder for chaining.
*/
public Builder setEphemeralMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ephemeralMessage_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList warning_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureWarningIsMutable() {
if (!warning_.isModifiable()) {
warning_ = new com.google.protobuf.LazyStringArrayList(warning_);
}
bitField0_ |= 0x00000040;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @return A list containing the warning.
*/
public com.google.protobuf.ProtocolStringList getWarningList() {
warning_.makeImmutable();
return warning_;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @return The count of warning.
*/
public int getWarningCount() {
return warning_.size();
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param index The index of the element to return.
* @return The warning at the given index.
*/
public java.lang.String getWarning(int index) {
return warning_.get(index);
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param index The index of the value to return.
* @return The bytes of the warning at the given index.
*/
public com.google.protobuf.ByteString getWarningBytes(int index) {
return warning_.getByteString(index);
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param index The index to set the value at.
* @param value The warning to set.
* @return This builder for chaining.
*/
public Builder setWarning(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningIsMutable();
warning_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param value The warning to add.
* @return This builder for chaining.
*/
public Builder addWarning(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningIsMutable();
warning_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param values The warning to add.
* @return This builder for chaining.
*/
public Builder addAllWarning(java.lang.Iterable values) {
ensureWarningIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warning_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @return This builder for chaining.
*/
public Builder clearWarning() {
warning_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
;
onChanged();
return this;
}
/**
*
*
*
* Durable messages that persist on every operation poll.
* @OutputOnly
*
*
* repeated string warning = 7;
*
* @param value The bytes of the warning to add.
* @return This builder for chaining.
*/
public Builder addWarningBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureWarningIsMutable();
warning_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.v1.CreateVersionMetadataV1,
com.google.appengine.v1.CreateVersionMetadataV1.Builder,
com.google.appengine.v1.CreateVersionMetadataV1OrBuilder>
createVersionMetadataBuilder_;
/**
* .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*
* @return Whether the createVersionMetadata field is set.
*/
@java.lang.Override
public boolean hasCreateVersionMetadata() {
return methodMetadataCase_ == 8;
}
/**
* .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*
* @return The createVersionMetadata.
*/
@java.lang.Override
public com.google.appengine.v1.CreateVersionMetadataV1 getCreateVersionMetadata() {
if (createVersionMetadataBuilder_ == null) {
if (methodMetadataCase_ == 8) {
return (com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_;
}
return com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance();
} else {
if (methodMetadataCase_ == 8) {
return createVersionMetadataBuilder_.getMessage();
}
return com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance();
}
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
public Builder setCreateVersionMetadata(com.google.appengine.v1.CreateVersionMetadataV1 value) {
if (createVersionMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
methodMetadata_ = value;
onChanged();
} else {
createVersionMetadataBuilder_.setMessage(value);
}
methodMetadataCase_ = 8;
return this;
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
public Builder setCreateVersionMetadata(
com.google.appengine.v1.CreateVersionMetadataV1.Builder builderForValue) {
if (createVersionMetadataBuilder_ == null) {
methodMetadata_ = builderForValue.build();
onChanged();
} else {
createVersionMetadataBuilder_.setMessage(builderForValue.build());
}
methodMetadataCase_ = 8;
return this;
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
public Builder mergeCreateVersionMetadata(
com.google.appengine.v1.CreateVersionMetadataV1 value) {
if (createVersionMetadataBuilder_ == null) {
if (methodMetadataCase_ == 8
&& methodMetadata_
!= com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance()) {
methodMetadata_ =
com.google.appengine.v1.CreateVersionMetadataV1.newBuilder(
(com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_)
.mergeFrom(value)
.buildPartial();
} else {
methodMetadata_ = value;
}
onChanged();
} else {
if (methodMetadataCase_ == 8) {
createVersionMetadataBuilder_.mergeFrom(value);
} else {
createVersionMetadataBuilder_.setMessage(value);
}
}
methodMetadataCase_ = 8;
return this;
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
public Builder clearCreateVersionMetadata() {
if (createVersionMetadataBuilder_ == null) {
if (methodMetadataCase_ == 8) {
methodMetadataCase_ = 0;
methodMetadata_ = null;
onChanged();
}
} else {
if (methodMetadataCase_ == 8) {
methodMetadataCase_ = 0;
methodMetadata_ = null;
}
createVersionMetadataBuilder_.clear();
}
return this;
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
public com.google.appengine.v1.CreateVersionMetadataV1.Builder
getCreateVersionMetadataBuilder() {
return getCreateVersionMetadataFieldBuilder().getBuilder();
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
@java.lang.Override
public com.google.appengine.v1.CreateVersionMetadataV1OrBuilder
getCreateVersionMetadataOrBuilder() {
if ((methodMetadataCase_ == 8) && (createVersionMetadataBuilder_ != null)) {
return createVersionMetadataBuilder_.getMessageOrBuilder();
} else {
if (methodMetadataCase_ == 8) {
return (com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_;
}
return com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance();
}
}
/** .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.v1.CreateVersionMetadataV1,
com.google.appengine.v1.CreateVersionMetadataV1.Builder,
com.google.appengine.v1.CreateVersionMetadataV1OrBuilder>
getCreateVersionMetadataFieldBuilder() {
if (createVersionMetadataBuilder_ == null) {
if (!(methodMetadataCase_ == 8)) {
methodMetadata_ = com.google.appengine.v1.CreateVersionMetadataV1.getDefaultInstance();
}
createVersionMetadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.v1.CreateVersionMetadataV1,
com.google.appengine.v1.CreateVersionMetadataV1.Builder,
com.google.appengine.v1.CreateVersionMetadataV1OrBuilder>(
(com.google.appengine.v1.CreateVersionMetadataV1) methodMetadata_,
getParentForChildren(),
isClean());
methodMetadata_ = null;
}
methodMetadataCase_ = 8;
onChanged();
return createVersionMetadataBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.appengine.v1.OperationMetadataV1)
}
// @@protoc_insertion_point(class_scope:google.appengine.v1.OperationMetadataV1)
private static final com.google.appengine.v1.OperationMetadataV1 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.v1.OperationMetadataV1();
}
public static com.google.appengine.v1.OperationMetadataV1 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OperationMetadataV1 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.v1.OperationMetadataV1 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy