Class CreateMonitoredProjectRequest.Builder (0.79.0)

public static final class CreateMonitoredProjectRequest.Builder extends GeneratedMessage.Builder<CreateMonitoredProjectRequest.Builder> implements CreateMonitoredProjectRequestOrBuilder

Request for the CreateMonitoredProject method.

Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateMonitoredProjectRequest build()
Returns
Type Description
CreateMonitoredProjectRequest

buildPartial()

public CreateMonitoredProjectRequest buildPartial()
Returns
Type Description
CreateMonitoredProjectRequest

clear()

public CreateMonitoredProjectRequest.Builder clear()
Returns
Type Description
CreateMonitoredProjectRequest.Builder
Overrides

clearMonitoredProject()

public CreateMonitoredProjectRequest.Builder clearMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMonitoredProjectRequest.Builder

clearParent()

public CreateMonitoredProjectRequest.Builder clearParent()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateMonitoredProjectRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateMonitoredProjectRequest getDefaultInstanceForType()
Returns
Type Description
CreateMonitoredProjectRequest

getDescriptorForType()

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

getMonitoredProject()

public MonitoredProject getMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MonitoredProject

The monitoredProject.

getMonitoredProjectBuilder()

public MonitoredProject.Builder getMonitoredProjectBuilder()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MonitoredProject.Builder

getMonitoredProjectOrBuilder()

public MonitoredProjectOrBuilder getMonitoredProjectOrBuilder()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MonitoredProjectOrBuilder

getParent()

public String getParent()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasMonitoredProject()

public boolean hasMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the monitoredProject field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMonitoredProjectRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMonitoredProject(MonitoredProject value)

public CreateMonitoredProjectRequest.Builder mergeMonitoredProject(MonitoredProject value)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MonitoredProject
Returns
Type Description
CreateMonitoredProjectRequest.Builder

setMonitoredProject(MonitoredProject value)

public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject value)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MonitoredProject
Returns
Type Description
CreateMonitoredProjectRequest.Builder

setMonitoredProject(MonitoredProject.Builder builderForValue)

public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject.Builder builderForValue)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MonitoredProject.Builder
Returns
Type Description
CreateMonitoredProjectRequest.Builder

setParent(String value)

public CreateMonitoredProjectRequest.Builder setParent(String value)

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMonitoredProjectRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMonitoredProjectRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateMonitoredProjectRequest.Builder

This builder for chaining.