Class DisableServiceRequest.Builder

public static final class DisableServiceRequest.Builder extends GeneratedMessageV3.Builder<DisableServiceRequest.Builder> implements DisableServiceRequestOrBuilder

Request message for DisableService method.

Protobuf type google.api.servicemanagement.v1.DisableServiceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DisableServiceRequest build()
Returns
TypeDescription
DisableServiceRequest

buildPartial()

public DisableServiceRequest buildPartial()
Returns
TypeDescription
DisableServiceRequest

clear()

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

clearConsumerId()

public DisableServiceRequest.Builder clearConsumerId()

Required. The identity of consumer resource which service disablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DisableServiceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceName()

public DisableServiceRequest.Builder clearServiceName()

Required. Name of the service to disable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DisableServiceRequest.Builder

This builder for chaining.

clone()

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

getConsumerId()

public String getConsumerId()

Required. The identity of consumer resource which service disablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The consumerId.

getConsumerIdBytes()

public ByteString getConsumerIdBytes()

Required. The identity of consumer resource which service disablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for consumerId.

getDefaultInstanceForType()

public DisableServiceRequest getDefaultInstanceForType()
Returns
TypeDescription
DisableServiceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceName()

public String getServiceName()

Required. Name of the service to disable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Required. Name of the service to disable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for serviceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DisableServiceRequest other)

public DisableServiceRequest.Builder mergeFrom(DisableServiceRequest other)
Parameter
NameDescription
otherDisableServiceRequest
Returns
TypeDescription
DisableServiceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConsumerId(String value)

public DisableServiceRequest.Builder setConsumerId(String value)

Required. The identity of consumer resource which service disablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The consumerId to set.

Returns
TypeDescription
DisableServiceRequest.Builder

This builder for chaining.

setConsumerIdBytes(ByteString value)

public DisableServiceRequest.Builder setConsumerIdBytes(ByteString value)

Required. The identity of consumer resource which service disablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for consumerId to set.

Returns
TypeDescription
DisableServiceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceName(String value)

public DisableServiceRequest.Builder setServiceName(String value)

Required. Name of the service to disable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The serviceName to set.

Returns
TypeDescription
DisableServiceRequest.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public DisableServiceRequest.Builder setServiceNameBytes(ByteString value)

Required. Name of the service to disable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for serviceName to set.

Returns
TypeDescription
DisableServiceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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