public final class CreateMonitoredProjectRequest extends GeneratedMessageV3 implements CreateMonitoredProjectRequestOrBuilder
Request for the CreateMonitoredProject
method.
Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateMonitoredProjectRequestImplements
CreateMonitoredProjectRequestOrBuilderStatic Fields
MONITORED_PROJECT_FIELD_NUMBER
public static final int MONITORED_PROJECT_FIELD_NUMBER
Type | Description |
int |
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static CreateMonitoredProjectRequest getDefaultInstance()
Type | Description |
CreateMonitoredProjectRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CreateMonitoredProjectRequest.Builder newBuilder()
Type | Description |
CreateMonitoredProjectRequest.Builder |
newBuilder(CreateMonitoredProjectRequest prototype)
public static CreateMonitoredProjectRequest.Builder newBuilder(CreateMonitoredProjectRequest prototype)
Name | Description |
prototype | CreateMonitoredProjectRequest |
Type | Description |
CreateMonitoredProjectRequest.Builder |
parseDelimitedFrom(InputStream input)
public static CreateMonitoredProjectRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateMonitoredProjectRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CreateMonitoredProjectRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateMonitoredProjectRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CreateMonitoredProjectRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateMonitoredProjectRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CreateMonitoredProjectRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateMonitoredProjectRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CreateMonitoredProjectRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateMonitoredProjectRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CreateMonitoredProjectRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateMonitoredProjectRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateMonitoredProjectRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CreateMonitoredProjectRequest> parser()
Type | Description |
Parser<CreateMonitoredProjectRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public CreateMonitoredProjectRequest getDefaultInstanceForType()
Type | Description |
CreateMonitoredProjectRequest |
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];
Type | Description |
MonitoredProject | The monitoredProject. |
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];
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getParserForType()
public Parser<CreateMonitoredProjectRequest> getParserForType()
Type | Description |
Parser<CreateMonitoredProjectRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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];
Type | Description |
boolean | Whether the monitoredProject field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public CreateMonitoredProjectRequest.Builder newBuilderForType()
Type | Description |
CreateMonitoredProjectRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateMonitoredProjectRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CreateMonitoredProjectRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CreateMonitoredProjectRequest.Builder toBuilder()
Type | Description |
CreateMonitoredProjectRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |