Class BatchEnableServicesResponse.EnableFailure.Builder (2.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchEnableServicesResponse.EnableFailure build()
Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure

buildPartial()

public BatchEnableServicesResponse.EnableFailure buildPartial()
Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure

clear()

public BatchEnableServicesResponse.EnableFailure.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchEnableServicesResponse.EnableFailure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

clone()

public BatchEnableServicesResponse.EnableFailure.Builder clone()
Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder
Overrides

getDefaultInstanceForType()

public BatchEnableServicesResponse.EnableFailure getDefaultInstanceForType()
Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorMessage()

public String getErrorMessage()

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

string error_message = 2;

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

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

string error_message = 2;

Returns
TypeDescription
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
TypeDescription
String

The serviceId.

getServiceIdBytes()

public ByteString getServiceIdBytes()

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

string service_id = 1;

Returns
TypeDescription
ByteString

The bytes for serviceId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchEnableServicesResponse.EnableFailure other)

public BatchEnableServicesResponse.EnableFailure.Builder mergeFrom(BatchEnableServicesResponse.EnableFailure other)
Parameter
NameDescription
otherBatchEnableServicesResponse.EnableFailure
Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchEnableServicesResponse.EnableFailure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The errorMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for errorMessage to set.

Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BatchEnableServicesResponse.EnableFailure.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceId to set.

Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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