Class UpdateSubscriberRequest.Builder (0.2.0)

public static final class UpdateSubscriberRequest.Builder extends GeneratedMessage.Builder<UpdateSubscriberRequest.Builder> implements UpdateSubscriberRequestOrBuilder

Request message for UpdateSubscriber.

Protobuf type google.devicesandservices.health.v4.UpdateSubscriberRequest

Static Methods

getDescriptor()

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

Methods

build()

public UpdateSubscriberRequest build()
Returns
Type Description
UpdateSubscriberRequest

buildPartial()

public UpdateSubscriberRequest buildPartial()
Returns
Type Description
UpdateSubscriberRequest

clear()

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

clearSubscriber()

public UpdateSubscriberRequest.Builder clearSubscriber()

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSubscriberRequest.Builder

clearUpdateMask()

public UpdateSubscriberRequest.Builder clearUpdateMask()

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Returns
Type Description
UpdateSubscriberRequest.Builder

getDefaultInstanceForType()

public UpdateSubscriberRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSubscriberRequest

getDescriptorForType()

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

getSubscriber()

public Subscriber getSubscriber()

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subscriber

The subscriber.

getSubscriberBuilder()

public Subscriber.Builder getSubscriberBuilder()

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subscriber.Builder

getSubscriberOrBuilder()

public SubscriberOrBuilder getSubscriberOrBuilder()

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubscriberOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Returns
Type Description
FieldMaskOrBuilder

hasSubscriber()

public boolean hasSubscriber()

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the subscriber field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

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(UpdateSubscriberRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubscriber(Subscriber value)

public UpdateSubscriberRequest.Builder mergeSubscriber(Subscriber value)

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subscriber
Returns
Type Description
UpdateSubscriberRequest.Builder

mergeUpdateMask(FieldMask value)

public UpdateSubscriberRequest.Builder mergeUpdateMask(FieldMask value)

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSubscriberRequest.Builder

setSubscriber(Subscriber value)

public UpdateSubscriberRequest.Builder setSubscriber(Subscriber value)

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subscriber
Returns
Type Description
UpdateSubscriberRequest.Builder

setSubscriber(Subscriber.Builder builderForValue)

public UpdateSubscriberRequest.Builder setSubscriber(Subscriber.Builder builderForValue)

Required. The subscriber resource to update. Its 'name' field is mapped to the URI, and the value of the 'name' field should be of the form: "projects/{project}/subscribers/{subscriber_id}". The remaining fields of the Subscriber object represent the new values for the corresponding fields in the existing subscriber resource.

.google.devicesandservices.health.v4.Subscriber subscriber = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Subscriber.Builder
Returns
Type Description
UpdateSubscriberRequest.Builder

setUpdateMask(FieldMask value)

public UpdateSubscriberRequest.Builder setUpdateMask(FieldMask value)

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSubscriberRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSubscriberRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields:

  • endpoint_uri
  • subscriber_configs
  • endpoint_authorization

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSubscriberRequest.Builder