Class Stage.Builder (2.17.0)

public static final class Stage.Builder extends GeneratedMessageV3.Builder<Stage.Builder> implements StageOrBuilder

Each Stage of the deployment process

Protobuf type google.cloud.functions.v2.Stage

Implements

StageOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllStateMessages(Iterable<? extends StateMessage> values)

public Stage.Builder addAllStateMessages(Iterable<? extends StateMessage> values)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.functions.v2.StateMessage>
Returns
TypeDescription
Stage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Stage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Stage.Builder
Overrides

addStateMessages(StateMessage value)

public Stage.Builder addStateMessages(StateMessage value)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
valueStateMessage
Returns
TypeDescription
Stage.Builder

addStateMessages(StateMessage.Builder builderForValue)

public Stage.Builder addStateMessages(StateMessage.Builder builderForValue)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
builderForValueStateMessage.Builder
Returns
TypeDescription
Stage.Builder

addStateMessages(int index, StateMessage value)

public Stage.Builder addStateMessages(int index, StateMessage value)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameters
NameDescription
indexint
valueStateMessage
Returns
TypeDescription
Stage.Builder

addStateMessages(int index, StateMessage.Builder builderForValue)

public Stage.Builder addStateMessages(int index, StateMessage.Builder builderForValue)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameters
NameDescription
indexint
builderForValueStateMessage.Builder
Returns
TypeDescription
Stage.Builder

addStateMessagesBuilder()

public StateMessage.Builder addStateMessagesBuilder()

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Returns
TypeDescription
StateMessage.Builder

addStateMessagesBuilder(int index)

public StateMessage.Builder addStateMessagesBuilder(int index)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StateMessage.Builder

build()

public Stage build()
Returns
TypeDescription
Stage

buildPartial()

public Stage buildPartial()
Returns
TypeDescription
Stage

clear()

public Stage.Builder clear()
Returns
TypeDescription
Stage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Stage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Stage.Builder
Overrides

clearMessage()

public Stage.Builder clearMessage()

Message describing the Stage

string message = 2;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clearName()

public Stage.Builder clearName()

Name of the Stage. This will be unique for each Stage.

.google.cloud.functions.v2.Stage.Name name = 1;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Stage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Stage.Builder
Overrides

clearResource()

public Stage.Builder clearResource()

Resource of the Stage

string resource = 4;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clearResourceUri()

public Stage.Builder clearResourceUri()

Link to the current Stage resource

string resource_uri = 5;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clearState()

public Stage.Builder clearState()

Current state of the Stage

.google.cloud.functions.v2.Stage.State state = 3;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clearStateMessages()

public Stage.Builder clearStateMessages()

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Returns
TypeDescription
Stage.Builder

clone()

public Stage.Builder clone()
Returns
TypeDescription
Stage.Builder
Overrides

getDefaultInstanceForType()

public Stage getDefaultInstanceForType()
Returns
TypeDescription
Stage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

Message describing the Stage

string message = 2;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Message describing the Stage

string message = 2;

Returns
TypeDescription
ByteString

The bytes for message.

getName()

public Stage.Name getName()

Name of the Stage. This will be unique for each Stage.

.google.cloud.functions.v2.Stage.Name name = 1;

Returns
TypeDescription
Stage.Name

The name.

getNameValue()

public int getNameValue()

Name of the Stage. This will be unique for each Stage.

.google.cloud.functions.v2.Stage.Name name = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for name.

getResource()

public String getResource()

Resource of the Stage

string resource = 4;

Returns
TypeDescription
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Resource of the Stage

string resource = 4;

Returns
TypeDescription
ByteString

The bytes for resource.

getResourceUri()

public String getResourceUri()

Link to the current Stage resource

string resource_uri = 5;

Returns
TypeDescription
String

The resourceUri.

getResourceUriBytes()

public ByteString getResourceUriBytes()

Link to the current Stage resource

string resource_uri = 5;

Returns
TypeDescription
ByteString

The bytes for resourceUri.

getState()

public Stage.State getState()

