Class SubscriptionConfig (0.6.0)

public final class SubscriptionConfig extends GeneratedMessageV3 implements SubscriptionConfigOrBuilder

A message to store a subscription configuration.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig

Static Fields

BILLING_ID_FIELD_NUMBER

public static final int BILLING_ID_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBSCRIPTION_ID_FIELD_NUMBER

public static final int SUBSCRIPTION_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubscriptionConfig getDefaultInstance()
Returns
Type Description
SubscriptionConfig

getDescriptor()

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

newBuilder()

public static SubscriptionConfig.Builder newBuilder()
Returns
Type Description
SubscriptionConfig.Builder

newBuilder(SubscriptionConfig prototype)

public static SubscriptionConfig.Builder newBuilder(SubscriptionConfig prototype)
Parameter
Name Description
prototype SubscriptionConfig
Returns
Type Description
SubscriptionConfig.Builder

parseDelimitedFrom(InputStream input)

public static SubscriptionConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscriptionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SubscriptionConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubscriptionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubscriptionConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubscriptionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubscriptionConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscriptionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SubscriptionConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscriptionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SubscriptionConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubscriptionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriptionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SubscriptionConfig> parser()
Returns
Type Description
Parser<SubscriptionConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<SubscriptionConfig> getParserForType()
Returns
Type Description
Parser<SubscriptionConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SubscriptionConfig.Builder newBuilderForType()
Returns
Type Description
SubscriptionConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SubscriptionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SubscriptionConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SubscriptionConfig.Builder toBuilder()
Returns
Type Description
SubscriptionConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException