Class UpdateSpecRequest.Builder (0.36.0)

public static final class UpdateSpecRequest.Builder extends GeneratedMessage.Builder<UpdateSpecRequest.Builder> implements UpdateSpecRequestOrBuilder

The UpdateSpec method's request.

Protobuf type google.cloud.apihub.v1.UpdateSpecRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UpdateSpecRequest build()
Returns
Type Description
UpdateSpecRequest

buildPartial()

public UpdateSpecRequest buildPartial()
Returns
Type Description
UpdateSpecRequest

clear()

public UpdateSpecRequest.Builder clear()
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

clearSpec()

public UpdateSpecRequest.Builder clearSpec()

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSpecRequest.Builder

clearUpdateMask()

public UpdateSpecRequest.Builder clearUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSpecRequest.Builder

getDefaultInstanceForType()

public UpdateSpecRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSpecRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSpec()

public Spec getSpec()

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Spec

The spec.

getSpecBuilder()

public Spec.Builder getSpecBuilder()

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Spec.Builder

getSpecOrBuilder()

public SpecOrBuilder getSpecOrBuilder()

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpecOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasSpec()

public boolean hasSpec()

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the spec field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSpecRequest other)

public UpdateSpecRequest.Builder mergeFrom(UpdateSpecRequest other)
Parameter
Name Description
other UpdateSpecRequest
Returns
Type Description
UpdateSpecRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSpecRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateSpecRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateSpecRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

mergeSpec(Spec value)

public UpdateSpecRequest.Builder mergeSpec(Spec value)

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Spec
Returns
Type Description
UpdateSpecRequest.Builder

mergeUpdateMask(FieldMask value)

public UpdateSpecRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSpecRequest.Builder

setSpec(Spec value)

public UpdateSpecRequest.Builder setSpec(Spec value)

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Spec
Returns
Type Description
UpdateSpecRequest.Builder

setSpec(Spec.Builder builderForValue)

public UpdateSpecRequest.Builder setSpec(Spec.Builder builderForValue)

Required. The spec to update.

The spec's name field is used to identify the spec to update. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Spec.Builder
Returns
Type Description
UpdateSpecRequest.Builder

setUpdateMask(FieldMask value)

public UpdateSpecRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSpecRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSpecRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSpecRequest.Builder