Class BatchEnableServicesResponse.EnableFailure.Builder (2.55.0)

public static final class BatchEnableServicesResponse.EnableFailure.Builder extends GeneratedMessageV3.Builder<BatchEnableServicesResponse.EnableFailure.Builder> implements BatchEnableServicesResponse.EnableFailureOrBuilder

Provides error messages for the failing services.

Protobuf type google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchEnableServicesResponse.EnableFailure build()
Returns
Type Description
BatchEnableServicesResponse.EnableFailure

buildPartial()

public BatchEnableServicesResponse.EnableFailure buildPartial()
Returns
Type Description
BatchEnableServicesResponse.EnableFailure

clear()

public BatchEnableServicesResponse.EnableFailure.Builder clear()
Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder
Overrides

clearErrorMessage()

public BatchEnableServicesResponse.EnableFailure.Builder clearErrorMessage()

An error message describing why the service could not be enabled.

string error_message = 2;

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceId()

public BatchEnableServicesResponse.EnableFailure.Builder clearServiceId()

The service id of a service that could not be enabled.

string service_id = 1;

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

clone()

public BatchEnableServicesResponse.EnableFailure.Builder clone()
Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder
Overrides

getDefaultInstanceForType()

public BatchEnableServicesResponse.EnableFailure getDefaultInstanceForType()
Returns
Type Description
BatchEnableServicesResponse.EnableFailure

getDescriptorForType()

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

getErrorMessage()

public String getErrorMessage()

An error message describing why the service could not be enabled.

string error_message = 2;

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

An error message describing why the service could not be enabled.

string error_message = 2;

Returns
Type Description
ByteString

The bytes for errorMessage.

getServiceId()

public String getServiceId()

The service id of a service that could not be enabled.

string service_id = 1;

Returns
Type Description
String

The serviceId.

getServiceIdBytes()

public ByteString getServiceIdBytes()

The service id of a service that could not be enabled.

string service_id = 1;

Returns
Type Description
ByteString

The bytes for serviceId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchEnableServicesResponse.EnableFailure other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setErrorMessage(String value)

public BatchEnableServicesResponse.EnableFailure.Builder setErrorMessage(String value)

An error message describing why the service could not be enabled.

string error_message = 2;

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public BatchEnableServicesResponse.EnableFailure.Builder setErrorMessageBytes(ByteString value)

An error message describing why the service could not be enabled.

string error_message = 2;

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceId(String value)

public BatchEnableServicesResponse.EnableFailure.Builder setServiceId(String value)

The service id of a service that could not be enabled.

string service_id = 1;

Parameter
Name Description
value String

The serviceId to set.

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

setServiceIdBytes(ByteString value)

public BatchEnableServicesResponse.EnableFailure.Builder setServiceIdBytes(ByteString value)

The service id of a service that could not be enabled.

string service_id = 1;

Parameter
Name Description
value ByteString

The bytes for serviceId to set.

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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