
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata Maven / Gradle / Ivy
/*
* 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/compute/v1/compute.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata}
*/
public final class SetCommonInstanceMetadataOperationMetadata
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata)
SetCommonInstanceMetadataOperationMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetCommonInstanceMetadataOperationMetadata.newBuilder() to construct.
private SetCommonInstanceMetadataOperationMetadata(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetCommonInstanceMetadataOperationMetadata() {
clientOperationId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SetCommonInstanceMetadataOperationMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 408987796:
return internalGetPerLocationOperations();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata.class,
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata.Builder.class);
}
private int bitField0_;
public static final int CLIENT_OPERATION_ID_FIELD_NUMBER = 297240295;
@SuppressWarnings("serial")
private volatile java.lang.Object clientOperationId_ = "";
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return Whether the clientOperationId field is set.
*/
@java.lang.Override
public boolean hasClientOperationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return The clientOperationId.
*/
@java.lang.Override
public java.lang.String getClientOperationId() {
java.lang.Object ref = clientOperationId_;
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();
clientOperationId_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return The bytes for clientOperationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getClientOperationIdBytes() {
java.lang.Object ref = clientOperationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientOperationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PER_LOCATION_OPERATIONS_FIELD_NUMBER = 408987796;
private static final class PerLocationOperationsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
defaultEntry =
com.google.protobuf.MapEntry
.
newDefaultInstance(
com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_PerLocationOperationsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
perLocationOperations_;
private com.google.protobuf.MapField<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
internalGetPerLocationOperations() {
if (perLocationOperations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PerLocationOperationsDefaultEntryHolder.defaultEntry);
}
return perLocationOperations_;
}
public int getPerLocationOperationsCount() {
return internalGetPerLocationOperations().getMap().size();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public boolean containsPerLocationOperations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetPerLocationOperations().getMap().containsKey(key);
}
/** Use {@link #getPerLocationOperationsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
getPerLocationOperations() {
return getPerLocationOperationsMap();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
getPerLocationOperationsMap() {
return internalGetPerLocationOperations().getMap();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
getPerLocationOperationsOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
map = internalGetPerLocationOperations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
getPerLocationOperationsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
map = internalGetPerLocationOperations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 297240295, clientOperationId_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output,
internalGetPerLocationOperations(),
PerLocationOperationsDefaultEntryHolder.defaultEntry,
408987796);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.GeneratedMessageV3.computeStringSize(297240295, clientOperationId_);
}
for (java.util.Map.Entry<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
entry : internalGetPerLocationOperations().getMap().entrySet()) {
com.google.protobuf.MapEntry<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
perLocationOperations__ =
PerLocationOperationsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
408987796, perLocationOperations__);
}
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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata other =
(com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata) obj;
if (hasClientOperationId() != other.hasClientOperationId()) return false;
if (hasClientOperationId()) {
if (!getClientOperationId().equals(other.getClientOperationId())) return false;
}
if (!internalGetPerLocationOperations().equals(other.internalGetPerLocationOperations()))
return false;
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();
if (hasClientOperationId()) {
hash = (37 * hash) + CLIENT_OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientOperationId().hashCode();
}
if (!internalGetPerLocationOperations().getMap().isEmpty()) {
hash = (37 * hash) + PER_LOCATION_OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetPerLocationOperations().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata 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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata 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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata 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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata 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;
}
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata)
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 408987796:
return internalGetPerLocationOperations();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 408987796:
return internalGetMutablePerLocationOperations();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata.class,
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata.Builder.class);
}
// Construct using
// com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
clientOperationId_ = "";
internalGetMutablePerLocationOperations().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
getDefaultInstanceForType() {
return com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata build() {
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata buildPartial() {
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata result =
new com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.clientOperationId_ = clientOperationId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.perLocationOperations_ =
internalGetPerLocationOperations()
.build(PerLocationOperationsDefaultEntryHolder.defaultEntry);
}
result.bitField0_ |= to_bitField0_;
}
@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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata) {
return mergeFrom(
(com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata other) {
if (other
== com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
.getDefaultInstance()) return this;
if (other.hasClientOperationId()) {
clientOperationId_ = other.clientOperationId_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutablePerLocationOperations().mergeFrom(other.internalGetPerLocationOperations());
bitField0_ |= 0x00000002;
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 -1917044934:
{
clientOperationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case -1917044934
case -1023064926:
{
com.google.protobuf.MapEntry<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
perLocationOperations__ =
input.readMessage(
PerLocationOperationsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutablePerLocationOperations()
.ensureBuilderMap()
.put(perLocationOperations__.getKey(), perLocationOperations__.getValue());
bitField0_ |= 0x00000002;
break;
} // case -1023064926
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 bitField0_;
private java.lang.Object clientOperationId_ = "";
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return Whether the clientOperationId field is set.
*/
public boolean hasClientOperationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return The clientOperationId.
*/
public java.lang.String getClientOperationId() {
java.lang.Object ref = clientOperationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientOperationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return The bytes for clientOperationId.
*/
public com.google.protobuf.ByteString getClientOperationIdBytes() {
java.lang.Object ref = clientOperationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientOperationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @param value The clientOperationId to set.
* @return This builder for chaining.
*/
public Builder setClientOperationId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientOperationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @return This builder for chaining.
*/
public Builder clearClientOperationId() {
clientOperationId_ = getDefaultInstance().getClientOperationId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The client operation id.
*
*
* optional string client_operation_id = 297240295;
*
* @param value The bytes for clientOperationId to set.
* @return This builder for chaining.
*/
public Builder setClientOperationIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientOperationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private static final class PerLocationOperationsConverter
implements com.google.protobuf.MapFieldBuilder.Converter<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> {
@java.lang.Override
public com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
build(
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder
val) {
if (val
instanceof
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) {
return (com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo)
val;
}
return ((com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.Builder)
val)
.build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
defaultEntry() {
return PerLocationOperationsDefaultEntryHolder.defaultEntry;
}
};
private static final PerLocationOperationsConverter perLocationOperationsConverter =
new PerLocationOperationsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.Builder>
perLocationOperations_;
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.Builder>
internalGetPerLocationOperations() {
if (perLocationOperations_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(perLocationOperationsConverter);
}
return perLocationOperations_;
}
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.Builder>
internalGetMutablePerLocationOperations() {
if (perLocationOperations_ == null) {
perLocationOperations_ =
new com.google.protobuf.MapFieldBuilder<>(perLocationOperationsConverter);
}
bitField0_ |= 0x00000002;
onChanged();
return perLocationOperations_;
}
public int getPerLocationOperationsCount() {
return internalGetPerLocationOperations().ensureBuilderMap().size();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public boolean containsPerLocationOperations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetPerLocationOperations().ensureBuilderMap().containsKey(key);
}
/** Use {@link #getPerLocationOperationsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
getPerLocationOperations() {
return getPerLocationOperationsMap();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
getPerLocationOperationsMap() {
return internalGetPerLocationOperations().getImmutableMap();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
getPerLocationOperationsOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder>
map = internalGetMutablePerLocationOperations().ensureBuilderMap();
return map.containsKey(key)
? perLocationOperationsConverter.build(map.get(key))
: defaultValue;
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
getPerLocationOperationsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder>
map = internalGetMutablePerLocationOperations().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return perLocationOperationsConverter.build(map.get(key));
}
public Builder clearPerLocationOperations() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutablePerLocationOperations().clear();
return this;
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
public Builder removePerLocationOperations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutablePerLocationOperations().ensureBuilderMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
getMutablePerLocationOperations() {
bitField0_ |= 0x00000002;
return internalGetMutablePerLocationOperations().ensureMessageMap();
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
public Builder putPerLocationOperations(
java.lang.String key,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutablePerLocationOperations().ensureBuilderMap().put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
public Builder putAllPerLocationOperations(
java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
values) {
for (java.util.Map.Entry<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo>
e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutablePerLocationOperations().ensureBuilderMap().putAll(values);
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a
*
*
*
* map<string, .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo> per_location_operations = 408987796;
*
*/
public com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.Builder
putPerLocationOperationsBuilderIfAbsent(java.lang.String key) {
java.util.Map<
java.lang.String,
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder>
builderMap = internalGetMutablePerLocationOperations().ensureBuilderMap();
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfoOrBuilder
entry = builderMap.get(key);
if (entry == null) {
entry =
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.newBuilder();
builderMap.put(key, entry);
}
if (entry
instanceof
com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) {
entry =
((com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo)
entry)
.toBuilder();
builderMap.put(key, entry);
}
return (com.google.cloud.compute.v1
.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.Builder)
entry;
}
@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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata)
private static final com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata();
}
public static com.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetCommonInstanceMetadataOperationMetadata 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.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy