Class Environment.Builder (0.47.0)

public static final class Environment.Builder extends GeneratedMessage.Builder<Environment.Builder> implements EnvironmentOrBuilder

Environment of the Application, Service, or Workload

Protobuf type google.cloud.apphub.v1.Environment

Static Methods

getDescriptor()

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

Methods

build()

public Environment build()
Returns
Type Description
Environment

buildPartial()

public Environment buildPartial()
Returns
Type Description
Environment

clear()

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

clearType()

public Environment.Builder clearType()

Required. Environment Type.

.google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Environment.Builder

This builder for chaining.

getDefaultInstanceForType()

public Environment getDefaultInstanceForType()
Returns
Type Description
Environment

getDescriptorForType()

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

getType()

public Environment.Type getType()

Required. Environment Type.

.google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Environment.Type

The type.

getTypeValue()

public int getTypeValue()

Required. Environment Type.

.google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Environment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setType(Environment.Type value)

public Environment.Builder setType(Environment.Type value)

Required. Environment Type.

.google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Environment.Type

The type to set.

Returns
Type Description
Environment.Builder

This builder for chaining.

setTypeValue(int value)

public Environment.Builder setTypeValue(int value)

Required. Environment Type.

.google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
Environment.Builder

This builder for chaining.