Class UpdateSpecRequest.Builder (0.4.0)

public static final class UpdateSpecRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSpecRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public UpdateSpecRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSpecRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSpecRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSpecRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

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

public UpdateSpecRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSpecRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateSpecRequest.Builder
Overrides

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