public static final class CreateSubscriptionRequest.Builder extends GeneratedMessage.Builder<CreateSubscriptionRequest.Builder> implements CreateSubscriptionRequestOrBuilderRequest message for CreateSubscription.
Protobuf type google.devicesandservices.health.v4.CreateSubscriptionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateSubscriptionRequest.BuilderImplements
CreateSubscriptionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateSubscriptionRequest build()| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest |
|
buildPartial()
public CreateSubscriptionRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest |
|
clear()
public CreateSubscriptionRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
clearParent()
public CreateSubscriptionRequest.Builder clearParent()Required. The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
This builder for chaining. |
clearSubscription()
public CreateSubscriptionRequest.Builder clearSubscription()Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
clearSubscriptionId()
public CreateSubscriptionRequest.Builder clearSubscriptionId()Optional. The {subscription_id} is user-settable (4-36 chars, matching /a-z/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
string subscription_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateSubscriptionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getSubscription()
public CreateSubscriptionPayload getSubscription()Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionPayload |
The subscription. |
getSubscriptionBuilder()
public CreateSubscriptionPayload.Builder getSubscriptionBuilder()Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionPayload.Builder |
|
getSubscriptionId()
public String getSubscriptionId()Optional. The {subscription_id} is user-settable (4-36 chars, matching /a-z/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
string subscription_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The subscriptionId. |
getSubscriptionIdBytes()
public ByteString getSubscriptionIdBytes()Optional. The {subscription_id} is user-settable (4-36 chars, matching /a-z/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
string subscription_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for subscriptionId. |
getSubscriptionOrBuilder()
public CreateSubscriptionPayloadOrBuilder getSubscriptionOrBuilder()Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionPayloadOrBuilder |
|
hasSubscription()
public boolean hasSubscription()Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the subscription field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateSubscriptionRequest other)
public CreateSubscriptionRequest.Builder mergeFrom(CreateSubscriptionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateSubscriptionRequest |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateSubscriptionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
mergeSubscription(CreateSubscriptionPayload value)
public CreateSubscriptionRequest.Builder mergeSubscription(CreateSubscriptionPayload value)Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
CreateSubscriptionPayload |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
setParent(String value)
public CreateSubscriptionRequest.Builder setParent(String value)Required. The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateSubscriptionRequest.Builder setParentBytes(ByteString value)Required. The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
This builder for chaining. |
setSubscription(CreateSubscriptionPayload value)
public CreateSubscriptionRequest.Builder setSubscription(CreateSubscriptionPayload value)Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
CreateSubscriptionPayload |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
setSubscription(CreateSubscriptionPayload.Builder builderForValue)
public CreateSubscriptionRequest.Builder setSubscription(CreateSubscriptionPayload.Builder builderForValue)Required. The subscription to create.
.google.devicesandservices.health.v4.CreateSubscriptionPayload subscription = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CreateSubscriptionPayload.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
|
setSubscriptionId(String value)
public CreateSubscriptionRequest.Builder setSubscriptionId(String value)Optional. The {subscription_id} is user-settable (4-36 chars, matching /a-z/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
string subscription_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe subscriptionId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
This builder for chaining. |
setSubscriptionIdBytes(ByteString value)
public CreateSubscriptionRequest.Builder setSubscriptionIdBytes(ByteString value)Optional. The {subscription_id} is user-settable (4-36 chars, matching /a-z/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
string subscription_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for subscriptionId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateSubscriptionRequest.Builder |
This builder for chaining. |