Class UpdateAttributeRequest.Builder (0.2.0)

public static final class UpdateAttributeRequest.Builder extends GeneratedMessageV3.Builder<UpdateAttributeRequest.Builder> implements UpdateAttributeRequestOrBuilder

The UpdateAttribute method's request.

Protobuf type google.cloud.apihub.v1.UpdateAttributeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAttributeRequest build()
Returns
Type Description
UpdateAttributeRequest

buildPartial()

public UpdateAttributeRequest buildPartial()
Returns
Type Description
UpdateAttributeRequest

clear()

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

clearAttribute()

public UpdateAttributeRequest.Builder clearAttribute()

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateAttributeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateAttributeRequest.Builder
Overrides

clearUpdateMask()

public UpdateAttributeRequest.Builder clearUpdateMask()

Required. The list of fields to update.

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

Returns
Type Description
UpdateAttributeRequest.Builder

clone()

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

getAttribute()

public Attribute getAttribute()

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Attribute

The attribute.

getAttributeBuilder()

public Attribute.Builder getAttributeBuilder()

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Attribute.Builder

getAttributeOrBuilder()

public AttributeOrBuilder getAttributeOrBuilder()

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributeOrBuilder

getDefaultInstanceForType()

public UpdateAttributeRequest getDefaultInstanceForType()
Returns
Type Description
UpdateAttributeRequest

getDescriptorForType()

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

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

hasAttribute()

public boolean hasAttribute()

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the attribute 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

mergeAttribute(Attribute value)

public UpdateAttributeRequest.Builder mergeAttribute(Attribute value)

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Attribute
Returns
Type Description
UpdateAttributeRequest.Builder

mergeFrom(UpdateAttributeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateAttributeRequest.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
UpdateAttributeRequest.Builder

setAttribute(Attribute value)

public UpdateAttributeRequest.Builder setAttribute(Attribute value)

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Attribute
Returns
Type Description
UpdateAttributeRequest.Builder

setAttribute(Attribute.Builder builderForValue)

public UpdateAttributeRequest.Builder setAttribute(Attribute.Builder builderForValue)

Required. The attribute to update.

The attribute's name field is used to identify the attribute to update. Format: projects/{project}/locations/{location}/attributes/{attribute}

.google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Attribute.Builder
Returns
Type Description
UpdateAttributeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateAttributeRequest.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
UpdateAttributeRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateAttributeRequest.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
UpdateAttributeRequest.Builder