public static final class ReservationAffinity.Builder extends GeneratedMessageV3.Builder<ReservationAffinity.Builder> implements ReservationAffinityOrBuilder
Reservation Affinity for consuming Zonal reservation.Protobuf type
google.cloud.dataproc.v1.ReservationAffinity
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ReservationAffinity build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ReservationAffinity buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ReservationAffinity.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder mergeFrom(ReservationAffinity other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public ReservationAffinity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ReservationAffinity.Builder>
IOException
public int getConsumeReservationTypeValue()
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
getConsumeReservationTypeValue
in interface ReservationAffinityOrBuilder
public ReservationAffinity.Builder setConsumeReservationTypeValue(int value)
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The enum numeric value on the wire for consumeReservationType to set.public ReservationAffinity.Type getConsumeReservationType()
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
getConsumeReservationType
in interface ReservationAffinityOrBuilder
public ReservationAffinity.Builder setConsumeReservationType(ReservationAffinity.Type value)
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The consumeReservationType to set.public ReservationAffinity.Builder clearConsumeReservationType()
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
public String getKey()
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
getKey
in interface ReservationAffinityOrBuilder
public ByteString getKeyBytes()
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
getKeyBytes
in interface ReservationAffinityOrBuilder
public ReservationAffinity.Builder setKey(String value)
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The key to set.public ReservationAffinity.Builder clearKey()
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
public ReservationAffinity.Builder setKeyBytes(ByteString value)
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for key to set.public ProtocolStringList getValuesList()
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
getValuesList
in interface ReservationAffinityOrBuilder
public int getValuesCount()
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
getValuesCount
in interface ReservationAffinityOrBuilder
public String getValues(int index)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
getValues
in interface ReservationAffinityOrBuilder
index
- The index of the element to return.public ByteString getValuesBytes(int index)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
getValuesBytes
in interface ReservationAffinityOrBuilder
index
- The index of the value to return.public ReservationAffinity.Builder setValues(int index, String value)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
index
- The index to set the value at.value
- The values to set.public ReservationAffinity.Builder addValues(String value)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The values to add.public ReservationAffinity.Builder addAllValues(Iterable<String> values)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
values
- The values to add.public ReservationAffinity.Builder clearValues()
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
public ReservationAffinity.Builder addValuesBytes(ByteString value)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes of the values to add.public final ReservationAffinity.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
public final ReservationAffinity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ReservationAffinity.Builder>
Copyright © 2022 Google LLC. All rights reserved.