Class Zone.ResourceSpec.Builder (1.14.0)

public static final class Zone.ResourceSpec.Builder extends GeneratedMessageV3.Builder<Zone.ResourceSpec.Builder> implements Zone.ResourceSpecOrBuilder

Settings for resources attached as assets within a zone.

Protobuf type google.cloud.dataplex.v1.Zone.ResourceSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Zone.ResourceSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

build()

public Zone.ResourceSpec build()
Returns
TypeDescription
Zone.ResourceSpec

buildPartial()

public Zone.ResourceSpec buildPartial()
Returns
TypeDescription
Zone.ResourceSpec

clear()

public Zone.ResourceSpec.Builder clear()
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Zone.ResourceSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

clearLocationType()

public Zone.ResourceSpec.Builder clearLocationType()

Required. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone.

.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Zone.ResourceSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Zone.ResourceSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

clone()

public Zone.ResourceSpec.Builder clone()
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

getDefaultInstanceForType()

public Zone.ResourceSpec getDefaultInstanceForType()
Returns
TypeDescription
Zone.ResourceSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocationType()

public Zone.ResourceSpec.LocationType getLocationType()

Required. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone.

.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Zone.ResourceSpec.LocationType

The locationType.

getLocationTypeValue()

public int getLocationTypeValue()

Required. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone.

.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for locationType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Zone.ResourceSpec other)

public Zone.ResourceSpec.Builder mergeFrom(Zone.ResourceSpec other)
Parameter
NameDescription
otherZone.ResourceSpec
Returns
TypeDescription
Zone.ResourceSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Zone.ResourceSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Zone.ResourceSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Zone.ResourceSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Zone.ResourceSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

setLocationType(Zone.ResourceSpec.LocationType value)

public Zone.ResourceSpec.Builder setLocationType(Zone.ResourceSpec.LocationType value)

Required. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone.

.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueZone.ResourceSpec.LocationType

The locationType to set.

Returns
TypeDescription
Zone.ResourceSpec.Builder

This builder for chaining.

setLocationTypeValue(int value)

public Zone.ResourceSpec.Builder setLocationTypeValue(int value)

Required. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone.

.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueint

The enum numeric value on the wire for locationType to set.

Returns
TypeDescription
Zone.ResourceSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Zone.ResourceSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Zone.ResourceSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Zone.ResourceSpec.Builder
Overrides