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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DisableServiceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DisableServiceRequest build()
Returns
buildPartial()
public DisableServiceRequest buildPartial()
Returns
clear()
public DisableServiceRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public DisableServiceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DisableServiceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public DisableServiceRequest.Builder clone()
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for consumerId.
|
getDefaultInstanceForType()
public DisableServiceRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for serviceName.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DisableServiceRequest other)
public DisableServiceRequest.Builder mergeFrom(DisableServiceRequest other)
Parameter
Returns
public DisableServiceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DisableServiceRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DisableServiceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name | Description |
value | String
The consumerId to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for consumerId to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DisableServiceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DisableServiceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Name | Description |
value | String
The serviceName to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for serviceName to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final DisableServiceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides