Class CreateSubscriptionRequest.Builder (0.10.0)

public static final class CreateSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder> implements CreateSubscriptionRequestOrBuilder

The request message for SubscriptionsService.CreateSubscription.

Protobuf type google.apps.events.subscriptions.v1.CreateSubscriptionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubscription()

public CreateSubscriptionRequest.Builder clearSubscription()

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSubscriptionRequest.Builder

clearValidateOnly()

public CreateSubscriptionRequest.Builder clearValidateOnly()

Optional. If set to true, validates and previews the request, but doesn't create the subscription.

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateSubscriptionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateSubscriptionRequest getDefaultInstanceForType()
Returns
Type Description
CreateSubscriptionRequest

getDescriptorForType()

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

getSubscription()

public Subscription getSubscription()

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subscription

The subscription.

getSubscriptionBuilder()

public Subscription.Builder getSubscriptionBuilder()

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subscription.Builder

getSubscriptionOrBuilder()

public SubscriptionOrBuilder getSubscriptionOrBuilder()

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubscriptionOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If set to true, validates and previews the request, but doesn't create the subscription.

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasSubscription()

public boolean hasSubscription()

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the subscription field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeSubscription(Subscription value)

public CreateSubscriptionRequest.Builder mergeSubscription(Subscription value)

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subscription
Returns
Type Description
CreateSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSubscription(Subscription value)

public CreateSubscriptionRequest.Builder setSubscription(Subscription value)

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subscription
Returns
Type Description
CreateSubscriptionRequest.Builder

setSubscription(Subscription.Builder builderForValue)

public CreateSubscriptionRequest.Builder setSubscription(Subscription.Builder builderForValue)

Required. The subscription resource to create.

.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Subscription.Builder
Returns
Type Description
CreateSubscriptionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateSubscriptionRequest.Builder setValidateOnly(boolean value)

Optional. If set to true, validates and previews the request, but doesn't create the subscription.

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateSubscriptionRequest.Builder

This builder for chaining.