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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateSubscriptionRequest build()
buildPartial()
public CreateSubscriptionRequest buildPartial()
clear()
public CreateSubscriptionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public CreateSubscriptionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateSubscriptionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSubscription()
public Subscription getSubscription()
Required. The subscription resource to create.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
getSubscriptionBuilder()
public Subscription.Builder getSubscriptionBuilder()
Required. The subscription resource to create.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
getSubscriptionOrBuilder()
public SubscriptionOrBuilder getSubscriptionOrBuilder()
Required. The subscription resource to create.
.google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateSubscriptionRequest other)
public CreateSubscriptionRequest.Builder mergeFrom(CreateSubscriptionRequest other)
public CreateSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateSubscriptionRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|