Current state of the Stage

.google.cloud.functions.v2.Stage.State state = 3;

Returns
TypeDescription
Stage.State

The state.

getStateMessages(int index)

public StateMessage getStateMessages(int index)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StateMessage

getStateMessagesBuilder(int index)

public StateMessage.Builder getStateMessagesBuilder(int index)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StateMessage.Builder

getStateMessagesBuilderList()

public List<StateMessage.Builder> getStateMessagesBuilderList()

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Returns
TypeDescription
List<Builder>

getStateMessagesCount()

public int getStateMessagesCount()

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Returns
TypeDescription
int

getStateMessagesList()

public List<StateMessage> getStateMessagesList()

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Returns
TypeDescription
List<StateMessage>

getStateMessagesOrBuilder(int index)

public StateMessageOrBuilder getStateMessagesOrBuilder(int index)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StateMessageOrBuilder

getStateMessagesOrBuilderList()

public List<? extends StateMessageOrBuilder> getStateMessagesOrBuilderList()

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Returns
TypeDescription
List<? extends com.google.cloud.functions.v2.StateMessageOrBuilder>

getStateValue()

public int getStateValue()

Current state of the Stage

.google.cloud.functions.v2.Stage.State state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Stage other)

public Stage.Builder mergeFrom(Stage other)
Parameter
NameDescription
otherStage
Returns
TypeDescription
Stage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Stage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Stage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Stage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Stage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Stage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Stage.Builder
Overrides

removeStateMessages(int index)

public Stage.Builder removeStateMessages(int index)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Stage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Stage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Stage.Builder
Overrides

setMessage(String value)

public Stage.Builder setMessage(String value)

Message describing the Stage

string message = 2;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public Stage.Builder setMessageBytes(ByteString value)

Message describing the Stage

string message = 2;

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setName(Stage.Name value)

public Stage.Builder setName(Stage.Name value)

Name of the Stage. This will be unique for each Stage.

.google.cloud.functions.v2.Stage.Name name = 1;

Parameter
NameDescription
valueStage.Name

The name to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setNameValue(int value)

public Stage.Builder setNameValue(int value)

Name of the Stage. This will be unique for each Stage.

.google.cloud.functions.v2.Stage.Name name = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Stage.Builder

This builder for chaining.

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

public Stage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Stage.Builder
Overrides

setResource(String value)

public Stage.Builder setResource(String value)

Resource of the Stage

string resource = 4;

Parameter
NameDescription
valueString

The resource to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public Stage.Builder setResourceBytes(ByteString value)

Resource of the Stage

string resource = 4;

Parameter
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setResourceUri(String value)

public Stage.Builder setResourceUri(String value)

Link to the current Stage resource

string resource_uri = 5;

Parameter
NameDescription
valueString

The resourceUri to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setResourceUriBytes(ByteString value)

public Stage.Builder setResourceUriBytes(ByteString value)

Link to the current Stage resource

string resource_uri = 5;

Parameter
NameDescription
valueByteString

The bytes for resourceUri to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setState(Stage.State value)

public Stage.Builder setState(Stage.State value)

Current state of the Stage

.google.cloud.functions.v2.Stage.State state = 3;

Parameter
NameDescription
valueStage.State

The state to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setStateMessages(int index, StateMessage value)

public Stage.Builder setStateMessages(int index, StateMessage value)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameters
NameDescription
indexint
valueStateMessage
Returns
TypeDescription
Stage.Builder

setStateMessages(int index, StateMessage.Builder builderForValue)

public Stage.Builder setStateMessages(int index, StateMessage.Builder builderForValue)

State messages from the current Stage.

repeated .google.cloud.functions.v2.StateMessage state_messages = 6;

Parameters
NameDescription
indexint
builderForValueStateMessage.Builder
Returns
TypeDescription
Stage.Builder

setStateValue(int value)

public Stage.Builder setStateValue(int value)

Current state of the Stage

.google.cloud.functions.v2.Stage.State state = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Stage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Stage.Builder
Overrides