Class SubscriptionConfig.Builder (0.8.0)

public static final class SubscriptionConfig.Builder extends GeneratedMessageV3.Builder<SubscriptionConfig.Builder> implements SubscriptionConfigOrBuilder

A message to store a subscription configuration.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscriptionConfig build()
Returns
Type Description
SubscriptionConfig

buildPartial()

public SubscriptionConfig buildPartial()
Returns
Type Description
SubscriptionConfig

clear()

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

clearBillingId()

public SubscriptionConfig.Builder clearBillingId()

Output only. The Google Cloud Billing ID that the subscription is created under.

string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public SubscriptionConfig.Builder clearState()

Output only. The current state of the subscription.

.google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

clearSubscriptionId()

public SubscriptionConfig.Builder clearSubscriptionId()

Output only. The unique identifier of the subscription.

string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

clone()

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

getBillingId()

public String getBillingId()

Output only. The Google Cloud Billing ID that the subscription is created under.

string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The billingId.

getBillingIdBytes()

public ByteString getBillingIdBytes()

Output only. The Google Cloud Billing ID that the subscription is created under.

string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for billingId.

getDefaultInstanceForType()

public SubscriptionConfig getDefaultInstanceForType()
Returns
Type Description
SubscriptionConfig

getDescriptorForType()

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

getState()

public SubscriptionConfig.SubscriptionState getState()

Output only. The current state of the subscription.

.google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SubscriptionConfig.SubscriptionState

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the subscription.

.google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubscriptionId()

public String getSubscriptionId()

Output only. The unique identifier of the subscription.

string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The subscriptionId.

getSubscriptionIdBytes()

public ByteString getSubscriptionIdBytes()

Output only. The unique identifier of the subscription.

string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for subscriptionId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SubscriptionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBillingId(String value)

public SubscriptionConfig.Builder setBillingId(String value)

Output only. The Google Cloud Billing ID that the subscription is created under.

string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The billingId to set.

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

setBillingIdBytes(ByteString value)

public SubscriptionConfig.Builder setBillingIdBytes(ByteString value)

Output only. The Google Cloud Billing ID that the subscription is created under.

string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for billingId to set.

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(SubscriptionConfig.SubscriptionState value)

public SubscriptionConfig.Builder setState(SubscriptionConfig.SubscriptionState value)

Output only. The current state of the subscription.

.google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SubscriptionConfig.SubscriptionState

The state to set.

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

setStateValue(int value)

public SubscriptionConfig.Builder setStateValue(int value)

Output only. The current state of the subscription.

.google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

setSubscriptionId(String value)

public SubscriptionConfig.Builder setSubscriptionId(String value)

Output only. The unique identifier of the subscription.

string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The subscriptionId to set.

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

setSubscriptionIdBytes(ByteString value)

public SubscriptionConfig.Builder setSubscriptionIdBytes(ByteString value)

Output only. The unique identifier of the subscription.

string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for subscriptionId to set.

Returns
Type Description
SubscriptionConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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