diff --git a/.travis.yml b/.travis.yml index edc2540..4bbda72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,9 @@ dist: trusty os: - linux julia: - - 1.0 - - 1.1 - - 1.2 - 1.3 + - 1.4 + - 1.5 - nightly notifications: email: false diff --git a/Project.toml b/Project.toml index 5da6ae1..19e967d 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "0bb624de-12df-571d-ad84-47aef8b93290" keywords = ["hadoop", "hdfs", "yarn", "client"] license = "MIT" desc = "Hadoop HDFS and Yarn client" -version = "0.4.0" +version = "0.5.0" [deps] Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" @@ -21,8 +21,8 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [compat] julia = "1" -MbedTLS = "0.6.8, 0.7" -ProtoBuf = "0.7" +MbedTLS = "0.6.8, 0.7, 1" +ProtoBuf = "0.9" URIParser = "0.4" [extras] diff --git a/src/api_hdfs_base.jl b/src/api_hdfs_base.jl index 5569224..ace3a7c 100644 --- a/src/api_hdfs_base.jl +++ b/src/api_hdfs_base.jl @@ -124,8 +124,10 @@ function show(io::IO, st::HDFSFileInfo) end function _as_dict(obj, d=Dict{Symbol,Any}()) - for name in fieldnames(typeof(obj)) - d[name] = getfield(obj, name) + for name in propertynames(obj) + if hasproperty(obj, name) + d[name] = getproperty(obj, name) + end end d end @@ -138,9 +140,9 @@ function _walkdir(client::HDFSClient, path::AbstractString, process_entry::Funct inp = GetListingRequestProto(src=path, startAfter=start_after, needLocation=false) resp = getListing(client.nn_conn, inp) - if isfilled(resp, :dirList) + if hasproperty(resp, :dirList) dir_list = resp.dirList - if isfilled(dir_list, :partialListing) + if hasproperty(dir_list, :partialListing) partial_listing = dir_list.partialListing for filestatus in partial_listing cont = process_entry(filestatus) @@ -148,7 +150,7 @@ function _walkdir(client::HDFSClient, path::AbstractString, process_entry::Funct end (cont == false) && break end - if isfilled(dir_list, :remainingEntries) && (dir_list.remainingEntries > 0) + if hasproperty(dir_list, :remainingEntries) && (dir_list.remainingEntries > 0) start_after = dir_list.partialListing[end].path else cont = false @@ -164,7 +166,7 @@ function _get_file_info(client::HDFSClient, path::AbstractString) path = abspath(client, path) inp = GetFileInfoRequestProto(src=path) resp = getFileInfo(client.nn_conn, inp) - isfilled(resp, :fs) ? resp.fs : nothing + hasproperty(resp, :fs) ? resp.fs : nothing end function _get_block_locations(client::HDFSClient, path::AbstractString, offset::UInt64=zero(UInt64), length::UInt64=zero(UInt64)) @@ -174,7 +176,7 @@ function _get_block_locations(client::HDFSClient, path::AbstractString, offset:: end inp = GetBlockLocationsRequestProto(src=path, offset=offset, length=length) resp = getBlockLocations(client.nn_conn, inp) - isfilled(resp, :locations) ? resp.locations : nothing + hasproperty(resp, :locations) ? resp.locations : nothing end # @@ -362,7 +364,7 @@ function _create_file(client::HDFSClient, path::AbstractString, overwrite::Bool= inp = CreateRequestProto(src=path, masked=perms, clientName=ELLY_CLIENTNAME, createFlag=createFlag, createParent=false, replication=replication, blockSize=blocksz) resp = create(client.nn_conn, inp) - isfilled(resp, :fs) || (return nothing) + hasproperty(resp, :fs) || (return nothing) if docomplete _complete_file(client, path) || (return nothing) diff --git a/src/api_hdfs_io.jl b/src/api_hdfs_io.jl index 66471af..844eb07 100644 --- a/src/api_hdfs_io.jl +++ b/src/api_hdfs_io.jl @@ -69,7 +69,7 @@ skip(reader::HDFSFileReader, n::Integer) = seek(reader, UInt64(n+position(reader _block_has_offset(block::LocatedBlockProto, offset::UInt64, block_sz::UInt64) = (block.offset <= offset < (block.offset + block_sz)) function _find_block(blocks::LocatedBlocksProto, offset::UInt64, block_sz::UInt64) - if isfilled(blocks, :blocks) + if hasproperty(blocks, :blocks) blockarr = blocks.blocks for block in blockarr if _block_has_offset(block, offset, block_sz) diff --git a/src/api_yarn_appmaster.jl b/src/api_yarn_appmaster.jl index 5075387..e8f69e7 100644 --- a/src/api_yarn_appmaster.jl +++ b/src/api_yarn_appmaster.jl @@ -129,12 +129,12 @@ function register(yam::YarnAppMaster) end yam.registration = resp - if isfilled(resp, :maximumCapability) + if hasproperty(resp, :maximumCapability) yam.max_mem = resp.maximumCapability.memory yam.max_cores = resp.maximumCapability.virtual_cores end @debug("max capability", mem=yam.max_mem, cores=yam.max_cores) - if isfilled(resp, :queue) + if hasproperty(resp, :queue) yam.queue = resp.queue end @@ -148,7 +148,7 @@ can_schedule_mem(yam::YarnAppMaster) = can_schedule(yam, SchedulerResourceTypes. can_schedule_cores(yam::YarnAppMaster) = can_schedule(yam, SchedulerResourceTypes.CPU) function can_schedule(yam::YarnAppMaster, restype::Int32) reg = yam.registration - !isfilled(reg, :scheduler_resource_types) && (return false) + !hasproperty(reg, :scheduler_resource_types) && (return false) restype in reg.scheduler_resource_types end @@ -191,7 +191,7 @@ function container_start(yam::YarnAppMaster, container::ContainerProto, containe release_connection(yam.nodes, nodeid, nm_conn, success) end success || throw(YarnException("Error starting container")) - isfilled(resp, :succeeded_requests) || throw(YarnException(isfilled(resp,:failed_requests) ? resp.failed_requests[1] : "Error starting container")) + hasproperty(resp, :succeeded_requests) || throw(YarnException(hasproperty(resp,:failed_requests) ? resp.failed_requests[1] : "Error starting container")) cid = resp.succeeded_requests[1] (cid == container.id) || throw(YarnException("Unexpected container id mismatch")) set_busy(yam.containers, cid) @@ -217,7 +217,7 @@ function container_stop(yam::YarnAppMaster, container::ContainerProto) release_connection(yam.nodes, nodeid, nm_conn, success) end success || throw(YarnException("Error stopping container")) - isfilled(resp, :succeeded_requests) || throw(YarnException(isfilled(resp,:failed_requests) ? resp.failed_requests[1] : "Error stopping container")) + hasproperty(resp, :succeeded_requests) || throw(YarnException(hasproperty(resp,:failed_requests) ? resp.failed_requests[1] : "Error stopping container")) cid = resp.succeeded_requests[1] (cid == container.id) || throw(YarnException("Unexpected container id mismatch")) set_free(yam.containers, cid) @@ -248,15 +248,15 @@ function _update_rm(yam::YarnAppMaster) # store/update tokens channel = yam.amrm_conn.channel ugi = channel.ugi - isfilled(resp, :am_rm_token) && add_token!(ugi, token_alias(channel), resp.am_rm_token) - if isfilled(resp, :nm_tokens) + hasproperty(resp, :am_rm_token) && add_token!(ugi, token_alias(channel), resp.am_rm_token) + if hasproperty(resp, :nm_tokens) for nmtok in resp.nm_tokens add_token!(ugi, token_alias(nmtok.nodeId), nmtok.token) end end # update available headroom - if isfilled(resp, :limit) + if hasproperty(resp, :limit) yam.available_mem = resp.limit.memory yam.available_cores = resp.limit.virtual_cores end diff --git a/src/api_yarn_base.jl b/src/api_yarn_base.jl index 44569d5..dbbdfba 100644 --- a/src/api_yarn_base.jl +++ b/src/api_yarn_base.jl @@ -43,11 +43,11 @@ end function show(io::IO, serex::SerializedExceptionProto) print(io, "Exception: ") - isfilled(serex, :class_name) && print(io, serex.class_name, ": ") - isfilled(serex, :message) && print(io, serex.message) - isfilled(serex, :trace) && print(io, '\n', serex.trace, '\n') + hasproperty(serex, :class_name) && print(io, serex.class_name, ": ") + hasproperty(serex, :message) && print(io, serex.message) + hasproperty(serex, :trace) && print(io, '\n', serex.trace, '\n') - if isfilled(serex, :cause) + if hasproperty(serex, :cause) println(io, "Caused by:") show(io, serex.cause) end @@ -146,8 +146,8 @@ function show(io::IO, nodes::YarnNodes) end function update(nodes::YarnNodes, arp::AllocateResponseProto) - isfilled(arp, :num_cluster_nodes) && (nodes.count = arp.num_cluster_nodes) - if isfilled(arp, :updated_nodes) + hasproperty(arp, :num_cluster_nodes) && (nodes.count = arp.num_cluster_nodes) + if hasproperty(arp, :updated_nodes) for nrep in arp.updated_nodes @debug("updating node status", nodeid=nrep.nodeId) nodes.status[nrep.nodeId] = YarnNode(nrep) @@ -157,7 +157,7 @@ function update(nodes::YarnNodes, arp::AllocateResponseProto) end function update(nodes::YarnNodes, gcnrp::GetClusterNodesResponseProto) - isfilled(gcnrp, :nodeReports) || return + hasproperty(gcnrp, :nodeReports) || return nlist = gcnrp.nodeReports nodes.count = length(nlist) @@ -310,7 +310,7 @@ function update(containers::YarnContainers, arp::AllocateResponseProto) cballoc = containers.on_container_alloc cbfinish = containers.on_container_finish - if isfilled(arp, :allocated_containers) + if hasproperty(arp, :allocated_containers) for cont in arp.allocated_containers id = cont.id idstr = container_id_string(id) @@ -320,7 +320,7 @@ function update(containers::YarnContainers, arp::AllocateResponseProto) (cballoc === nothing) || @async cballoc(id) end end - if isfilled(arp, :completed_container_statuses) + if hasproperty(arp, :completed_container_statuses) @debug("have completed containers") for contst in arp.completed_container_statuses id = contst.container_id diff --git a/src/api_yarn_client.jl b/src/api_yarn_client.jl index 0767eb1..cda6227 100644 --- a/src/api_yarn_client.jl +++ b/src/api_yarn_client.jl @@ -35,7 +35,7 @@ show(io::IO, client::YarnClient) = show(io, client.rm_conn) function nodecount(client::YarnClient) inp = GetClusterMetricsRequestProto() resp = getClusterMetrics(client.rm_conn, inp) - isfilled(resp, :cluster_metrics) ? resp.cluster_metrics.num_node_managers : 0 + hasproperty(resp, :cluster_metrics) ? resp.cluster_metrics.num_node_managers : 0 end function nodes(client::YarnClient; all::Bool=false, nodelist::YarnNodes=YarnNodes(client.rm_conn.channel.ugi)) @@ -65,19 +65,19 @@ end function show(io::IO, status::YarnAppStatus) report = status.report - if isfilled(report, :final_application_status) && report.final_application_status > 0 + if hasproperty(report, :final_application_status) && report.final_application_status > 0 final_state = "-$(FINAL_APP_STATES[report.final_application_status])" else final_state = "" end - if isfilled(report, :progress) + if hasproperty(report, :progress) final_state *= "-$(report.progress)" end println(io, "YarnApp $(report.applicationType) ($(report.name)/$(report.applicationId.id)): $(APP_STATES[report.yarn_application_state])$(final_state)") println(io, " location: $(report.user)@$(report.host):$(report.rpc_port)/$(report.queue)") if report.yarn_application_state > YarnApplicationStateProto.RUNNING println(io, " time: $(report.startTime) to $(report.finishTime)") - if isfilled(report, :app_resource_Usage) + if hasproperty(report, :app_resource_Usage) rusage = report.app_resource_Usage println(io, " rusage:") println(io, " mem,vcore seconds: $(rusage.memory_seconds), $(rusage.vcore_seconds)") @@ -85,7 +85,7 @@ function show(io::IO, status::YarnAppStatus) println(io, " mem: used $(rusage.used_resources.memory), reserved $(rusage.reserved_resources.memory), needed $(rusage.needed_resources.memory)") println(io, " vcores: used $(rusage.used_resources.virtual_cores), reserved $(rusage.reserved_resources.virtual_cores), needed $(rusage.needed_resources.virtual_cores)") end - if isfilled(report, :diagnostics) + if hasproperty(report, :diagnostics) println(io, " diagnostics: $(report.diagnostics)") end elseif report.yarn_application_state == YarnApplicationStateProto.RUNNING @@ -114,7 +114,7 @@ function show(io::IO, status::YarnAppAttemptStatus) atmpt_id = report.application_attempt_id atmpt_str = "$(atmpt_id.application_id.id)" - if isfilled(report, :am_container_id) + if hasproperty(report, :am_container_id) atmpt_str *= "/$(report.am_container_id.id)" else atmpt_str *= "/-" @@ -123,7 +123,7 @@ function show(io::IO, status::YarnAppAttemptStatus) println(io, "YarnAppAttempt $(atmpt_str): $(ATTEMPT_STATES[report.yarn_application_attempt_state])") println(io, " location: $(report.host):$(report.rpc_port)") - if isfilled(report, :diagnostics) + if hasproperty(report, :diagnostics) println(io, " diagnostics: $(report.diagnostics)") end nothing @@ -187,7 +187,7 @@ function submit(client::YarnClient, container_spec::ContainerLaunchContextProto; # the application master would need these environment variables to initialize itself # TODO: we need ability to read hadoop configuration to avoid this rm_chan = client.rm_conn.channel - isdefined(container_spec, :environment) || (container_spec.environment = StringStringMapProto[]) + hasproperty(container_spec, :environment) || (container_spec.environment = StringStringMapProto[]) push!(container_spec.environment, StringStringMapProto(; key="JULIA_YARN_RESOURCEMANAGER_ADDRESS", value="$(rm_chan.host):$(rm_chan.port)")) push!(container_spec.environment, StringStringMapProto(; key="JULIA_YARN_RESOURCEMANAGER_SCHEDULER_ADDRESS", value=schedaddr)) end @@ -227,7 +227,7 @@ function status(app::YarnApp, refresh::Bool=true) inp = GetApplicationReportRequestProto(application_id=app.appid) resp = getApplicationReport(client.rm_conn, inp) - app.status = isfilled(resp.application_report) ? YarnAppStatus(resp.application_report) : nothing + app.status = hasproperty(resp, :application_report) ? YarnAppStatus(resp.application_report) : nothing end app.status end @@ -263,7 +263,7 @@ function attempts(app::YarnApp, refresh::Bool=true) resp = getApplicationAttempts(client.rm_conn, inp) atmptlist = app.attempts empty!(atmptlist) - if isfilled(resp.application_attempts) + if hasproperty(resp, :application_attempts) for atmpt in resp.application_attempts push!(atmptlist, YarnAppAttemptStatus(atmpt)) end diff --git a/src/containerid.jl b/src/containerid.jl index 11dca7d..1909a5f 100644 --- a/src/containerid.jl +++ b/src/containerid.jl @@ -37,8 +37,8 @@ function parse_container_id(cidstr::String) end function container_id_string(cid::ContainerIdProto) - app_id = isdefined(cid, :app_id) ? cid.app_id : cid.app_attempt_id.application_id - attempt_id = isdefined(cid, :app_attempt_id) ? cid.app_attempt_id.attemptId : 0 + app_id = hasproperty(cid, :app_id) ? cid.app_id : cid.app_attempt_id.application_id + attempt_id = hasproperty(cid, :app_attempt_id) ? cid.app_attempt_id.attemptId : 0 id = cid.id epoch = id >> 40 id = CONTAINER_ID_BITMASK & id diff --git a/src/hadoop/ClientNamenodeProtocol_pb.jl b/src/hadoop/ClientNamenodeProtocol_pb.jl index 84e946a..57f0db7 100644 --- a/src/hadoop/ClientNamenodeProtocol_pb.jl +++ b/src/hadoop/ClientNamenodeProtocol_pb.jl @@ -1,1116 +1,5706 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop -struct __enum_CreateFlagProto <: ProtoEnum - CREATE::Int32 - OVERWRITE::Int32 - APPEND::Int32 - LAZY_PERSIST::Int32 - NEW_BLOCK::Int32 - __enum_CreateFlagProto() = new(1,2,4,16,32) -end #struct __enum_CreateFlagProto -const CreateFlagProto = __enum_CreateFlagProto() - -struct __enum_AddBlockFlagProto <: ProtoEnum - NO_LOCAL_WRITE::Int32 - __enum_AddBlockFlagProto() = new(1) -end #struct __enum_AddBlockFlagProto -const AddBlockFlagProto = __enum_AddBlockFlagProto() - -struct __enum_DatanodeReportTypeProto <: ProtoEnum - ALL::Int32 - LIVE::Int32 - DEAD::Int32 - DECOMMISSIONING::Int32 - ENTERING_MAINTENANCE::Int32 - IN_MAINTENANCE::Int32 - __enum_DatanodeReportTypeProto() = new(1,2,3,4,5,6) -end #struct __enum_DatanodeReportTypeProto -const DatanodeReportTypeProto = __enum_DatanodeReportTypeProto() - -struct __enum_SafeModeActionProto <: ProtoEnum - SAFEMODE_LEAVE::Int32 - SAFEMODE_ENTER::Int32 - SAFEMODE_GET::Int32 - SAFEMODE_FORCE_EXIT::Int32 - __enum_SafeModeActionProto() = new(1,2,3,4) -end #struct __enum_SafeModeActionProto -const SafeModeActionProto = __enum_SafeModeActionProto() - -struct __enum_RollingUpgradeActionProto <: ProtoEnum - QUERY::Int32 - START::Int32 - FINALIZE::Int32 - __enum_RollingUpgradeActionProto() = new(1,2,3) -end #struct __enum_RollingUpgradeActionProto -const RollingUpgradeActionProto = __enum_RollingUpgradeActionProto() - -struct __enum_CacheFlagProto <: ProtoEnum - FORCE::Int32 - __enum_CacheFlagProto() = new(1) -end #struct __enum_CacheFlagProto -const CacheFlagProto = __enum_CacheFlagProto() +const CreateFlagProto = (;[ + Symbol("CREATE") => Int32(1), + Symbol("OVERWRITE") => Int32(2), + Symbol("APPEND") => Int32(4), + Symbol("LAZY_PERSIST") => Int32(16), + Symbol("NEW_BLOCK") => Int32(32), +]...) + +const AddBlockFlagProto = (;[ + Symbol("NO_LOCAL_WRITE") => Int32(1), +]...) + +const DatanodeReportTypeProto = (;[ + Symbol("ALL") => Int32(1), + Symbol("LIVE") => Int32(2), + Symbol("DEAD") => Int32(3), + Symbol("DECOMMISSIONING") => Int32(4), + Symbol("ENTERING_MAINTENANCE") => Int32(5), + Symbol("IN_MAINTENANCE") => Int32(6), +]...) + +const SafeModeActionProto = (;[ + Symbol("SAFEMODE_LEAVE") => Int32(1), + Symbol("SAFEMODE_ENTER") => Int32(2), + Symbol("SAFEMODE_GET") => Int32(3), + Symbol("SAFEMODE_FORCE_EXIT") => Int32(4), +]...) + +const RollingUpgradeActionProto = (;[ + Symbol("QUERY") => Int32(1), + Symbol("START") => Int32(2), + Symbol("FINALIZE") => Int32(3), +]...) + +const CacheFlagProto = (;[ + Symbol("FORCE") => Int32(1), +]...) mutable struct GetBlockLocationsRequestProto <: ProtoType - src::AbstractString - offset::UInt64 - length::UInt64 - GetBlockLocationsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetBlockLocationsRequestProto -const __req_GetBlockLocationsRequestProto = Symbol[:src,:offset,:length] -meta(t::Type{GetBlockLocationsRequestProto}) = meta(t, __req_GetBlockLocationsRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetBlockLocationsRequestProto(; kwargs...) + obj = new(meta(GetBlockLocationsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetBlockLocationsRequestProto +const __meta_GetBlockLocationsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetBlockLocationsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetBlockLocationsRequestProto) + __meta_GetBlockLocationsRequestProto[] = target = ProtoMeta(GetBlockLocationsRequestProto) + req = Symbol[:src,:offset,:length] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :offset => UInt64, :length => UInt64] + meta(target, GetBlockLocationsRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetBlockLocationsRequestProto[] + end +end +function Base.getproperty(obj::GetBlockLocationsRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :offset + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :length + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct GetBlockLocationsResponseProto <: ProtoType - locations::LocatedBlocksProto - GetBlockLocationsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetBlockLocationsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetBlockLocationsResponseProto(; kwargs...) + obj = new(meta(GetBlockLocationsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetBlockLocationsResponseProto +const __meta_GetBlockLocationsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetBlockLocationsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetBlockLocationsResponseProto) + __meta_GetBlockLocationsResponseProto[] = target = ProtoMeta(GetBlockLocationsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:locations => LocatedBlocksProto] + meta(target, GetBlockLocationsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetBlockLocationsResponseProto[] + end +end +function Base.getproperty(obj::GetBlockLocationsResponseProto, name::Symbol) + if name === :locations + return (obj.__protobuf_jl_internal_values[name])::LocatedBlocksProto + else + getfield(obj, name) + end +end mutable struct GetServerDefaultsRequestProto <: ProtoType - GetServerDefaultsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetServerDefaultsRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetServerDefaultsRequestProto(; kwargs...) + obj = new(meta(GetServerDefaultsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetServerDefaultsRequestProto +const __meta_GetServerDefaultsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetServerDefaultsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetServerDefaultsRequestProto) + __meta_GetServerDefaultsRequestProto[] = target = ProtoMeta(GetServerDefaultsRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetServerDefaultsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetServerDefaultsRequestProto[] + end +end mutable struct GetServerDefaultsResponseProto <: ProtoType - serverDefaults::FsServerDefaultsProto - GetServerDefaultsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetServerDefaultsResponseProto -const __req_GetServerDefaultsResponseProto = Symbol[:serverDefaults] -meta(t::Type{GetServerDefaultsResponseProto}) = meta(t, __req_GetServerDefaultsResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetServerDefaultsResponseProto(; kwargs...) + obj = new(meta(GetServerDefaultsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetServerDefaultsResponseProto +const __meta_GetServerDefaultsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetServerDefaultsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetServerDefaultsResponseProto) + __meta_GetServerDefaultsResponseProto[] = target = ProtoMeta(GetServerDefaultsResponseProto) + req = Symbol[:serverDefaults] + allflds = Pair{Symbol,Union{Type,String}}[:serverDefaults => FsServerDefaultsProto] + meta(target, GetServerDefaultsResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetServerDefaultsResponseProto[] + end +end +function Base.getproperty(obj::GetServerDefaultsResponseProto, name::Symbol) + if name === :serverDefaults + return (obj.__protobuf_jl_internal_values[name])::FsServerDefaultsProto + else + getfield(obj, name) + end +end mutable struct CreateRequestProto <: ProtoType - src::AbstractString - masked::FsPermissionProto - clientName::AbstractString - createFlag::UInt32 - createParent::Bool - replication::UInt32 - blockSize::UInt64 - cryptoProtocolVersion::Base.Vector{Int32} - CreateRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateRequestProto -const __req_CreateRequestProto = Symbol[:src,:masked,:clientName,:createFlag,:createParent,:replication,:blockSize] -meta(t::Type{CreateRequestProto}) = meta(t, __req_CreateRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateRequestProto(; kwargs...) + obj = new(meta(CreateRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateRequestProto +const __meta_CreateRequestProto = Ref{ProtoMeta}() +function meta(::Type{CreateRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateRequestProto) + __meta_CreateRequestProto[] = target = ProtoMeta(CreateRequestProto) + req = Symbol[:src,:masked,:clientName,:createFlag,:createParent,:replication,:blockSize] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :masked => FsPermissionProto, :clientName => AbstractString, :createFlag => UInt32, :createParent => Bool, :replication => UInt32, :blockSize => UInt64, :cryptoProtocolVersion => Base.Vector{Int32}] + meta(target, CreateRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateRequestProto[] + end +end +function Base.getproperty(obj::CreateRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :masked + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :createFlag + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :createParent + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :replication + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :blockSize + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :cryptoProtocolVersion + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct CreateResponseProto <: ProtoType - fs::HdfsFileStatusProto - CreateResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateResponseProto(; kwargs...) + obj = new(meta(CreateResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateResponseProto +const __meta_CreateResponseProto = Ref{ProtoMeta}() +function meta(::Type{CreateResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateResponseProto) + __meta_CreateResponseProto[] = target = ProtoMeta(CreateResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:fs => HdfsFileStatusProto] + meta(target, CreateResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateResponseProto[] + end +end +function Base.getproperty(obj::CreateResponseProto, name::Symbol) + if name === :fs + return (obj.__protobuf_jl_internal_values[name])::HdfsFileStatusProto + else + getfield(obj, name) + end +end mutable struct AppendRequestProto <: ProtoType - src::AbstractString - clientName::AbstractString - flag::UInt32 - AppendRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AppendRequestProto -const __req_AppendRequestProto = Symbol[:src,:clientName] -meta(t::Type{AppendRequestProto}) = meta(t, __req_AppendRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AppendRequestProto(; kwargs...) + obj = new(meta(AppendRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AppendRequestProto +const __meta_AppendRequestProto = Ref{ProtoMeta}() +function meta(::Type{AppendRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AppendRequestProto) + __meta_AppendRequestProto[] = target = ProtoMeta(AppendRequestProto) + req = Symbol[:src,:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :clientName => AbstractString, :flag => UInt32] + meta(target, AppendRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AppendRequestProto[] + end +end +function Base.getproperty(obj::AppendRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :flag + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct AppendResponseProto <: ProtoType - block::LocatedBlockProto - stat::HdfsFileStatusProto - AppendResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AppendResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AppendResponseProto(; kwargs...) + obj = new(meta(AppendResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AppendResponseProto +const __meta_AppendResponseProto = Ref{ProtoMeta}() +function meta(::Type{AppendResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AppendResponseProto) + __meta_AppendResponseProto[] = target = ProtoMeta(AppendResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:block => LocatedBlockProto, :stat => HdfsFileStatusProto] + meta(target, AppendResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AppendResponseProto[] + end +end +function Base.getproperty(obj::AppendResponseProto, name::Symbol) + if name === :block + return (obj.__protobuf_jl_internal_values[name])::LocatedBlockProto + elseif name === :stat + return (obj.__protobuf_jl_internal_values[name])::HdfsFileStatusProto + else + getfield(obj, name) + end +end mutable struct SetReplicationRequestProto <: ProtoType - src::AbstractString - replication::UInt32 - SetReplicationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetReplicationRequestProto -const __req_SetReplicationRequestProto = Symbol[:src,:replication] -meta(t::Type{SetReplicationRequestProto}) = meta(t, __req_SetReplicationRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetReplicationRequestProto(; kwargs...) + obj = new(meta(SetReplicationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetReplicationRequestProto +const __meta_SetReplicationRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetReplicationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetReplicationRequestProto) + __meta_SetReplicationRequestProto[] = target = ProtoMeta(SetReplicationRequestProto) + req = Symbol[:src,:replication] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :replication => UInt32] + meta(target, SetReplicationRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetReplicationRequestProto[] + end +end +function Base.getproperty(obj::SetReplicationRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :replication + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct SetReplicationResponseProto <: ProtoType - result::Bool - SetReplicationResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetReplicationResponseProto -const __req_SetReplicationResponseProto = Symbol[:result] -meta(t::Type{SetReplicationResponseProto}) = meta(t, __req_SetReplicationResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetReplicationResponseProto(; kwargs...) + obj = new(meta(SetReplicationResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetReplicationResponseProto +const __meta_SetReplicationResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetReplicationResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetReplicationResponseProto) + __meta_SetReplicationResponseProto[] = target = ProtoMeta(SetReplicationResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, SetReplicationResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetReplicationResponseProto[] + end +end +function Base.getproperty(obj::SetReplicationResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct SetStoragePolicyRequestProto <: ProtoType - src::AbstractString - policyName::AbstractString - SetStoragePolicyRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetStoragePolicyRequestProto -const __req_SetStoragePolicyRequestProto = Symbol[:src,:policyName] -meta(t::Type{SetStoragePolicyRequestProto}) = meta(t, __req_SetStoragePolicyRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetStoragePolicyRequestProto(; kwargs...) + obj = new(meta(SetStoragePolicyRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetStoragePolicyRequestProto +const __meta_SetStoragePolicyRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetStoragePolicyRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetStoragePolicyRequestProto) + __meta_SetStoragePolicyRequestProto[] = target = ProtoMeta(SetStoragePolicyRequestProto) + req = Symbol[:src,:policyName] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :policyName => AbstractString] + meta(target, SetStoragePolicyRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetStoragePolicyRequestProto[] + end +end +function Base.getproperty(obj::SetStoragePolicyRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :policyName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct SetStoragePolicyResponseProto <: ProtoType - SetStoragePolicyResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetStoragePolicyResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetStoragePolicyResponseProto(; kwargs...) + obj = new(meta(SetStoragePolicyResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetStoragePolicyResponseProto +const __meta_SetStoragePolicyResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetStoragePolicyResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetStoragePolicyResponseProto) + __meta_SetStoragePolicyResponseProto[] = target = ProtoMeta(SetStoragePolicyResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetStoragePolicyResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetStoragePolicyResponseProto[] + end +end mutable struct UnsetStoragePolicyRequestProto <: ProtoType - src::AbstractString - UnsetStoragePolicyRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UnsetStoragePolicyRequestProto -const __req_UnsetStoragePolicyRequestProto = Symbol[:src] -meta(t::Type{UnsetStoragePolicyRequestProto}) = meta(t, __req_UnsetStoragePolicyRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UnsetStoragePolicyRequestProto(; kwargs...) + obj = new(meta(UnsetStoragePolicyRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UnsetStoragePolicyRequestProto +const __meta_UnsetStoragePolicyRequestProto = Ref{ProtoMeta}() +function meta(::Type{UnsetStoragePolicyRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UnsetStoragePolicyRequestProto) + __meta_UnsetStoragePolicyRequestProto[] = target = ProtoMeta(UnsetStoragePolicyRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, UnsetStoragePolicyRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UnsetStoragePolicyRequestProto[] + end +end +function Base.getproperty(obj::UnsetStoragePolicyRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct UnsetStoragePolicyResponseProto <: ProtoType - UnsetStoragePolicyResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UnsetStoragePolicyResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UnsetStoragePolicyResponseProto(; kwargs...) + obj = new(meta(UnsetStoragePolicyResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UnsetStoragePolicyResponseProto +const __meta_UnsetStoragePolicyResponseProto = Ref{ProtoMeta}() +function meta(::Type{UnsetStoragePolicyResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UnsetStoragePolicyResponseProto) + __meta_UnsetStoragePolicyResponseProto[] = target = ProtoMeta(UnsetStoragePolicyResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, UnsetStoragePolicyResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UnsetStoragePolicyResponseProto[] + end +end mutable struct GetStoragePolicyRequestProto <: ProtoType - path::AbstractString - GetStoragePolicyRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetStoragePolicyRequestProto -const __req_GetStoragePolicyRequestProto = Symbol[:path] -meta(t::Type{GetStoragePolicyRequestProto}) = meta(t, __req_GetStoragePolicyRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetStoragePolicyRequestProto(; kwargs...) + obj = new(meta(GetStoragePolicyRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetStoragePolicyRequestProto +const __meta_GetStoragePolicyRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetStoragePolicyRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetStoragePolicyRequestProto) + __meta_GetStoragePolicyRequestProto[] = target = ProtoMeta(GetStoragePolicyRequestProto) + req = Symbol[:path] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString] + meta(target, GetStoragePolicyRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetStoragePolicyRequestProto[] + end +end +function Base.getproperty(obj::GetStoragePolicyRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetStoragePolicyResponseProto <: ProtoType - storagePolicy::BlockStoragePolicyProto - GetStoragePolicyResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetStoragePolicyResponseProto -const __req_GetStoragePolicyResponseProto = Symbol[:storagePolicy] -meta(t::Type{GetStoragePolicyResponseProto}) = meta(t, __req_GetStoragePolicyResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetStoragePolicyResponseProto(; kwargs...) + obj = new(meta(GetStoragePolicyResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetStoragePolicyResponseProto +const __meta_GetStoragePolicyResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetStoragePolicyResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetStoragePolicyResponseProto) + __meta_GetStoragePolicyResponseProto[] = target = ProtoMeta(GetStoragePolicyResponseProto) + req = Symbol[:storagePolicy] + allflds = Pair{Symbol,Union{Type,String}}[:storagePolicy => BlockStoragePolicyProto] + meta(target, GetStoragePolicyResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetStoragePolicyResponseProto[] + end +end +function Base.getproperty(obj::GetStoragePolicyResponseProto, name::Symbol) + if name === :storagePolicy + return (obj.__protobuf_jl_internal_values[name])::BlockStoragePolicyProto + else + getfield(obj, name) + end +end mutable struct GetStoragePoliciesRequestProto <: ProtoType - GetStoragePoliciesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetStoragePoliciesRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetStoragePoliciesRequestProto(; kwargs...) + obj = new(meta(GetStoragePoliciesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetStoragePoliciesRequestProto +const __meta_GetStoragePoliciesRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetStoragePoliciesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetStoragePoliciesRequestProto) + __meta_GetStoragePoliciesRequestProto[] = target = ProtoMeta(GetStoragePoliciesRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetStoragePoliciesRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetStoragePoliciesRequestProto[] + end +end mutable struct GetStoragePoliciesResponseProto <: ProtoType - policies::Base.Vector{BlockStoragePolicyProto} - GetStoragePoliciesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetStoragePoliciesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetStoragePoliciesResponseProto(; kwargs...) + obj = new(meta(GetStoragePoliciesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetStoragePoliciesResponseProto +const __meta_GetStoragePoliciesResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetStoragePoliciesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetStoragePoliciesResponseProto) + __meta_GetStoragePoliciesResponseProto[] = target = ProtoMeta(GetStoragePoliciesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:policies => Base.Vector{BlockStoragePolicyProto}] + meta(target, GetStoragePoliciesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetStoragePoliciesResponseProto[] + end +end +function Base.getproperty(obj::GetStoragePoliciesResponseProto, name::Symbol) + if name === :policies + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{BlockStoragePolicyProto} + else + getfield(obj, name) + end +end mutable struct SetPermissionRequestProto <: ProtoType - src::AbstractString - permission::FsPermissionProto - SetPermissionRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetPermissionRequestProto -const __req_SetPermissionRequestProto = Symbol[:src,:permission] -meta(t::Type{SetPermissionRequestProto}) = meta(t, __req_SetPermissionRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetPermissionRequestProto(; kwargs...) + obj = new(meta(SetPermissionRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetPermissionRequestProto +const __meta_SetPermissionRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetPermissionRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetPermissionRequestProto) + __meta_SetPermissionRequestProto[] = target = ProtoMeta(SetPermissionRequestProto) + req = Symbol[:src,:permission] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :permission => FsPermissionProto] + meta(target, SetPermissionRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetPermissionRequestProto[] + end +end +function Base.getproperty(obj::SetPermissionRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :permission + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + else + getfield(obj, name) + end +end mutable struct SetPermissionResponseProto <: ProtoType - SetPermissionResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetPermissionResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetPermissionResponseProto(; kwargs...) + obj = new(meta(SetPermissionResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetPermissionResponseProto +const __meta_SetPermissionResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetPermissionResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetPermissionResponseProto) + __meta_SetPermissionResponseProto[] = target = ProtoMeta(SetPermissionResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetPermissionResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetPermissionResponseProto[] + end +end mutable struct SetOwnerRequestProto <: ProtoType - src::AbstractString - username::AbstractString - groupname::AbstractString - SetOwnerRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetOwnerRequestProto -const __req_SetOwnerRequestProto = Symbol[:src] -meta(t::Type{SetOwnerRequestProto}) = meta(t, __req_SetOwnerRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetOwnerRequestProto(; kwargs...) + obj = new(meta(SetOwnerRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetOwnerRequestProto +const __meta_SetOwnerRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetOwnerRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetOwnerRequestProto) + __meta_SetOwnerRequestProto[] = target = ProtoMeta(SetOwnerRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :username => AbstractString, :groupname => AbstractString] + meta(target, SetOwnerRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetOwnerRequestProto[] + end +end +function Base.getproperty(obj::SetOwnerRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :username + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :groupname + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct SetOwnerResponseProto <: ProtoType - SetOwnerResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetOwnerResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetOwnerResponseProto(; kwargs...) + obj = new(meta(SetOwnerResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetOwnerResponseProto +const __meta_SetOwnerResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetOwnerResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetOwnerResponseProto) + __meta_SetOwnerResponseProto[] = target = ProtoMeta(SetOwnerResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetOwnerResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetOwnerResponseProto[] + end +end mutable struct AbandonBlockRequestProto <: ProtoType - b::ExtendedBlockProto - src::AbstractString - holder::AbstractString - fileId::UInt64 - AbandonBlockRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AbandonBlockRequestProto -const __req_AbandonBlockRequestProto = Symbol[:b,:src,:holder] -const __val_AbandonBlockRequestProto = Dict(:fileId => 0) -meta(t::Type{AbandonBlockRequestProto}) = meta(t, __req_AbandonBlockRequestProto, ProtoBuf.DEF_FNUM, __val_AbandonBlockRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AbandonBlockRequestProto(; kwargs...) + obj = new(meta(AbandonBlockRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AbandonBlockRequestProto +const __meta_AbandonBlockRequestProto = Ref{ProtoMeta}() +function meta(::Type{AbandonBlockRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AbandonBlockRequestProto) + __meta_AbandonBlockRequestProto[] = target = ProtoMeta(AbandonBlockRequestProto) + req = Symbol[:b,:src,:holder] + val = Dict{Symbol,Any}(:fileId => 0) + allflds = Pair{Symbol,Union{Type,String}}[:b => ExtendedBlockProto, :src => AbstractString, :holder => AbstractString, :fileId => UInt64] + meta(target, AbandonBlockRequestProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AbandonBlockRequestProto[] + end +end +function Base.getproperty(obj::AbandonBlockRequestProto, name::Symbol) + if name === :b + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :holder + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :fileId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct AbandonBlockResponseProto <: ProtoType - AbandonBlockResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AbandonBlockResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AbandonBlockResponseProto(; kwargs...) + obj = new(meta(AbandonBlockResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AbandonBlockResponseProto +const __meta_AbandonBlockResponseProto = Ref{ProtoMeta}() +function meta(::Type{AbandonBlockResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AbandonBlockResponseProto) + __meta_AbandonBlockResponseProto[] = target = ProtoMeta(AbandonBlockResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, AbandonBlockResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AbandonBlockResponseProto[] + end +end mutable struct AddBlockRequestProto <: ProtoType - src::AbstractString - clientName::AbstractString - previous::ExtendedBlockProto - excludeNodes::Base.Vector{DatanodeInfoProto} - fileId::UInt64 - favoredNodes::Base.Vector{AbstractString} - flags::Base.Vector{Int32} - AddBlockRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AddBlockRequestProto -const __req_AddBlockRequestProto = Symbol[:src,:clientName] -const __val_AddBlockRequestProto = Dict(:fileId => 0) -meta(t::Type{AddBlockRequestProto}) = meta(t, __req_AddBlockRequestProto, ProtoBuf.DEF_FNUM, __val_AddBlockRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AddBlockRequestProto(; kwargs...) + obj = new(meta(AddBlockRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AddBlockRequestProto +const __meta_AddBlockRequestProto = Ref{ProtoMeta}() +function meta(::Type{AddBlockRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AddBlockRequestProto) + __meta_AddBlockRequestProto[] = target = ProtoMeta(AddBlockRequestProto) + req = Symbol[:src,:clientName] + val = Dict{Symbol,Any}(:fileId => 0) + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :clientName => AbstractString, :previous => ExtendedBlockProto, :excludeNodes => Base.Vector{DatanodeInfoProto}, :fileId => UInt64, :favoredNodes => Base.Vector{AbstractString}, :flags => Base.Vector{Int32}] + meta(target, AddBlockRequestProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AddBlockRequestProto[] + end +end +function Base.getproperty(obj::AddBlockRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :previous + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :excludeNodes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + elseif name === :fileId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :favoredNodes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :flags + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct AddBlockResponseProto <: ProtoType - block::LocatedBlockProto - AddBlockResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AddBlockResponseProto -const __req_AddBlockResponseProto = Symbol[:block] -meta(t::Type{AddBlockResponseProto}) = meta(t, __req_AddBlockResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AddBlockResponseProto(; kwargs...) + obj = new(meta(AddBlockResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AddBlockResponseProto +const __meta_AddBlockResponseProto = Ref{ProtoMeta}() +function meta(::Type{AddBlockResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AddBlockResponseProto) + __meta_AddBlockResponseProto[] = target = ProtoMeta(AddBlockResponseProto) + req = Symbol[:block] + allflds = Pair{Symbol,Union{Type,String}}[:block => LocatedBlockProto] + meta(target, AddBlockResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AddBlockResponseProto[] + end +end +function Base.getproperty(obj::AddBlockResponseProto, name::Symbol) + if name === :block + return (obj.__protobuf_jl_internal_values[name])::LocatedBlockProto + else + getfield(obj, name) + end +end mutable struct GetAdditionalDatanodeRequestProto <: ProtoType - src::AbstractString - blk::ExtendedBlockProto - existings::Base.Vector{DatanodeInfoProto} - excludes::Base.Vector{DatanodeInfoProto} - numAdditionalNodes::UInt32 - clientName::AbstractString - existingStorageUuids::Base.Vector{AbstractString} - fileId::UInt64 - GetAdditionalDatanodeRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetAdditionalDatanodeRequestProto -const __req_GetAdditionalDatanodeRequestProto = Symbol[:src,:blk,:numAdditionalNodes,:clientName] -const __val_GetAdditionalDatanodeRequestProto = Dict(:fileId => 0) -meta(t::Type{GetAdditionalDatanodeRequestProto}) = meta(t, __req_GetAdditionalDatanodeRequestProto, ProtoBuf.DEF_FNUM, __val_GetAdditionalDatanodeRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetAdditionalDatanodeRequestProto(; kwargs...) + obj = new(meta(GetAdditionalDatanodeRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetAdditionalDatanodeRequestProto +const __meta_GetAdditionalDatanodeRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetAdditionalDatanodeRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetAdditionalDatanodeRequestProto) + __meta_GetAdditionalDatanodeRequestProto[] = target = ProtoMeta(GetAdditionalDatanodeRequestProto) + req = Symbol[:src,:blk,:numAdditionalNodes,:clientName] + val = Dict{Symbol,Any}(:fileId => 0) + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :blk => ExtendedBlockProto, :existings => Base.Vector{DatanodeInfoProto}, :excludes => Base.Vector{DatanodeInfoProto}, :numAdditionalNodes => UInt32, :clientName => AbstractString, :existingStorageUuids => Base.Vector{AbstractString}, :fileId => UInt64] + meta(target, GetAdditionalDatanodeRequestProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetAdditionalDatanodeRequestProto[] + end +end +function Base.getproperty(obj::GetAdditionalDatanodeRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :blk + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :existings + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + elseif name === :excludes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + elseif name === :numAdditionalNodes + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :existingStorageUuids + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :fileId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct GetAdditionalDatanodeResponseProto <: ProtoType - block::LocatedBlockProto - GetAdditionalDatanodeResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetAdditionalDatanodeResponseProto -const __req_GetAdditionalDatanodeResponseProto = Symbol[:block] -meta(t::Type{GetAdditionalDatanodeResponseProto}) = meta(t, __req_GetAdditionalDatanodeResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetAdditionalDatanodeResponseProto(; kwargs...) + obj = new(meta(GetAdditionalDatanodeResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetAdditionalDatanodeResponseProto +const __meta_GetAdditionalDatanodeResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetAdditionalDatanodeResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetAdditionalDatanodeResponseProto) + __meta_GetAdditionalDatanodeResponseProto[] = target = ProtoMeta(GetAdditionalDatanodeResponseProto) + req = Symbol[:block] + allflds = Pair{Symbol,Union{Type,String}}[:block => LocatedBlockProto] + meta(target, GetAdditionalDatanodeResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetAdditionalDatanodeResponseProto[] + end +end +function Base.getproperty(obj::GetAdditionalDatanodeResponseProto, name::Symbol) + if name === :block + return (obj.__protobuf_jl_internal_values[name])::LocatedBlockProto + else + getfield(obj, name) + end +end mutable struct CompleteRequestProto <: ProtoType - src::AbstractString - clientName::AbstractString - last::ExtendedBlockProto - fileId::UInt64 - CompleteRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CompleteRequestProto -const __req_CompleteRequestProto = Symbol[:src,:clientName] -const __val_CompleteRequestProto = Dict(:fileId => 0) -meta(t::Type{CompleteRequestProto}) = meta(t, __req_CompleteRequestProto, ProtoBuf.DEF_FNUM, __val_CompleteRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CompleteRequestProto(; kwargs...) + obj = new(meta(CompleteRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CompleteRequestProto +const __meta_CompleteRequestProto = Ref{ProtoMeta}() +function meta(::Type{CompleteRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CompleteRequestProto) + __meta_CompleteRequestProto[] = target = ProtoMeta(CompleteRequestProto) + req = Symbol[:src,:clientName] + val = Dict{Symbol,Any}(:fileId => 0) + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :clientName => AbstractString, :last => ExtendedBlockProto, :fileId => UInt64] + meta(target, CompleteRequestProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CompleteRequestProto[] + end +end +function Base.getproperty(obj::CompleteRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :last + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :fileId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct CompleteResponseProto <: ProtoType - result::Bool - CompleteResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CompleteResponseProto -const __req_CompleteResponseProto = Symbol[:result] -meta(t::Type{CompleteResponseProto}) = meta(t, __req_CompleteResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CompleteResponseProto(; kwargs...) + obj = new(meta(CompleteResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CompleteResponseProto +const __meta_CompleteResponseProto = Ref{ProtoMeta}() +function meta(::Type{CompleteResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CompleteResponseProto) + __meta_CompleteResponseProto[] = target = ProtoMeta(CompleteResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, CompleteResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CompleteResponseProto[] + end +end +function Base.getproperty(obj::CompleteResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct ReportBadBlocksRequestProto <: ProtoType - blocks::Base.Vector{LocatedBlockProto} - ReportBadBlocksRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReportBadBlocksRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReportBadBlocksRequestProto(; kwargs...) + obj = new(meta(ReportBadBlocksRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReportBadBlocksRequestProto +const __meta_ReportBadBlocksRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReportBadBlocksRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReportBadBlocksRequestProto) + __meta_ReportBadBlocksRequestProto[] = target = ProtoMeta(ReportBadBlocksRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:blocks => Base.Vector{LocatedBlockProto}] + meta(target, ReportBadBlocksRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReportBadBlocksRequestProto[] + end +end +function Base.getproperty(obj::ReportBadBlocksRequestProto, name::Symbol) + if name === :blocks + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{LocatedBlockProto} + else + getfield(obj, name) + end +end mutable struct ReportBadBlocksResponseProto <: ProtoType - ReportBadBlocksResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReportBadBlocksResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReportBadBlocksResponseProto(; kwargs...) + obj = new(meta(ReportBadBlocksResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReportBadBlocksResponseProto +const __meta_ReportBadBlocksResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReportBadBlocksResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReportBadBlocksResponseProto) + __meta_ReportBadBlocksResponseProto[] = target = ProtoMeta(ReportBadBlocksResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ReportBadBlocksResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReportBadBlocksResponseProto[] + end +end mutable struct ConcatRequestProto <: ProtoType - trg::AbstractString - srcs::Base.Vector{AbstractString} - ConcatRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ConcatRequestProto -const __req_ConcatRequestProto = Symbol[:trg] -meta(t::Type{ConcatRequestProto}) = meta(t, __req_ConcatRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ConcatRequestProto(; kwargs...) + obj = new(meta(ConcatRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ConcatRequestProto +const __meta_ConcatRequestProto = Ref{ProtoMeta}() +function meta(::Type{ConcatRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ConcatRequestProto) + __meta_ConcatRequestProto[] = target = ProtoMeta(ConcatRequestProto) + req = Symbol[:trg] + allflds = Pair{Symbol,Union{Type,String}}[:trg => AbstractString, :srcs => Base.Vector{AbstractString}] + meta(target, ConcatRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ConcatRequestProto[] + end +end +function Base.getproperty(obj::ConcatRequestProto, name::Symbol) + if name === :trg + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :srcs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + else + getfield(obj, name) + end +end mutable struct ConcatResponseProto <: ProtoType - ConcatResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ConcatResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ConcatResponseProto(; kwargs...) + obj = new(meta(ConcatResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ConcatResponseProto +const __meta_ConcatResponseProto = Ref{ProtoMeta}() +function meta(::Type{ConcatResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ConcatResponseProto) + __meta_ConcatResponseProto[] = target = ProtoMeta(ConcatResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ConcatResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ConcatResponseProto[] + end +end mutable struct TruncateRequestProto <: ProtoType - src::AbstractString - newLength::UInt64 - clientName::AbstractString - TruncateRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TruncateRequestProto -const __req_TruncateRequestProto = Symbol[:src,:newLength,:clientName] -meta(t::Type{TruncateRequestProto}) = meta(t, __req_TruncateRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TruncateRequestProto(; kwargs...) + obj = new(meta(TruncateRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TruncateRequestProto +const __meta_TruncateRequestProto = Ref{ProtoMeta}() +function meta(::Type{TruncateRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TruncateRequestProto) + __meta_TruncateRequestProto[] = target = ProtoMeta(TruncateRequestProto) + req = Symbol[:src,:newLength,:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :newLength => UInt64, :clientName => AbstractString] + meta(target, TruncateRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TruncateRequestProto[] + end +end +function Base.getproperty(obj::TruncateRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :newLength + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct TruncateResponseProto <: ProtoType - result::Bool - TruncateResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TruncateResponseProto -const __req_TruncateResponseProto = Symbol[:result] -meta(t::Type{TruncateResponseProto}) = meta(t, __req_TruncateResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TruncateResponseProto(; kwargs...) + obj = new(meta(TruncateResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TruncateResponseProto +const __meta_TruncateResponseProto = Ref{ProtoMeta}() +function meta(::Type{TruncateResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TruncateResponseProto) + __meta_TruncateResponseProto[] = target = ProtoMeta(TruncateResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, TruncateResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TruncateResponseProto[] + end +end +function Base.getproperty(obj::TruncateResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct RenameRequestProto <: ProtoType - src::AbstractString - dst::AbstractString - RenameRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenameRequestProto -const __req_RenameRequestProto = Symbol[:src,:dst] -meta(t::Type{RenameRequestProto}) = meta(t, __req_RenameRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenameRequestProto(; kwargs...) + obj = new(meta(RenameRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenameRequestProto +const __meta_RenameRequestProto = Ref{ProtoMeta}() +function meta(::Type{RenameRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenameRequestProto) + __meta_RenameRequestProto[] = target = ProtoMeta(RenameRequestProto) + req = Symbol[:src,:dst] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :dst => AbstractString] + meta(target, RenameRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenameRequestProto[] + end +end +function Base.getproperty(obj::RenameRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :dst + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RenameResponseProto <: ProtoType - result::Bool - RenameResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenameResponseProto -const __req_RenameResponseProto = Symbol[:result] -meta(t::Type{RenameResponseProto}) = meta(t, __req_RenameResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenameResponseProto(; kwargs...) + obj = new(meta(RenameResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenameResponseProto +const __meta_RenameResponseProto = Ref{ProtoMeta}() +function meta(::Type{RenameResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenameResponseProto) + __meta_RenameResponseProto[] = target = ProtoMeta(RenameResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, RenameResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenameResponseProto[] + end +end +function Base.getproperty(obj::RenameResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct Rename2RequestProto <: ProtoType - src::AbstractString - dst::AbstractString - overwriteDest::Bool - moveToTrash::Bool - Rename2RequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct Rename2RequestProto -const __req_Rename2RequestProto = Symbol[:src,:dst,:overwriteDest] -meta(t::Type{Rename2RequestProto}) = meta(t, __req_Rename2RequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function Rename2RequestProto(; kwargs...) + obj = new(meta(Rename2RequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct Rename2RequestProto +const __meta_Rename2RequestProto = Ref{ProtoMeta}() +function meta(::Type{Rename2RequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_Rename2RequestProto) + __meta_Rename2RequestProto[] = target = ProtoMeta(Rename2RequestProto) + req = Symbol[:src,:dst,:overwriteDest] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :dst => AbstractString, :overwriteDest => Bool, :moveToTrash => Bool] + meta(target, Rename2RequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_Rename2RequestProto[] + end +end +function Base.getproperty(obj::Rename2RequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :dst + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :overwriteDest + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :moveToTrash + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct Rename2ResponseProto <: ProtoType - Rename2ResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct Rename2ResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function Rename2ResponseProto(; kwargs...) + obj = new(meta(Rename2ResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct Rename2ResponseProto +const __meta_Rename2ResponseProto = Ref{ProtoMeta}() +function meta(::Type{Rename2ResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_Rename2ResponseProto) + __meta_Rename2ResponseProto[] = target = ProtoMeta(Rename2ResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, Rename2ResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_Rename2ResponseProto[] + end +end mutable struct DeleteRequestProto <: ProtoType - src::AbstractString - recursive::Bool - DeleteRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DeleteRequestProto -const __req_DeleteRequestProto = Symbol[:src,:recursive] -meta(t::Type{DeleteRequestProto}) = meta(t, __req_DeleteRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DeleteRequestProto(; kwargs...) + obj = new(meta(DeleteRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DeleteRequestProto +const __meta_DeleteRequestProto = Ref{ProtoMeta}() +function meta(::Type{DeleteRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DeleteRequestProto) + __meta_DeleteRequestProto[] = target = ProtoMeta(DeleteRequestProto) + req = Symbol[:src,:recursive] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :recursive => Bool] + meta(target, DeleteRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DeleteRequestProto[] + end +end +function Base.getproperty(obj::DeleteRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :recursive + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct DeleteResponseProto <: ProtoType - result::Bool - DeleteResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DeleteResponseProto -const __req_DeleteResponseProto = Symbol[:result] -meta(t::Type{DeleteResponseProto}) = meta(t, __req_DeleteResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DeleteResponseProto(; kwargs...) + obj = new(meta(DeleteResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DeleteResponseProto +const __meta_DeleteResponseProto = Ref{ProtoMeta}() +function meta(::Type{DeleteResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DeleteResponseProto) + __meta_DeleteResponseProto[] = target = ProtoMeta(DeleteResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, DeleteResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DeleteResponseProto[] + end +end +function Base.getproperty(obj::DeleteResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct MkdirsRequestProto <: ProtoType - src::AbstractString - masked::FsPermissionProto - createParent::Bool - MkdirsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MkdirsRequestProto -const __req_MkdirsRequestProto = Symbol[:src,:masked,:createParent] -meta(t::Type{MkdirsRequestProto}) = meta(t, __req_MkdirsRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MkdirsRequestProto(; kwargs...) + obj = new(meta(MkdirsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MkdirsRequestProto +const __meta_MkdirsRequestProto = Ref{ProtoMeta}() +function meta(::Type{MkdirsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MkdirsRequestProto) + __meta_MkdirsRequestProto[] = target = ProtoMeta(MkdirsRequestProto) + req = Symbol[:src,:masked,:createParent] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :masked => FsPermissionProto, :createParent => Bool] + meta(target, MkdirsRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MkdirsRequestProto[] + end +end +function Base.getproperty(obj::MkdirsRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :masked + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :createParent + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct MkdirsResponseProto <: ProtoType - result::Bool - MkdirsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MkdirsResponseProto -const __req_MkdirsResponseProto = Symbol[:result] -meta(t::Type{MkdirsResponseProto}) = meta(t, __req_MkdirsResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MkdirsResponseProto(; kwargs...) + obj = new(meta(MkdirsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MkdirsResponseProto +const __meta_MkdirsResponseProto = Ref{ProtoMeta}() +function meta(::Type{MkdirsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MkdirsResponseProto) + __meta_MkdirsResponseProto[] = target = ProtoMeta(MkdirsResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, MkdirsResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MkdirsResponseProto[] + end +end +function Base.getproperty(obj::MkdirsResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetListingRequestProto <: ProtoType - src::AbstractString - startAfter::Array{UInt8,1} - needLocation::Bool - GetListingRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetListingRequestProto -const __req_GetListingRequestProto = Symbol[:src,:startAfter,:needLocation] -meta(t::Type{GetListingRequestProto}) = meta(t, __req_GetListingRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetListingRequestProto(; kwargs...) + obj = new(meta(GetListingRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetListingRequestProto +const __meta_GetListingRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetListingRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetListingRequestProto) + __meta_GetListingRequestProto[] = target = ProtoMeta(GetListingRequestProto) + req = Symbol[:src,:startAfter,:needLocation] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :startAfter => Array{UInt8,1}, :needLocation => Bool] + meta(target, GetListingRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetListingRequestProto[] + end +end +function Base.getproperty(obj::GetListingRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :startAfter + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :needLocation + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetListingResponseProto <: ProtoType - dirList::DirectoryListingProto - GetListingResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetListingResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetListingResponseProto(; kwargs...) + obj = new(meta(GetListingResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetListingResponseProto +const __meta_GetListingResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetListingResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetListingResponseProto) + __meta_GetListingResponseProto[] = target = ProtoMeta(GetListingResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:dirList => DirectoryListingProto] + meta(target, GetListingResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetListingResponseProto[] + end +end +function Base.getproperty(obj::GetListingResponseProto, name::Symbol) + if name === :dirList + return (obj.__protobuf_jl_internal_values[name])::DirectoryListingProto + else + getfield(obj, name) + end +end mutable struct GetSnapshottableDirListingRequestProto <: ProtoType - GetSnapshottableDirListingRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetSnapshottableDirListingRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetSnapshottableDirListingRequestProto(; kwargs...) + obj = new(meta(GetSnapshottableDirListingRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetSnapshottableDirListingRequestProto +const __meta_GetSnapshottableDirListingRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetSnapshottableDirListingRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetSnapshottableDirListingRequestProto) + __meta_GetSnapshottableDirListingRequestProto[] = target = ProtoMeta(GetSnapshottableDirListingRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetSnapshottableDirListingRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetSnapshottableDirListingRequestProto[] + end +end mutable struct GetSnapshottableDirListingResponseProto <: ProtoType - snapshottableDirList::SnapshottableDirectoryListingProto - GetSnapshottableDirListingResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetSnapshottableDirListingResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetSnapshottableDirListingResponseProto(; kwargs...) + obj = new(meta(GetSnapshottableDirListingResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetSnapshottableDirListingResponseProto +const __meta_GetSnapshottableDirListingResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetSnapshottableDirListingResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetSnapshottableDirListingResponseProto) + __meta_GetSnapshottableDirListingResponseProto[] = target = ProtoMeta(GetSnapshottableDirListingResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:snapshottableDirList => SnapshottableDirectoryListingProto] + meta(target, GetSnapshottableDirListingResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetSnapshottableDirListingResponseProto[] + end +end +function Base.getproperty(obj::GetSnapshottableDirListingResponseProto, name::Symbol) + if name === :snapshottableDirList + return (obj.__protobuf_jl_internal_values[name])::SnapshottableDirectoryListingProto + else + getfield(obj, name) + end +end mutable struct GetSnapshotDiffReportRequestProto <: ProtoType - snapshotRoot::AbstractString - fromSnapshot::AbstractString - toSnapshot::AbstractString - GetSnapshotDiffReportRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetSnapshotDiffReportRequestProto -const __req_GetSnapshotDiffReportRequestProto = Symbol[:snapshotRoot,:fromSnapshot,:toSnapshot] -meta(t::Type{GetSnapshotDiffReportRequestProto}) = meta(t, __req_GetSnapshotDiffReportRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetSnapshotDiffReportRequestProto(; kwargs...) + obj = new(meta(GetSnapshotDiffReportRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetSnapshotDiffReportRequestProto +const __meta_GetSnapshotDiffReportRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetSnapshotDiffReportRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetSnapshotDiffReportRequestProto) + __meta_GetSnapshotDiffReportRequestProto[] = target = ProtoMeta(GetSnapshotDiffReportRequestProto) + req = Symbol[:snapshotRoot,:fromSnapshot,:toSnapshot] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString, :fromSnapshot => AbstractString, :toSnapshot => AbstractString] + meta(target, GetSnapshotDiffReportRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetSnapshotDiffReportRequestProto[] + end +end +function Base.getproperty(obj::GetSnapshotDiffReportRequestProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :fromSnapshot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :toSnapshot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetSnapshotDiffReportResponseProto <: ProtoType - diffReport::SnapshotDiffReportProto - GetSnapshotDiffReportResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetSnapshotDiffReportResponseProto -const __req_GetSnapshotDiffReportResponseProto = Symbol[:diffReport] -meta(t::Type{GetSnapshotDiffReportResponseProto}) = meta(t, __req_GetSnapshotDiffReportResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetSnapshotDiffReportResponseProto(; kwargs...) + obj = new(meta(GetSnapshotDiffReportResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetSnapshotDiffReportResponseProto +const __meta_GetSnapshotDiffReportResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetSnapshotDiffReportResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetSnapshotDiffReportResponseProto) + __meta_GetSnapshotDiffReportResponseProto[] = target = ProtoMeta(GetSnapshotDiffReportResponseProto) + req = Symbol[:diffReport] + allflds = Pair{Symbol,Union{Type,String}}[:diffReport => SnapshotDiffReportProto] + meta(target, GetSnapshotDiffReportResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetSnapshotDiffReportResponseProto[] + end +end +function Base.getproperty(obj::GetSnapshotDiffReportResponseProto, name::Symbol) + if name === :diffReport + return (obj.__protobuf_jl_internal_values[name])::SnapshotDiffReportProto + else + getfield(obj, name) + end +end mutable struct RenewLeaseRequestProto <: ProtoType - clientName::AbstractString - RenewLeaseRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenewLeaseRequestProto -const __req_RenewLeaseRequestProto = Symbol[:clientName] -meta(t::Type{RenewLeaseRequestProto}) = meta(t, __req_RenewLeaseRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenewLeaseRequestProto(; kwargs...) + obj = new(meta(RenewLeaseRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenewLeaseRequestProto +const __meta_RenewLeaseRequestProto = Ref{ProtoMeta}() +function meta(::Type{RenewLeaseRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenewLeaseRequestProto) + __meta_RenewLeaseRequestProto[] = target = ProtoMeta(RenewLeaseRequestProto) + req = Symbol[:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:clientName => AbstractString] + meta(target, RenewLeaseRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenewLeaseRequestProto[] + end +end +function Base.getproperty(obj::RenewLeaseRequestProto, name::Symbol) + if name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RenewLeaseResponseProto <: ProtoType - RenewLeaseResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenewLeaseResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenewLeaseResponseProto(; kwargs...) + obj = new(meta(RenewLeaseResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenewLeaseResponseProto +const __meta_RenewLeaseResponseProto = Ref{ProtoMeta}() +function meta(::Type{RenewLeaseResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenewLeaseResponseProto) + __meta_RenewLeaseResponseProto[] = target = ProtoMeta(RenewLeaseResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RenewLeaseResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenewLeaseResponseProto[] + end +end mutable struct RecoverLeaseRequestProto <: ProtoType - src::AbstractString - clientName::AbstractString - RecoverLeaseRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RecoverLeaseRequestProto -const __req_RecoverLeaseRequestProto = Symbol[:src,:clientName] -meta(t::Type{RecoverLeaseRequestProto}) = meta(t, __req_RecoverLeaseRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RecoverLeaseRequestProto(; kwargs...) + obj = new(meta(RecoverLeaseRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RecoverLeaseRequestProto +const __meta_RecoverLeaseRequestProto = Ref{ProtoMeta}() +function meta(::Type{RecoverLeaseRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RecoverLeaseRequestProto) + __meta_RecoverLeaseRequestProto[] = target = ProtoMeta(RecoverLeaseRequestProto) + req = Symbol[:src,:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :clientName => AbstractString] + meta(target, RecoverLeaseRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RecoverLeaseRequestProto[] + end +end +function Base.getproperty(obj::RecoverLeaseRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RecoverLeaseResponseProto <: ProtoType - result::Bool - RecoverLeaseResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RecoverLeaseResponseProto -const __req_RecoverLeaseResponseProto = Symbol[:result] -meta(t::Type{RecoverLeaseResponseProto}) = meta(t, __req_RecoverLeaseResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RecoverLeaseResponseProto(; kwargs...) + obj = new(meta(RecoverLeaseResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RecoverLeaseResponseProto +const __meta_RecoverLeaseResponseProto = Ref{ProtoMeta}() +function meta(::Type{RecoverLeaseResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RecoverLeaseResponseProto) + __meta_RecoverLeaseResponseProto[] = target = ProtoMeta(RecoverLeaseResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, RecoverLeaseResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RecoverLeaseResponseProto[] + end +end +function Base.getproperty(obj::RecoverLeaseResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetFsStatusRequestProto <: ProtoType - GetFsStatusRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetFsStatusRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetFsStatusRequestProto(; kwargs...) + obj = new(meta(GetFsStatusRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetFsStatusRequestProto +const __meta_GetFsStatusRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetFsStatusRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetFsStatusRequestProto) + __meta_GetFsStatusRequestProto[] = target = ProtoMeta(GetFsStatusRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetFsStatusRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetFsStatusRequestProto[] + end +end mutable struct GetFsStatsResponseProto <: ProtoType - capacity::UInt64 - used::UInt64 - remaining::UInt64 - under_replicated::UInt64 - corrupt_blocks::UInt64 - missing_blocks::UInt64 - missing_repl_one_blocks::UInt64 - blocks_in_future::UInt64 - pending_deletion_blocks::UInt64 - GetFsStatsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetFsStatsResponseProto -const __req_GetFsStatsResponseProto = Symbol[:capacity,:used,:remaining,:under_replicated,:corrupt_blocks,:missing_blocks] -meta(t::Type{GetFsStatsResponseProto}) = meta(t, __req_GetFsStatsResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetFsStatsResponseProto(; kwargs...) + obj = new(meta(GetFsStatsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetFsStatsResponseProto +const __meta_GetFsStatsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetFsStatsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetFsStatsResponseProto) + __meta_GetFsStatsResponseProto[] = target = ProtoMeta(GetFsStatsResponseProto) + req = Symbol[:capacity,:used,:remaining,:under_replicated,:corrupt_blocks,:missing_blocks] + allflds = Pair{Symbol,Union{Type,String}}[:capacity => UInt64, :used => UInt64, :remaining => UInt64, :under_replicated => UInt64, :corrupt_blocks => UInt64, :missing_blocks => UInt64, :missing_repl_one_blocks => UInt64, :blocks_in_future => UInt64, :pending_deletion_blocks => UInt64] + meta(target, GetFsStatsResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetFsStatsResponseProto[] + end +end +function Base.getproperty(obj::GetFsStatsResponseProto, name::Symbol) + if name === :capacity + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :used + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :remaining + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :under_replicated + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :corrupt_blocks + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :missing_blocks + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :missing_repl_one_blocks + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :blocks_in_future + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :pending_deletion_blocks + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct GetDatanodeReportRequestProto <: ProtoType - _type::Int32 - GetDatanodeReportRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDatanodeReportRequestProto -const __req_GetDatanodeReportRequestProto = Symbol[:_type] -meta(t::Type{GetDatanodeReportRequestProto}) = meta(t, __req_GetDatanodeReportRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDatanodeReportRequestProto(; kwargs...) + obj = new(meta(GetDatanodeReportRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDatanodeReportRequestProto +const __meta_GetDatanodeReportRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetDatanodeReportRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDatanodeReportRequestProto) + __meta_GetDatanodeReportRequestProto[] = target = ProtoMeta(GetDatanodeReportRequestProto) + req = Symbol[:_type] + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32] + meta(target, GetDatanodeReportRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDatanodeReportRequestProto[] + end +end +function Base.getproperty(obj::GetDatanodeReportRequestProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct GetDatanodeReportResponseProto <: ProtoType - di::Base.Vector{DatanodeInfoProto} - GetDatanodeReportResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDatanodeReportResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDatanodeReportResponseProto(; kwargs...) + obj = new(meta(GetDatanodeReportResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDatanodeReportResponseProto +const __meta_GetDatanodeReportResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetDatanodeReportResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDatanodeReportResponseProto) + __meta_GetDatanodeReportResponseProto[] = target = ProtoMeta(GetDatanodeReportResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:di => Base.Vector{DatanodeInfoProto}] + meta(target, GetDatanodeReportResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDatanodeReportResponseProto[] + end +end +function Base.getproperty(obj::GetDatanodeReportResponseProto, name::Symbol) + if name === :di + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + else + getfield(obj, name) + end +end mutable struct GetDatanodeStorageReportRequestProto <: ProtoType - _type::Int32 - GetDatanodeStorageReportRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDatanodeStorageReportRequestProto -const __req_GetDatanodeStorageReportRequestProto = Symbol[:_type] -meta(t::Type{GetDatanodeStorageReportRequestProto}) = meta(t, __req_GetDatanodeStorageReportRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDatanodeStorageReportRequestProto(; kwargs...) + obj = new(meta(GetDatanodeStorageReportRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDatanodeStorageReportRequestProto +const __meta_GetDatanodeStorageReportRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetDatanodeStorageReportRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDatanodeStorageReportRequestProto) + __meta_GetDatanodeStorageReportRequestProto[] = target = ProtoMeta(GetDatanodeStorageReportRequestProto) + req = Symbol[:_type] + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32] + meta(target, GetDatanodeStorageReportRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDatanodeStorageReportRequestProto[] + end +end +function Base.getproperty(obj::GetDatanodeStorageReportRequestProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct DatanodeStorageReportProto <: ProtoType - datanodeInfo::DatanodeInfoProto - storageReports::Base.Vector{StorageReportProto} - DatanodeStorageReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeStorageReportProto -const __req_DatanodeStorageReportProto = Symbol[:datanodeInfo] -meta(t::Type{DatanodeStorageReportProto}) = meta(t, __req_DatanodeStorageReportProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeStorageReportProto(; kwargs...) + obj = new(meta(DatanodeStorageReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeStorageReportProto +const __meta_DatanodeStorageReportProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeStorageReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeStorageReportProto) + __meta_DatanodeStorageReportProto[] = target = ProtoMeta(DatanodeStorageReportProto) + req = Symbol[:datanodeInfo] + allflds = Pair{Symbol,Union{Type,String}}[:datanodeInfo => DatanodeInfoProto, :storageReports => Base.Vector{StorageReportProto}] + meta(target, DatanodeStorageReportProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeStorageReportProto[] + end +end +function Base.getproperty(obj::DatanodeStorageReportProto, name::Symbol) + if name === :datanodeInfo + return (obj.__protobuf_jl_internal_values[name])::DatanodeInfoProto + elseif name === :storageReports + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StorageReportProto} + else + getfield(obj, name) + end +end mutable struct GetDatanodeStorageReportResponseProto <: ProtoType - datanodeStorageReports::Base.Vector{DatanodeStorageReportProto} - GetDatanodeStorageReportResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDatanodeStorageReportResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDatanodeStorageReportResponseProto(; kwargs...) + obj = new(meta(GetDatanodeStorageReportResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDatanodeStorageReportResponseProto +const __meta_GetDatanodeStorageReportResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetDatanodeStorageReportResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDatanodeStorageReportResponseProto) + __meta_GetDatanodeStorageReportResponseProto[] = target = ProtoMeta(GetDatanodeStorageReportResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:datanodeStorageReports => Base.Vector{DatanodeStorageReportProto}] + meta(target, GetDatanodeStorageReportResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDatanodeStorageReportResponseProto[] + end +end +function Base.getproperty(obj::GetDatanodeStorageReportResponseProto, name::Symbol) + if name === :datanodeStorageReports + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeStorageReportProto} + else + getfield(obj, name) + end +end mutable struct GetPreferredBlockSizeRequestProto <: ProtoType - filename::AbstractString - GetPreferredBlockSizeRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetPreferredBlockSizeRequestProto -const __req_GetPreferredBlockSizeRequestProto = Symbol[:filename] -meta(t::Type{GetPreferredBlockSizeRequestProto}) = meta(t, __req_GetPreferredBlockSizeRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetPreferredBlockSizeRequestProto(; kwargs...) + obj = new(meta(GetPreferredBlockSizeRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetPreferredBlockSizeRequestProto +const __meta_GetPreferredBlockSizeRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetPreferredBlockSizeRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetPreferredBlockSizeRequestProto) + __meta_GetPreferredBlockSizeRequestProto[] = target = ProtoMeta(GetPreferredBlockSizeRequestProto) + req = Symbol[:filename] + allflds = Pair{Symbol,Union{Type,String}}[:filename => AbstractString] + meta(target, GetPreferredBlockSizeRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetPreferredBlockSizeRequestProto[] + end +end +function Base.getproperty(obj::GetPreferredBlockSizeRequestProto, name::Symbol) + if name === :filename + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetPreferredBlockSizeResponseProto <: ProtoType - bsize::UInt64 - GetPreferredBlockSizeResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetPreferredBlockSizeResponseProto -const __req_GetPreferredBlockSizeResponseProto = Symbol[:bsize] -meta(t::Type{GetPreferredBlockSizeResponseProto}) = meta(t, __req_GetPreferredBlockSizeResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetPreferredBlockSizeResponseProto(; kwargs...) + obj = new(meta(GetPreferredBlockSizeResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetPreferredBlockSizeResponseProto +const __meta_GetPreferredBlockSizeResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetPreferredBlockSizeResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetPreferredBlockSizeResponseProto) + __meta_GetPreferredBlockSizeResponseProto[] = target = ProtoMeta(GetPreferredBlockSizeResponseProto) + req = Symbol[:bsize] + allflds = Pair{Symbol,Union{Type,String}}[:bsize => UInt64] + meta(target, GetPreferredBlockSizeResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetPreferredBlockSizeResponseProto[] + end +end +function Base.getproperty(obj::GetPreferredBlockSizeResponseProto, name::Symbol) + if name === :bsize + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct SetSafeModeRequestProto <: ProtoType - action::Int32 - checked::Bool - SetSafeModeRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetSafeModeRequestProto -const __req_SetSafeModeRequestProto = Symbol[:action] -const __val_SetSafeModeRequestProto = Dict(:checked => false) -meta(t::Type{SetSafeModeRequestProto}) = meta(t, __req_SetSafeModeRequestProto, ProtoBuf.DEF_FNUM, __val_SetSafeModeRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetSafeModeRequestProto(; kwargs...) + obj = new(meta(SetSafeModeRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetSafeModeRequestProto +const __meta_SetSafeModeRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetSafeModeRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetSafeModeRequestProto) + __meta_SetSafeModeRequestProto[] = target = ProtoMeta(SetSafeModeRequestProto) + req = Symbol[:action] + val = Dict{Symbol,Any}(:checked => false) + allflds = Pair{Symbol,Union{Type,String}}[:action => Int32, :checked => Bool] + meta(target, SetSafeModeRequestProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetSafeModeRequestProto[] + end +end +function Base.getproperty(obj::SetSafeModeRequestProto, name::Symbol) + if name === :action + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :checked + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct SetSafeModeResponseProto <: ProtoType - result::Bool - SetSafeModeResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetSafeModeResponseProto -const __req_SetSafeModeResponseProto = Symbol[:result] -meta(t::Type{SetSafeModeResponseProto}) = meta(t, __req_SetSafeModeResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetSafeModeResponseProto(; kwargs...) + obj = new(meta(SetSafeModeResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetSafeModeResponseProto +const __meta_SetSafeModeResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetSafeModeResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetSafeModeResponseProto) + __meta_SetSafeModeResponseProto[] = target = ProtoMeta(SetSafeModeResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, SetSafeModeResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetSafeModeResponseProto[] + end +end +function Base.getproperty(obj::SetSafeModeResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct SaveNamespaceRequestProto <: ProtoType - SaveNamespaceRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SaveNamespaceRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SaveNamespaceRequestProto(; kwargs...) + obj = new(meta(SaveNamespaceRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SaveNamespaceRequestProto +const __meta_SaveNamespaceRequestProto = Ref{ProtoMeta}() +function meta(::Type{SaveNamespaceRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SaveNamespaceRequestProto) + __meta_SaveNamespaceRequestProto[] = target = ProtoMeta(SaveNamespaceRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SaveNamespaceRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SaveNamespaceRequestProto[] + end +end mutable struct SaveNamespaceResponseProto <: ProtoType - SaveNamespaceResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SaveNamespaceResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SaveNamespaceResponseProto(; kwargs...) + obj = new(meta(SaveNamespaceResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SaveNamespaceResponseProto +const __meta_SaveNamespaceResponseProto = Ref{ProtoMeta}() +function meta(::Type{SaveNamespaceResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SaveNamespaceResponseProto) + __meta_SaveNamespaceResponseProto[] = target = ProtoMeta(SaveNamespaceResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SaveNamespaceResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SaveNamespaceResponseProto[] + end +end mutable struct RollEditsRequestProto <: ProtoType - RollEditsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollEditsRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollEditsRequestProto(; kwargs...) + obj = new(meta(RollEditsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollEditsRequestProto +const __meta_RollEditsRequestProto = Ref{ProtoMeta}() +function meta(::Type{RollEditsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollEditsRequestProto) + __meta_RollEditsRequestProto[] = target = ProtoMeta(RollEditsRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RollEditsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollEditsRequestProto[] + end +end mutable struct RollEditsResponseProto <: ProtoType - newSegmentTxId::UInt64 - RollEditsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollEditsResponseProto -const __req_RollEditsResponseProto = Symbol[:newSegmentTxId] -meta(t::Type{RollEditsResponseProto}) = meta(t, __req_RollEditsResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollEditsResponseProto(; kwargs...) + obj = new(meta(RollEditsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollEditsResponseProto +const __meta_RollEditsResponseProto = Ref{ProtoMeta}() +function meta(::Type{RollEditsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollEditsResponseProto) + __meta_RollEditsResponseProto[] = target = ProtoMeta(RollEditsResponseProto) + req = Symbol[:newSegmentTxId] + allflds = Pair{Symbol,Union{Type,String}}[:newSegmentTxId => UInt64] + meta(target, RollEditsResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollEditsResponseProto[] + end +end +function Base.getproperty(obj::RollEditsResponseProto, name::Symbol) + if name === :newSegmentTxId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct RestoreFailedStorageRequestProto <: ProtoType - arg::AbstractString - RestoreFailedStorageRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RestoreFailedStorageRequestProto -const __req_RestoreFailedStorageRequestProto = Symbol[:arg] -meta(t::Type{RestoreFailedStorageRequestProto}) = meta(t, __req_RestoreFailedStorageRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RestoreFailedStorageRequestProto(; kwargs...) + obj = new(meta(RestoreFailedStorageRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RestoreFailedStorageRequestProto +const __meta_RestoreFailedStorageRequestProto = Ref{ProtoMeta}() +function meta(::Type{RestoreFailedStorageRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RestoreFailedStorageRequestProto) + __meta_RestoreFailedStorageRequestProto[] = target = ProtoMeta(RestoreFailedStorageRequestProto) + req = Symbol[:arg] + allflds = Pair{Symbol,Union{Type,String}}[:arg => AbstractString] + meta(target, RestoreFailedStorageRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RestoreFailedStorageRequestProto[] + end +end +function Base.getproperty(obj::RestoreFailedStorageRequestProto, name::Symbol) + if name === :arg + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RestoreFailedStorageResponseProto <: ProtoType - result::Bool - RestoreFailedStorageResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RestoreFailedStorageResponseProto -const __req_RestoreFailedStorageResponseProto = Symbol[:result] -meta(t::Type{RestoreFailedStorageResponseProto}) = meta(t, __req_RestoreFailedStorageResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RestoreFailedStorageResponseProto(; kwargs...) + obj = new(meta(RestoreFailedStorageResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RestoreFailedStorageResponseProto +const __meta_RestoreFailedStorageResponseProto = Ref{ProtoMeta}() +function meta(::Type{RestoreFailedStorageResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RestoreFailedStorageResponseProto) + __meta_RestoreFailedStorageResponseProto[] = target = ProtoMeta(RestoreFailedStorageResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, RestoreFailedStorageResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RestoreFailedStorageResponseProto[] + end +end +function Base.getproperty(obj::RestoreFailedStorageResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct RefreshNodesRequestProto <: ProtoType - RefreshNodesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RefreshNodesRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RefreshNodesRequestProto(; kwargs...) + obj = new(meta(RefreshNodesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RefreshNodesRequestProto +const __meta_RefreshNodesRequestProto = Ref{ProtoMeta}() +function meta(::Type{RefreshNodesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RefreshNodesRequestProto) + __meta_RefreshNodesRequestProto[] = target = ProtoMeta(RefreshNodesRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RefreshNodesRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RefreshNodesRequestProto[] + end +end mutable struct RefreshNodesResponseProto <: ProtoType - RefreshNodesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RefreshNodesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RefreshNodesResponseProto(; kwargs...) + obj = new(meta(RefreshNodesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RefreshNodesResponseProto +const __meta_RefreshNodesResponseProto = Ref{ProtoMeta}() +function meta(::Type{RefreshNodesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RefreshNodesResponseProto) + __meta_RefreshNodesResponseProto[] = target = ProtoMeta(RefreshNodesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RefreshNodesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RefreshNodesResponseProto[] + end +end mutable struct FinalizeUpgradeRequestProto <: ProtoType - FinalizeUpgradeRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FinalizeUpgradeRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FinalizeUpgradeRequestProto(; kwargs...) + obj = new(meta(FinalizeUpgradeRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FinalizeUpgradeRequestProto +const __meta_FinalizeUpgradeRequestProto = Ref{ProtoMeta}() +function meta(::Type{FinalizeUpgradeRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FinalizeUpgradeRequestProto) + __meta_FinalizeUpgradeRequestProto[] = target = ProtoMeta(FinalizeUpgradeRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, FinalizeUpgradeRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FinalizeUpgradeRequestProto[] + end +end mutable struct FinalizeUpgradeResponseProto <: ProtoType - FinalizeUpgradeResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FinalizeUpgradeResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FinalizeUpgradeResponseProto(; kwargs...) + obj = new(meta(FinalizeUpgradeResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FinalizeUpgradeResponseProto +const __meta_FinalizeUpgradeResponseProto = Ref{ProtoMeta}() +function meta(::Type{FinalizeUpgradeResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FinalizeUpgradeResponseProto) + __meta_FinalizeUpgradeResponseProto[] = target = ProtoMeta(FinalizeUpgradeResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, FinalizeUpgradeResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FinalizeUpgradeResponseProto[] + end +end mutable struct RollingUpgradeRequestProto <: ProtoType - action::Int32 - RollingUpgradeRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollingUpgradeRequestProto -const __req_RollingUpgradeRequestProto = Symbol[:action] -meta(t::Type{RollingUpgradeRequestProto}) = meta(t, __req_RollingUpgradeRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollingUpgradeRequestProto(; kwargs...) + obj = new(meta(RollingUpgradeRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollingUpgradeRequestProto +const __meta_RollingUpgradeRequestProto = Ref{ProtoMeta}() +function meta(::Type{RollingUpgradeRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollingUpgradeRequestProto) + __meta_RollingUpgradeRequestProto[] = target = ProtoMeta(RollingUpgradeRequestProto) + req = Symbol[:action] + allflds = Pair{Symbol,Union{Type,String}}[:action => Int32] + meta(target, RollingUpgradeRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollingUpgradeRequestProto[] + end +end +function Base.getproperty(obj::RollingUpgradeRequestProto, name::Symbol) + if name === :action + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct RollingUpgradeInfoProto <: ProtoType - status::RollingUpgradeStatusProto - startTime::UInt64 - finalizeTime::UInt64 - createdRollbackImages::Bool - RollingUpgradeInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollingUpgradeInfoProto -const __req_RollingUpgradeInfoProto = Symbol[:status,:startTime,:finalizeTime,:createdRollbackImages] -meta(t::Type{RollingUpgradeInfoProto}) = meta(t, __req_RollingUpgradeInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollingUpgradeInfoProto(; kwargs...) + obj = new(meta(RollingUpgradeInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollingUpgradeInfoProto +const __meta_RollingUpgradeInfoProto = Ref{ProtoMeta}() +function meta(::Type{RollingUpgradeInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollingUpgradeInfoProto) + __meta_RollingUpgradeInfoProto[] = target = ProtoMeta(RollingUpgradeInfoProto) + req = Symbol[:status,:startTime,:finalizeTime,:createdRollbackImages] + allflds = Pair{Symbol,Union{Type,String}}[:status => RollingUpgradeStatusProto, :startTime => UInt64, :finalizeTime => UInt64, :createdRollbackImages => Bool] + meta(target, RollingUpgradeInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollingUpgradeInfoProto[] + end +end +function Base.getproperty(obj::RollingUpgradeInfoProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::RollingUpgradeStatusProto + elseif name === :startTime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :finalizeTime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :createdRollbackImages + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct RollingUpgradeResponseProto <: ProtoType - rollingUpgradeInfo::RollingUpgradeInfoProto - RollingUpgradeResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollingUpgradeResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollingUpgradeResponseProto(; kwargs...) + obj = new(meta(RollingUpgradeResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollingUpgradeResponseProto +const __meta_RollingUpgradeResponseProto = Ref{ProtoMeta}() +function meta(::Type{RollingUpgradeResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollingUpgradeResponseProto) + __meta_RollingUpgradeResponseProto[] = target = ProtoMeta(RollingUpgradeResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:rollingUpgradeInfo => RollingUpgradeInfoProto] + meta(target, RollingUpgradeResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollingUpgradeResponseProto[] + end +end +function Base.getproperty(obj::RollingUpgradeResponseProto, name::Symbol) + if name === :rollingUpgradeInfo + return (obj.__protobuf_jl_internal_values[name])::RollingUpgradeInfoProto + else + getfield(obj, name) + end +end mutable struct ListCorruptFileBlocksRequestProto <: ProtoType - path::AbstractString - cookie::AbstractString - ListCorruptFileBlocksRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListCorruptFileBlocksRequestProto -const __req_ListCorruptFileBlocksRequestProto = Symbol[:path] -meta(t::Type{ListCorruptFileBlocksRequestProto}) = meta(t, __req_ListCorruptFileBlocksRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListCorruptFileBlocksRequestProto(; kwargs...) + obj = new(meta(ListCorruptFileBlocksRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListCorruptFileBlocksRequestProto +const __meta_ListCorruptFileBlocksRequestProto = Ref{ProtoMeta}() +function meta(::Type{ListCorruptFileBlocksRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListCorruptFileBlocksRequestProto) + __meta_ListCorruptFileBlocksRequestProto[] = target = ProtoMeta(ListCorruptFileBlocksRequestProto) + req = Symbol[:path] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :cookie => AbstractString] + meta(target, ListCorruptFileBlocksRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListCorruptFileBlocksRequestProto[] + end +end +function Base.getproperty(obj::ListCorruptFileBlocksRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :cookie + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ListCorruptFileBlocksResponseProto <: ProtoType - corrupt::CorruptFileBlocksProto - ListCorruptFileBlocksResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListCorruptFileBlocksResponseProto -const __req_ListCorruptFileBlocksResponseProto = Symbol[:corrupt] -meta(t::Type{ListCorruptFileBlocksResponseProto}) = meta(t, __req_ListCorruptFileBlocksResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListCorruptFileBlocksResponseProto(; kwargs...) + obj = new(meta(ListCorruptFileBlocksResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListCorruptFileBlocksResponseProto +const __meta_ListCorruptFileBlocksResponseProto = Ref{ProtoMeta}() +function meta(::Type{ListCorruptFileBlocksResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListCorruptFileBlocksResponseProto) + __meta_ListCorruptFileBlocksResponseProto[] = target = ProtoMeta(ListCorruptFileBlocksResponseProto) + req = Symbol[:corrupt] + allflds = Pair{Symbol,Union{Type,String}}[:corrupt => CorruptFileBlocksProto] + meta(target, ListCorruptFileBlocksResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListCorruptFileBlocksResponseProto[] + end +end +function Base.getproperty(obj::ListCorruptFileBlocksResponseProto, name::Symbol) + if name === :corrupt + return (obj.__protobuf_jl_internal_values[name])::CorruptFileBlocksProto + else + getfield(obj, name) + end +end mutable struct MetaSaveRequestProto <: ProtoType - filename::AbstractString - MetaSaveRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MetaSaveRequestProto -const __req_MetaSaveRequestProto = Symbol[:filename] -meta(t::Type{MetaSaveRequestProto}) = meta(t, __req_MetaSaveRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MetaSaveRequestProto(; kwargs...) + obj = new(meta(MetaSaveRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MetaSaveRequestProto +const __meta_MetaSaveRequestProto = Ref{ProtoMeta}() +function meta(::Type{MetaSaveRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MetaSaveRequestProto) + __meta_MetaSaveRequestProto[] = target = ProtoMeta(MetaSaveRequestProto) + req = Symbol[:filename] + allflds = Pair{Symbol,Union{Type,String}}[:filename => AbstractString] + meta(target, MetaSaveRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MetaSaveRequestProto[] + end +end +function Base.getproperty(obj::MetaSaveRequestProto, name::Symbol) + if name === :filename + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct MetaSaveResponseProto <: ProtoType - MetaSaveResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MetaSaveResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MetaSaveResponseProto(; kwargs...) + obj = new(meta(MetaSaveResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MetaSaveResponseProto +const __meta_MetaSaveResponseProto = Ref{ProtoMeta}() +function meta(::Type{MetaSaveResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MetaSaveResponseProto) + __meta_MetaSaveResponseProto[] = target = ProtoMeta(MetaSaveResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, MetaSaveResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MetaSaveResponseProto[] + end +end mutable struct GetFileInfoRequestProto <: ProtoType - src::AbstractString - GetFileInfoRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetFileInfoRequestProto -const __req_GetFileInfoRequestProto = Symbol[:src] -meta(t::Type{GetFileInfoRequestProto}) = meta(t, __req_GetFileInfoRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetFileInfoRequestProto(; kwargs...) + obj = new(meta(GetFileInfoRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetFileInfoRequestProto +const __meta_GetFileInfoRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetFileInfoRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetFileInfoRequestProto) + __meta_GetFileInfoRequestProto[] = target = ProtoMeta(GetFileInfoRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, GetFileInfoRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetFileInfoRequestProto[] + end +end +function Base.getproperty(obj::GetFileInfoRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetFileInfoResponseProto <: ProtoType - fs::HdfsFileStatusProto - GetFileInfoResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetFileInfoResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetFileInfoResponseProto(; kwargs...) + obj = new(meta(GetFileInfoResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetFileInfoResponseProto +const __meta_GetFileInfoResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetFileInfoResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetFileInfoResponseProto) + __meta_GetFileInfoResponseProto[] = target = ProtoMeta(GetFileInfoResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:fs => HdfsFileStatusProto] + meta(target, GetFileInfoResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetFileInfoResponseProto[] + end +end +function Base.getproperty(obj::GetFileInfoResponseProto, name::Symbol) + if name === :fs + return (obj.__protobuf_jl_internal_values[name])::HdfsFileStatusProto + else + getfield(obj, name) + end +end mutable struct IsFileClosedRequestProto <: ProtoType - src::AbstractString - IsFileClosedRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct IsFileClosedRequestProto -const __req_IsFileClosedRequestProto = Symbol[:src] -meta(t::Type{IsFileClosedRequestProto}) = meta(t, __req_IsFileClosedRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function IsFileClosedRequestProto(; kwargs...) + obj = new(meta(IsFileClosedRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct IsFileClosedRequestProto +const __meta_IsFileClosedRequestProto = Ref{ProtoMeta}() +function meta(::Type{IsFileClosedRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_IsFileClosedRequestProto) + __meta_IsFileClosedRequestProto[] = target = ProtoMeta(IsFileClosedRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, IsFileClosedRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_IsFileClosedRequestProto[] + end +end +function Base.getproperty(obj::IsFileClosedRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct IsFileClosedResponseProto <: ProtoType - result::Bool - IsFileClosedResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct IsFileClosedResponseProto -const __req_IsFileClosedResponseProto = Symbol[:result] -meta(t::Type{IsFileClosedResponseProto}) = meta(t, __req_IsFileClosedResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function IsFileClosedResponseProto(; kwargs...) + obj = new(meta(IsFileClosedResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct IsFileClosedResponseProto +const __meta_IsFileClosedResponseProto = Ref{ProtoMeta}() +function meta(::Type{IsFileClosedResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_IsFileClosedResponseProto) + __meta_IsFileClosedResponseProto[] = target = ProtoMeta(IsFileClosedResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => Bool] + meta(target, IsFileClosedResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_IsFileClosedResponseProto[] + end +end +function Base.getproperty(obj::IsFileClosedResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct CacheDirectiveInfoExpirationProto <: ProtoType - millis::Int64 - isRelative::Bool - CacheDirectiveInfoExpirationProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CacheDirectiveInfoExpirationProto -const __req_CacheDirectiveInfoExpirationProto = Symbol[:millis,:isRelative] -meta(t::Type{CacheDirectiveInfoExpirationProto}) = meta(t, __req_CacheDirectiveInfoExpirationProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CacheDirectiveInfoExpirationProto(; kwargs...) + obj = new(meta(CacheDirectiveInfoExpirationProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CacheDirectiveInfoExpirationProto +const __meta_CacheDirectiveInfoExpirationProto = Ref{ProtoMeta}() +function meta(::Type{CacheDirectiveInfoExpirationProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CacheDirectiveInfoExpirationProto) + __meta_CacheDirectiveInfoExpirationProto[] = target = ProtoMeta(CacheDirectiveInfoExpirationProto) + req = Symbol[:millis,:isRelative] + allflds = Pair{Symbol,Union{Type,String}}[:millis => Int64, :isRelative => Bool] + meta(target, CacheDirectiveInfoExpirationProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CacheDirectiveInfoExpirationProto[] + end +end +function Base.getproperty(obj::CacheDirectiveInfoExpirationProto, name::Symbol) + if name === :millis + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :isRelative + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct CacheDirectiveInfoProto <: ProtoType - id::Int64 - path::AbstractString - replication::UInt32 - pool::AbstractString - expiration::CacheDirectiveInfoExpirationProto - CacheDirectiveInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CacheDirectiveInfoProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CacheDirectiveInfoProto(; kwargs...) + obj = new(meta(CacheDirectiveInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CacheDirectiveInfoProto +const __meta_CacheDirectiveInfoProto = Ref{ProtoMeta}() +function meta(::Type{CacheDirectiveInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CacheDirectiveInfoProto) + __meta_CacheDirectiveInfoProto[] = target = ProtoMeta(CacheDirectiveInfoProto) + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64, :path => AbstractString, :replication => UInt32, :pool => AbstractString, :expiration => CacheDirectiveInfoExpirationProto] + meta(target, CacheDirectiveInfoProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CacheDirectiveInfoProto[] + end +end +function Base.getproperty(obj::CacheDirectiveInfoProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :replication + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :pool + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :expiration + return (obj.__protobuf_jl_internal_values[name])::CacheDirectiveInfoExpirationProto + else + getfield(obj, name) + end +end mutable struct CacheDirectiveStatsProto <: ProtoType - bytesNeeded::Int64 - bytesCached::Int64 - filesNeeded::Int64 - filesCached::Int64 - hasExpired::Bool - CacheDirectiveStatsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CacheDirectiveStatsProto -const __req_CacheDirectiveStatsProto = Symbol[:bytesNeeded,:bytesCached,:filesNeeded,:filesCached,:hasExpired] -meta(t::Type{CacheDirectiveStatsProto}) = meta(t, __req_CacheDirectiveStatsProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CacheDirectiveStatsProto(; kwargs...) + obj = new(meta(CacheDirectiveStatsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CacheDirectiveStatsProto +const __meta_CacheDirectiveStatsProto = Ref{ProtoMeta}() +function meta(::Type{CacheDirectiveStatsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CacheDirectiveStatsProto) + __meta_CacheDirectiveStatsProto[] = target = ProtoMeta(CacheDirectiveStatsProto) + req = Symbol[:bytesNeeded,:bytesCached,:filesNeeded,:filesCached,:hasExpired] + allflds = Pair{Symbol,Union{Type,String}}[:bytesNeeded => Int64, :bytesCached => Int64, :filesNeeded => Int64, :filesCached => Int64, :hasExpired => Bool] + meta(target, CacheDirectiveStatsProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CacheDirectiveStatsProto[] + end +end +function Base.getproperty(obj::CacheDirectiveStatsProto, name::Symbol) + if name === :bytesNeeded + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :bytesCached + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :filesNeeded + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :filesCached + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :hasExpired + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct AddCacheDirectiveRequestProto <: ProtoType - info::CacheDirectiveInfoProto - cacheFlags::UInt32 - AddCacheDirectiveRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AddCacheDirectiveRequestProto -const __req_AddCacheDirectiveRequestProto = Symbol[:info] -meta(t::Type{AddCacheDirectiveRequestProto}) = meta(t, __req_AddCacheDirectiveRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AddCacheDirectiveRequestProto(; kwargs...) + obj = new(meta(AddCacheDirectiveRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AddCacheDirectiveRequestProto +const __meta_AddCacheDirectiveRequestProto = Ref{ProtoMeta}() +function meta(::Type{AddCacheDirectiveRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AddCacheDirectiveRequestProto) + __meta_AddCacheDirectiveRequestProto[] = target = ProtoMeta(AddCacheDirectiveRequestProto) + req = Symbol[:info] + allflds = Pair{Symbol,Union{Type,String}}[:info => CacheDirectiveInfoProto, :cacheFlags => UInt32] + meta(target, AddCacheDirectiveRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AddCacheDirectiveRequestProto[] + end +end +function Base.getproperty(obj::AddCacheDirectiveRequestProto, name::Symbol) + if name === :info + return (obj.__protobuf_jl_internal_values[name])::CacheDirectiveInfoProto + elseif name === :cacheFlags + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct AddCacheDirectiveResponseProto <: ProtoType - id::Int64 - AddCacheDirectiveResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AddCacheDirectiveResponseProto -const __req_AddCacheDirectiveResponseProto = Symbol[:id] -meta(t::Type{AddCacheDirectiveResponseProto}) = meta(t, __req_AddCacheDirectiveResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AddCacheDirectiveResponseProto(; kwargs...) + obj = new(meta(AddCacheDirectiveResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AddCacheDirectiveResponseProto +const __meta_AddCacheDirectiveResponseProto = Ref{ProtoMeta}() +function meta(::Type{AddCacheDirectiveResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AddCacheDirectiveResponseProto) + __meta_AddCacheDirectiveResponseProto[] = target = ProtoMeta(AddCacheDirectiveResponseProto) + req = Symbol[:id] + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64] + meta(target, AddCacheDirectiveResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AddCacheDirectiveResponseProto[] + end +end +function Base.getproperty(obj::AddCacheDirectiveResponseProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ModifyCacheDirectiveRequestProto <: ProtoType - info::CacheDirectiveInfoProto - cacheFlags::UInt32 - ModifyCacheDirectiveRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ModifyCacheDirectiveRequestProto -const __req_ModifyCacheDirectiveRequestProto = Symbol[:info] -meta(t::Type{ModifyCacheDirectiveRequestProto}) = meta(t, __req_ModifyCacheDirectiveRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ModifyCacheDirectiveRequestProto(; kwargs...) + obj = new(meta(ModifyCacheDirectiveRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ModifyCacheDirectiveRequestProto +const __meta_ModifyCacheDirectiveRequestProto = Ref{ProtoMeta}() +function meta(::Type{ModifyCacheDirectiveRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ModifyCacheDirectiveRequestProto) + __meta_ModifyCacheDirectiveRequestProto[] = target = ProtoMeta(ModifyCacheDirectiveRequestProto) + req = Symbol[:info] + allflds = Pair{Symbol,Union{Type,String}}[:info => CacheDirectiveInfoProto, :cacheFlags => UInt32] + meta(target, ModifyCacheDirectiveRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ModifyCacheDirectiveRequestProto[] + end +end +function Base.getproperty(obj::ModifyCacheDirectiveRequestProto, name::Symbol) + if name === :info + return (obj.__protobuf_jl_internal_values[name])::CacheDirectiveInfoProto + elseif name === :cacheFlags + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct ModifyCacheDirectiveResponseProto <: ProtoType - ModifyCacheDirectiveResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ModifyCacheDirectiveResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ModifyCacheDirectiveResponseProto(; kwargs...) + obj = new(meta(ModifyCacheDirectiveResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ModifyCacheDirectiveResponseProto +const __meta_ModifyCacheDirectiveResponseProto = Ref{ProtoMeta}() +function meta(::Type{ModifyCacheDirectiveResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ModifyCacheDirectiveResponseProto) + __meta_ModifyCacheDirectiveResponseProto[] = target = ProtoMeta(ModifyCacheDirectiveResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ModifyCacheDirectiveResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ModifyCacheDirectiveResponseProto[] + end +end mutable struct RemoveCacheDirectiveRequestProto <: ProtoType - id::Int64 - RemoveCacheDirectiveRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveCacheDirectiveRequestProto -const __req_RemoveCacheDirectiveRequestProto = Symbol[:id] -meta(t::Type{RemoveCacheDirectiveRequestProto}) = meta(t, __req_RemoveCacheDirectiveRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveCacheDirectiveRequestProto(; kwargs...) + obj = new(meta(RemoveCacheDirectiveRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveCacheDirectiveRequestProto +const __meta_RemoveCacheDirectiveRequestProto = Ref{ProtoMeta}() +function meta(::Type{RemoveCacheDirectiveRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveCacheDirectiveRequestProto) + __meta_RemoveCacheDirectiveRequestProto[] = target = ProtoMeta(RemoveCacheDirectiveRequestProto) + req = Symbol[:id] + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64] + meta(target, RemoveCacheDirectiveRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveCacheDirectiveRequestProto[] + end +end +function Base.getproperty(obj::RemoveCacheDirectiveRequestProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct RemoveCacheDirectiveResponseProto <: ProtoType - RemoveCacheDirectiveResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveCacheDirectiveResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveCacheDirectiveResponseProto(; kwargs...) + obj = new(meta(RemoveCacheDirectiveResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveCacheDirectiveResponseProto +const __meta_RemoveCacheDirectiveResponseProto = Ref{ProtoMeta}() +function meta(::Type{RemoveCacheDirectiveResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveCacheDirectiveResponseProto) + __meta_RemoveCacheDirectiveResponseProto[] = target = ProtoMeta(RemoveCacheDirectiveResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RemoveCacheDirectiveResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveCacheDirectiveResponseProto[] + end +end mutable struct ListCacheDirectivesRequestProto <: ProtoType - prevId::Int64 - filter::CacheDirectiveInfoProto - ListCacheDirectivesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListCacheDirectivesRequestProto -const __req_ListCacheDirectivesRequestProto = Symbol[:prevId,:filter] -meta(t::Type{ListCacheDirectivesRequestProto}) = meta(t, __req_ListCacheDirectivesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListCacheDirectivesRequestProto(; kwargs...) + obj = new(meta(ListCacheDirectivesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListCacheDirectivesRequestProto +const __meta_ListCacheDirectivesRequestProto = Ref{ProtoMeta}() +function meta(::Type{ListCacheDirectivesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListCacheDirectivesRequestProto) + __meta_ListCacheDirectivesRequestProto[] = target = ProtoMeta(ListCacheDirectivesRequestProto) + req = Symbol[:prevId,:filter] + allflds = Pair{Symbol,Union{Type,String}}[:prevId => Int64, :filter => CacheDirectiveInfoProto] + meta(target, ListCacheDirectivesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListCacheDirectivesRequestProto[] + end +end +function Base.getproperty(obj::ListCacheDirectivesRequestProto, name::Symbol) + if name === :prevId + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :filter + return (obj.__protobuf_jl_internal_values[name])::CacheDirectiveInfoProto + else + getfield(obj, name) + end +end mutable struct CacheDirectiveEntryProto <: ProtoType - info::CacheDirectiveInfoProto - stats::CacheDirectiveStatsProto - CacheDirectiveEntryProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CacheDirectiveEntryProto -const __req_CacheDirectiveEntryProto = Symbol[:info,:stats] -meta(t::Type{CacheDirectiveEntryProto}) = meta(t, __req_CacheDirectiveEntryProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CacheDirectiveEntryProto(; kwargs...) + obj = new(meta(CacheDirectiveEntryProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CacheDirectiveEntryProto +const __meta_CacheDirectiveEntryProto = Ref{ProtoMeta}() +function meta(::Type{CacheDirectiveEntryProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CacheDirectiveEntryProto) + __meta_CacheDirectiveEntryProto[] = target = ProtoMeta(CacheDirectiveEntryProto) + req = Symbol[:info,:stats] + allflds = Pair{Symbol,Union{Type,String}}[:info => CacheDirectiveInfoProto, :stats => CacheDirectiveStatsProto] + meta(target, CacheDirectiveEntryProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CacheDirectiveEntryProto[] + end +end +function Base.getproperty(obj::CacheDirectiveEntryProto, name::Symbol) + if name === :info + return (obj.__protobuf_jl_internal_values[name])::CacheDirectiveInfoProto + elseif name === :stats + return (obj.__protobuf_jl_internal_values[name])::CacheDirectiveStatsProto + else + getfield(obj, name) + end +end mutable struct ListCacheDirectivesResponseProto <: ProtoType - elements::Base.Vector{CacheDirectiveEntryProto} - hasMore::Bool - ListCacheDirectivesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListCacheDirectivesResponseProto -const __req_ListCacheDirectivesResponseProto = Symbol[:hasMore] -meta(t::Type{ListCacheDirectivesResponseProto}) = meta(t, __req_ListCacheDirectivesResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListCacheDirectivesResponseProto(; kwargs...) + obj = new(meta(ListCacheDirectivesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListCacheDirectivesResponseProto +const __meta_ListCacheDirectivesResponseProto = Ref{ProtoMeta}() +function meta(::Type{ListCacheDirectivesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListCacheDirectivesResponseProto) + __meta_ListCacheDirectivesResponseProto[] = target = ProtoMeta(ListCacheDirectivesResponseProto) + req = Symbol[:hasMore] + allflds = Pair{Symbol,Union{Type,String}}[:elements => Base.Vector{CacheDirectiveEntryProto}, :hasMore => Bool] + meta(target, ListCacheDirectivesResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListCacheDirectivesResponseProto[] + end +end +function Base.getproperty(obj::ListCacheDirectivesResponseProto, name::Symbol) + if name === :elements + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{CacheDirectiveEntryProto} + elseif name === :hasMore + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct CachePoolInfoProto <: ProtoType - poolName::AbstractString - ownerName::AbstractString - groupName::AbstractString - mode::Int32 - limit::Int64 - maxRelativeExpiry::Int64 - defaultReplication::UInt32 - CachePoolInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CachePoolInfoProto -const __val_CachePoolInfoProto = Dict(:defaultReplication => 1) -meta(t::Type{CachePoolInfoProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_CachePoolInfoProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CachePoolInfoProto(; kwargs...) + obj = new(meta(CachePoolInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CachePoolInfoProto +const __meta_CachePoolInfoProto = Ref{ProtoMeta}() +function meta(::Type{CachePoolInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CachePoolInfoProto) + __meta_CachePoolInfoProto[] = target = ProtoMeta(CachePoolInfoProto) + val = Dict{Symbol,Any}(:defaultReplication => 1) + allflds = Pair{Symbol,Union{Type,String}}[:poolName => AbstractString, :ownerName => AbstractString, :groupName => AbstractString, :mode => Int32, :limit => Int64, :maxRelativeExpiry => Int64, :defaultReplication => UInt32] + meta(target, CachePoolInfoProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CachePoolInfoProto[] + end +end +function Base.getproperty(obj::CachePoolInfoProto, name::Symbol) + if name === :poolName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :ownerName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :groupName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :mode + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :limit + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :maxRelativeExpiry + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :defaultReplication + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct CachePoolStatsProto <: ProtoType - bytesNeeded::Int64 - bytesCached::Int64 - bytesOverlimit::Int64 - filesNeeded::Int64 - filesCached::Int64 - CachePoolStatsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CachePoolStatsProto -const __req_CachePoolStatsProto = Symbol[:bytesNeeded,:bytesCached,:bytesOverlimit,:filesNeeded,:filesCached] -meta(t::Type{CachePoolStatsProto}) = meta(t, __req_CachePoolStatsProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CachePoolStatsProto(; kwargs...) + obj = new(meta(CachePoolStatsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CachePoolStatsProto +const __meta_CachePoolStatsProto = Ref{ProtoMeta}() +function meta(::Type{CachePoolStatsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CachePoolStatsProto) + __meta_CachePoolStatsProto[] = target = ProtoMeta(CachePoolStatsProto) + req = Symbol[:bytesNeeded,:bytesCached,:bytesOverlimit,:filesNeeded,:filesCached] + allflds = Pair{Symbol,Union{Type,String}}[:bytesNeeded => Int64, :bytesCached => Int64, :bytesOverlimit => Int64, :filesNeeded => Int64, :filesCached => Int64] + meta(target, CachePoolStatsProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CachePoolStatsProto[] + end +end +function Base.getproperty(obj::CachePoolStatsProto, name::Symbol) + if name === :bytesNeeded + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :bytesCached + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :bytesOverlimit + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :filesNeeded + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :filesCached + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct AddCachePoolRequestProto <: ProtoType - info::CachePoolInfoProto - AddCachePoolRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AddCachePoolRequestProto -const __req_AddCachePoolRequestProto = Symbol[:info] -meta(t::Type{AddCachePoolRequestProto}) = meta(t, __req_AddCachePoolRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AddCachePoolRequestProto(; kwargs...) + obj = new(meta(AddCachePoolRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AddCachePoolRequestProto +const __meta_AddCachePoolRequestProto = Ref{ProtoMeta}() +function meta(::Type{AddCachePoolRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AddCachePoolRequestProto) + __meta_AddCachePoolRequestProto[] = target = ProtoMeta(AddCachePoolRequestProto) + req = Symbol[:info] + allflds = Pair{Symbol,Union{Type,String}}[:info => CachePoolInfoProto] + meta(target, AddCachePoolRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AddCachePoolRequestProto[] + end +end +function Base.getproperty(obj::AddCachePoolRequestProto, name::Symbol) + if name === :info + return (obj.__protobuf_jl_internal_values[name])::CachePoolInfoProto + else + getfield(obj, name) + end +end mutable struct AddCachePoolResponseProto <: ProtoType - AddCachePoolResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AddCachePoolResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AddCachePoolResponseProto(; kwargs...) + obj = new(meta(AddCachePoolResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AddCachePoolResponseProto +const __meta_AddCachePoolResponseProto = Ref{ProtoMeta}() +function meta(::Type{AddCachePoolResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AddCachePoolResponseProto) + __meta_AddCachePoolResponseProto[] = target = ProtoMeta(AddCachePoolResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, AddCachePoolResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AddCachePoolResponseProto[] + end +end mutable struct ModifyCachePoolRequestProto <: ProtoType - info::CachePoolInfoProto - ModifyCachePoolRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ModifyCachePoolRequestProto -const __req_ModifyCachePoolRequestProto = Symbol[:info] -meta(t::Type{ModifyCachePoolRequestProto}) = meta(t, __req_ModifyCachePoolRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ModifyCachePoolRequestProto(; kwargs...) + obj = new(meta(ModifyCachePoolRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ModifyCachePoolRequestProto +const __meta_ModifyCachePoolRequestProto = Ref{ProtoMeta}() +function meta(::Type{ModifyCachePoolRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ModifyCachePoolRequestProto) + __meta_ModifyCachePoolRequestProto[] = target = ProtoMeta(ModifyCachePoolRequestProto) + req = Symbol[:info] + allflds = Pair{Symbol,Union{Type,String}}[:info => CachePoolInfoProto] + meta(target, ModifyCachePoolRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ModifyCachePoolRequestProto[] + end +end +function Base.getproperty(obj::ModifyCachePoolRequestProto, name::Symbol) + if name === :info + return (obj.__protobuf_jl_internal_values[name])::CachePoolInfoProto + else + getfield(obj, name) + end +end mutable struct ModifyCachePoolResponseProto <: ProtoType - ModifyCachePoolResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ModifyCachePoolResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ModifyCachePoolResponseProto(; kwargs...) + obj = new(meta(ModifyCachePoolResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ModifyCachePoolResponseProto +const __meta_ModifyCachePoolResponseProto = Ref{ProtoMeta}() +function meta(::Type{ModifyCachePoolResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ModifyCachePoolResponseProto) + __meta_ModifyCachePoolResponseProto[] = target = ProtoMeta(ModifyCachePoolResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ModifyCachePoolResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ModifyCachePoolResponseProto[] + end +end mutable struct RemoveCachePoolRequestProto <: ProtoType - poolName::AbstractString - RemoveCachePoolRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveCachePoolRequestProto -const __req_RemoveCachePoolRequestProto = Symbol[:poolName] -meta(t::Type{RemoveCachePoolRequestProto}) = meta(t, __req_RemoveCachePoolRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveCachePoolRequestProto(; kwargs...) + obj = new(meta(RemoveCachePoolRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveCachePoolRequestProto +const __meta_RemoveCachePoolRequestProto = Ref{ProtoMeta}() +function meta(::Type{RemoveCachePoolRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveCachePoolRequestProto) + __meta_RemoveCachePoolRequestProto[] = target = ProtoMeta(RemoveCachePoolRequestProto) + req = Symbol[:poolName] + allflds = Pair{Symbol,Union{Type,String}}[:poolName => AbstractString] + meta(target, RemoveCachePoolRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveCachePoolRequestProto[] + end +end +function Base.getproperty(obj::RemoveCachePoolRequestProto, name::Symbol) + if name === :poolName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RemoveCachePoolResponseProto <: ProtoType - RemoveCachePoolResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveCachePoolResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveCachePoolResponseProto(; kwargs...) + obj = new(meta(RemoveCachePoolResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveCachePoolResponseProto +const __meta_RemoveCachePoolResponseProto = Ref{ProtoMeta}() +function meta(::Type{RemoveCachePoolResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveCachePoolResponseProto) + __meta_RemoveCachePoolResponseProto[] = target = ProtoMeta(RemoveCachePoolResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RemoveCachePoolResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveCachePoolResponseProto[] + end +end mutable struct ListCachePoolsRequestProto <: ProtoType - prevPoolName::AbstractString - ListCachePoolsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListCachePoolsRequestProto -const __req_ListCachePoolsRequestProto = Symbol[:prevPoolName] -meta(t::Type{ListCachePoolsRequestProto}) = meta(t, __req_ListCachePoolsRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListCachePoolsRequestProto(; kwargs...) + obj = new(meta(ListCachePoolsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListCachePoolsRequestProto +const __meta_ListCachePoolsRequestProto = Ref{ProtoMeta}() +function meta(::Type{ListCachePoolsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListCachePoolsRequestProto) + __meta_ListCachePoolsRequestProto[] = target = ProtoMeta(ListCachePoolsRequestProto) + req = Symbol[:prevPoolName] + allflds = Pair{Symbol,Union{Type,String}}[:prevPoolName => AbstractString] + meta(target, ListCachePoolsRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListCachePoolsRequestProto[] + end +end +function Base.getproperty(obj::ListCachePoolsRequestProto, name::Symbol) + if name === :prevPoolName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct CachePoolEntryProto <: ProtoType - info::CachePoolInfoProto - stats::CachePoolStatsProto - CachePoolEntryProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CachePoolEntryProto -const __req_CachePoolEntryProto = Symbol[:info,:stats] -meta(t::Type{CachePoolEntryProto}) = meta(t, __req_CachePoolEntryProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CachePoolEntryProto(; kwargs...) + obj = new(meta(CachePoolEntryProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CachePoolEntryProto +const __meta_CachePoolEntryProto = Ref{ProtoMeta}() +function meta(::Type{CachePoolEntryProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CachePoolEntryProto) + __meta_CachePoolEntryProto[] = target = ProtoMeta(CachePoolEntryProto) + req = Symbol[:info,:stats] + allflds = Pair{Symbol,Union{Type,String}}[:info => CachePoolInfoProto, :stats => CachePoolStatsProto] + meta(target, CachePoolEntryProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CachePoolEntryProto[] + end +end +function Base.getproperty(obj::CachePoolEntryProto, name::Symbol) + if name === :info + return (obj.__protobuf_jl_internal_values[name])::CachePoolInfoProto + elseif name === :stats + return (obj.__protobuf_jl_internal_values[name])::CachePoolStatsProto + else + getfield(obj, name) + end +end mutable struct ListCachePoolsResponseProto <: ProtoType - entries::Base.Vector{CachePoolEntryProto} - hasMore::Bool - ListCachePoolsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListCachePoolsResponseProto -const __req_ListCachePoolsResponseProto = Symbol[:hasMore] -meta(t::Type{ListCachePoolsResponseProto}) = meta(t, __req_ListCachePoolsResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListCachePoolsResponseProto(; kwargs...) + obj = new(meta(ListCachePoolsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListCachePoolsResponseProto +const __meta_ListCachePoolsResponseProto = Ref{ProtoMeta}() +function meta(::Type{ListCachePoolsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListCachePoolsResponseProto) + __meta_ListCachePoolsResponseProto[] = target = ProtoMeta(ListCachePoolsResponseProto) + req = Symbol[:hasMore] + allflds = Pair{Symbol,Union{Type,String}}[:entries => Base.Vector{CachePoolEntryProto}, :hasMore => Bool] + meta(target, ListCachePoolsResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListCachePoolsResponseProto[] + end +end +function Base.getproperty(obj::ListCachePoolsResponseProto, name::Symbol) + if name === :entries + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{CachePoolEntryProto} + elseif name === :hasMore + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetFileLinkInfoRequestProto <: ProtoType - src::AbstractString - GetFileLinkInfoRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetFileLinkInfoRequestProto -const __req_GetFileLinkInfoRequestProto = Symbol[:src] -meta(t::Type{GetFileLinkInfoRequestProto}) = meta(t, __req_GetFileLinkInfoRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetFileLinkInfoRequestProto(; kwargs...) + obj = new(meta(GetFileLinkInfoRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetFileLinkInfoRequestProto +const __meta_GetFileLinkInfoRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetFileLinkInfoRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetFileLinkInfoRequestProto) + __meta_GetFileLinkInfoRequestProto[] = target = ProtoMeta(GetFileLinkInfoRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, GetFileLinkInfoRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetFileLinkInfoRequestProto[] + end +end +function Base.getproperty(obj::GetFileLinkInfoRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetFileLinkInfoResponseProto <: ProtoType - fs::HdfsFileStatusProto - GetFileLinkInfoResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetFileLinkInfoResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetFileLinkInfoResponseProto(; kwargs...) + obj = new(meta(GetFileLinkInfoResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetFileLinkInfoResponseProto +const __meta_GetFileLinkInfoResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetFileLinkInfoResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetFileLinkInfoResponseProto) + __meta_GetFileLinkInfoResponseProto[] = target = ProtoMeta(GetFileLinkInfoResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:fs => HdfsFileStatusProto] + meta(target, GetFileLinkInfoResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetFileLinkInfoResponseProto[] + end +end +function Base.getproperty(obj::GetFileLinkInfoResponseProto, name::Symbol) + if name === :fs + return (obj.__protobuf_jl_internal_values[name])::HdfsFileStatusProto + else + getfield(obj, name) + end +end mutable struct GetContentSummaryRequestProto <: ProtoType - path::AbstractString - GetContentSummaryRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContentSummaryRequestProto -const __req_GetContentSummaryRequestProto = Symbol[:path] -meta(t::Type{GetContentSummaryRequestProto}) = meta(t, __req_GetContentSummaryRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContentSummaryRequestProto(; kwargs...) + obj = new(meta(GetContentSummaryRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContentSummaryRequestProto +const __meta_GetContentSummaryRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetContentSummaryRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContentSummaryRequestProto) + __meta_GetContentSummaryRequestProto[] = target = ProtoMeta(GetContentSummaryRequestProto) + req = Symbol[:path] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString] + meta(target, GetContentSummaryRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContentSummaryRequestProto[] + end +end +function Base.getproperty(obj::GetContentSummaryRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetContentSummaryResponseProto <: ProtoType - summary::ContentSummaryProto - GetContentSummaryResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContentSummaryResponseProto -const __req_GetContentSummaryResponseProto = Symbol[:summary] -meta(t::Type{GetContentSummaryResponseProto}) = meta(t, __req_GetContentSummaryResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContentSummaryResponseProto(; kwargs...) + obj = new(meta(GetContentSummaryResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContentSummaryResponseProto +const __meta_GetContentSummaryResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetContentSummaryResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContentSummaryResponseProto) + __meta_GetContentSummaryResponseProto[] = target = ProtoMeta(GetContentSummaryResponseProto) + req = Symbol[:summary] + allflds = Pair{Symbol,Union{Type,String}}[:summary => ContentSummaryProto] + meta(target, GetContentSummaryResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContentSummaryResponseProto[] + end +end +function Base.getproperty(obj::GetContentSummaryResponseProto, name::Symbol) + if name === :summary + return (obj.__protobuf_jl_internal_values[name])::ContentSummaryProto + else + getfield(obj, name) + end +end mutable struct GetQuotaUsageRequestProto <: ProtoType - path::AbstractString - GetQuotaUsageRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetQuotaUsageRequestProto -const __req_GetQuotaUsageRequestProto = Symbol[:path] -meta(t::Type{GetQuotaUsageRequestProto}) = meta(t, __req_GetQuotaUsageRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetQuotaUsageRequestProto(; kwargs...) + obj = new(meta(GetQuotaUsageRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetQuotaUsageRequestProto +const __meta_GetQuotaUsageRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetQuotaUsageRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetQuotaUsageRequestProto) + __meta_GetQuotaUsageRequestProto[] = target = ProtoMeta(GetQuotaUsageRequestProto) + req = Symbol[:path] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString] + meta(target, GetQuotaUsageRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetQuotaUsageRequestProto[] + end +end +function Base.getproperty(obj::GetQuotaUsageRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetQuotaUsageResponseProto <: ProtoType - usage::QuotaUsageProto - GetQuotaUsageResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetQuotaUsageResponseProto -const __req_GetQuotaUsageResponseProto = Symbol[:usage] -meta(t::Type{GetQuotaUsageResponseProto}) = meta(t, __req_GetQuotaUsageResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetQuotaUsageResponseProto(; kwargs...) + obj = new(meta(GetQuotaUsageResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetQuotaUsageResponseProto +const __meta_GetQuotaUsageResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetQuotaUsageResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetQuotaUsageResponseProto) + __meta_GetQuotaUsageResponseProto[] = target = ProtoMeta(GetQuotaUsageResponseProto) + req = Symbol[:usage] + allflds = Pair{Symbol,Union{Type,String}}[:usage => QuotaUsageProto] + meta(target, GetQuotaUsageResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetQuotaUsageResponseProto[] + end +end +function Base.getproperty(obj::GetQuotaUsageResponseProto, name::Symbol) + if name === :usage + return (obj.__protobuf_jl_internal_values[name])::QuotaUsageProto + else + getfield(obj, name) + end +end mutable struct SetQuotaRequestProto <: ProtoType - path::AbstractString - namespaceQuota::UInt64 - storagespaceQuota::UInt64 - storageType::Int32 - SetQuotaRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetQuotaRequestProto -const __req_SetQuotaRequestProto = Symbol[:path,:namespaceQuota,:storagespaceQuota] -meta(t::Type{SetQuotaRequestProto}) = meta(t, __req_SetQuotaRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetQuotaRequestProto(; kwargs...) + obj = new(meta(SetQuotaRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetQuotaRequestProto +const __meta_SetQuotaRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetQuotaRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetQuotaRequestProto) + __meta_SetQuotaRequestProto[] = target = ProtoMeta(SetQuotaRequestProto) + req = Symbol[:path,:namespaceQuota,:storagespaceQuota] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :namespaceQuota => UInt64, :storagespaceQuota => UInt64, :storageType => Int32] + meta(target, SetQuotaRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetQuotaRequestProto[] + end +end +function Base.getproperty(obj::SetQuotaRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :namespaceQuota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :storagespaceQuota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :storageType + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct SetQuotaResponseProto <: ProtoType - SetQuotaResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetQuotaResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetQuotaResponseProto(; kwargs...) + obj = new(meta(SetQuotaResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetQuotaResponseProto +const __meta_SetQuotaResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetQuotaResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetQuotaResponseProto) + __meta_SetQuotaResponseProto[] = target = ProtoMeta(SetQuotaResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetQuotaResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetQuotaResponseProto[] + end +end mutable struct FsyncRequestProto <: ProtoType - src::AbstractString - client::AbstractString - lastBlockLength::Int64 - fileId::UInt64 - FsyncRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FsyncRequestProto -const __req_FsyncRequestProto = Symbol[:src,:client] -const __val_FsyncRequestProto = Dict(:lastBlockLength => -1, :fileId => 0) -const __wtype_FsyncRequestProto = Dict(:lastBlockLength => :sint64) -meta(t::Type{FsyncRequestProto}) = meta(t, __req_FsyncRequestProto, ProtoBuf.DEF_FNUM, __val_FsyncRequestProto, true, ProtoBuf.DEF_PACK, __wtype_FsyncRequestProto, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FsyncRequestProto(; kwargs...) + obj = new(meta(FsyncRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FsyncRequestProto +const __meta_FsyncRequestProto = Ref{ProtoMeta}() +function meta(::Type{FsyncRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FsyncRequestProto) + __meta_FsyncRequestProto[] = target = ProtoMeta(FsyncRequestProto) + req = Symbol[:src,:client] + val = Dict{Symbol,Any}(:lastBlockLength => -1, :fileId => 0) + wtype = Dict(:lastBlockLength => :sint64) + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :client => AbstractString, :lastBlockLength => Int64, :fileId => UInt64] + meta(target, FsyncRequestProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, wtype, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FsyncRequestProto[] + end +end +function Base.getproperty(obj::FsyncRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :client + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :lastBlockLength + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :fileId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct FsyncResponseProto <: ProtoType - FsyncResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FsyncResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FsyncResponseProto(; kwargs...) + obj = new(meta(FsyncResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FsyncResponseProto +const __meta_FsyncResponseProto = Ref{ProtoMeta}() +function meta(::Type{FsyncResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FsyncResponseProto) + __meta_FsyncResponseProto[] = target = ProtoMeta(FsyncResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, FsyncResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FsyncResponseProto[] + end +end mutable struct SetTimesRequestProto <: ProtoType - src::AbstractString - mtime::UInt64 - atime::UInt64 - SetTimesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetTimesRequestProto -const __req_SetTimesRequestProto = Symbol[:src,:mtime,:atime] -meta(t::Type{SetTimesRequestProto}) = meta(t, __req_SetTimesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetTimesRequestProto(; kwargs...) + obj = new(meta(SetTimesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetTimesRequestProto +const __meta_SetTimesRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetTimesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetTimesRequestProto) + __meta_SetTimesRequestProto[] = target = ProtoMeta(SetTimesRequestProto) + req = Symbol[:src,:mtime,:atime] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :mtime => UInt64, :atime => UInt64] + meta(target, SetTimesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetTimesRequestProto[] + end +end +function Base.getproperty(obj::SetTimesRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :mtime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :atime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct SetTimesResponseProto <: ProtoType - SetTimesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetTimesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetTimesResponseProto(; kwargs...) + obj = new(meta(SetTimesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetTimesResponseProto +const __meta_SetTimesResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetTimesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetTimesResponseProto) + __meta_SetTimesResponseProto[] = target = ProtoMeta(SetTimesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetTimesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetTimesResponseProto[] + end +end mutable struct CreateSymlinkRequestProto <: ProtoType - target::AbstractString - link::AbstractString - dirPerm::FsPermissionProto - createParent::Bool - CreateSymlinkRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateSymlinkRequestProto -const __req_CreateSymlinkRequestProto = Symbol[:target,:link,:dirPerm,:createParent] -meta(t::Type{CreateSymlinkRequestProto}) = meta(t, __req_CreateSymlinkRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateSymlinkRequestProto(; kwargs...) + obj = new(meta(CreateSymlinkRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateSymlinkRequestProto +const __meta_CreateSymlinkRequestProto = Ref{ProtoMeta}() +function meta(::Type{CreateSymlinkRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateSymlinkRequestProto) + __meta_CreateSymlinkRequestProto[] = target = ProtoMeta(CreateSymlinkRequestProto) + req = Symbol[:target,:link,:dirPerm,:createParent] + allflds = Pair{Symbol,Union{Type,String}}[:target => AbstractString, :link => AbstractString, :dirPerm => FsPermissionProto, :createParent => Bool] + meta(target, CreateSymlinkRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateSymlinkRequestProto[] + end +end +function Base.getproperty(obj::CreateSymlinkRequestProto, name::Symbol) + if name === :target + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :link + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :dirPerm + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :createParent + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct CreateSymlinkResponseProto <: ProtoType - CreateSymlinkResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateSymlinkResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateSymlinkResponseProto(; kwargs...) + obj = new(meta(CreateSymlinkResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateSymlinkResponseProto +const __meta_CreateSymlinkResponseProto = Ref{ProtoMeta}() +function meta(::Type{CreateSymlinkResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateSymlinkResponseProto) + __meta_CreateSymlinkResponseProto[] = target = ProtoMeta(CreateSymlinkResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, CreateSymlinkResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateSymlinkResponseProto[] + end +end mutable struct GetLinkTargetRequestProto <: ProtoType - path::AbstractString - GetLinkTargetRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetLinkTargetRequestProto -const __req_GetLinkTargetRequestProto = Symbol[:path] -meta(t::Type{GetLinkTargetRequestProto}) = meta(t, __req_GetLinkTargetRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetLinkTargetRequestProto(; kwargs...) + obj = new(meta(GetLinkTargetRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetLinkTargetRequestProto +const __meta_GetLinkTargetRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetLinkTargetRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetLinkTargetRequestProto) + __meta_GetLinkTargetRequestProto[] = target = ProtoMeta(GetLinkTargetRequestProto) + req = Symbol[:path] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString] + meta(target, GetLinkTargetRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetLinkTargetRequestProto[] + end +end +function Base.getproperty(obj::GetLinkTargetRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetLinkTargetResponseProto <: ProtoType - targetPath::AbstractString - GetLinkTargetResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetLinkTargetResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetLinkTargetResponseProto(; kwargs...) + obj = new(meta(GetLinkTargetResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetLinkTargetResponseProto +const __meta_GetLinkTargetResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetLinkTargetResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetLinkTargetResponseProto) + __meta_GetLinkTargetResponseProto[] = target = ProtoMeta(GetLinkTargetResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:targetPath => AbstractString] + meta(target, GetLinkTargetResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetLinkTargetResponseProto[] + end +end +function Base.getproperty(obj::GetLinkTargetResponseProto, name::Symbol) + if name === :targetPath + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct UpdateBlockForPipelineRequestProto <: ProtoType - block::ExtendedBlockProto - clientName::AbstractString - UpdateBlockForPipelineRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateBlockForPipelineRequestProto -const __req_UpdateBlockForPipelineRequestProto = Symbol[:block,:clientName] -meta(t::Type{UpdateBlockForPipelineRequestProto}) = meta(t, __req_UpdateBlockForPipelineRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateBlockForPipelineRequestProto(; kwargs...) + obj = new(meta(UpdateBlockForPipelineRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateBlockForPipelineRequestProto +const __meta_UpdateBlockForPipelineRequestProto = Ref{ProtoMeta}() +function meta(::Type{UpdateBlockForPipelineRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateBlockForPipelineRequestProto) + __meta_UpdateBlockForPipelineRequestProto[] = target = ProtoMeta(UpdateBlockForPipelineRequestProto) + req = Symbol[:block,:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:block => ExtendedBlockProto, :clientName => AbstractString] + meta(target, UpdateBlockForPipelineRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateBlockForPipelineRequestProto[] + end +end +function Base.getproperty(obj::UpdateBlockForPipelineRequestProto, name::Symbol) + if name === :block + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct UpdateBlockForPipelineResponseProto <: ProtoType - block::LocatedBlockProto - UpdateBlockForPipelineResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateBlockForPipelineResponseProto -const __req_UpdateBlockForPipelineResponseProto = Symbol[:block] -meta(t::Type{UpdateBlockForPipelineResponseProto}) = meta(t, __req_UpdateBlockForPipelineResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateBlockForPipelineResponseProto(; kwargs...) + obj = new(meta(UpdateBlockForPipelineResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateBlockForPipelineResponseProto +const __meta_UpdateBlockForPipelineResponseProto = Ref{ProtoMeta}() +function meta(::Type{UpdateBlockForPipelineResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateBlockForPipelineResponseProto) + __meta_UpdateBlockForPipelineResponseProto[] = target = ProtoMeta(UpdateBlockForPipelineResponseProto) + req = Symbol[:block] + allflds = Pair{Symbol,Union{Type,String}}[:block => LocatedBlockProto] + meta(target, UpdateBlockForPipelineResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateBlockForPipelineResponseProto[] + end +end +function Base.getproperty(obj::UpdateBlockForPipelineResponseProto, name::Symbol) + if name === :block + return (obj.__protobuf_jl_internal_values[name])::LocatedBlockProto + else + getfield(obj, name) + end +end mutable struct UpdatePipelineRequestProto <: ProtoType - clientName::AbstractString - oldBlock::ExtendedBlockProto - newBlock::ExtendedBlockProto - newNodes::Base.Vector{DatanodeIDProto} - storageIDs::Base.Vector{AbstractString} - UpdatePipelineRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdatePipelineRequestProto -const __req_UpdatePipelineRequestProto = Symbol[:clientName,:oldBlock,:newBlock] -meta(t::Type{UpdatePipelineRequestProto}) = meta(t, __req_UpdatePipelineRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdatePipelineRequestProto(; kwargs...) + obj = new(meta(UpdatePipelineRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdatePipelineRequestProto +const __meta_UpdatePipelineRequestProto = Ref{ProtoMeta}() +function meta(::Type{UpdatePipelineRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdatePipelineRequestProto) + __meta_UpdatePipelineRequestProto[] = target = ProtoMeta(UpdatePipelineRequestProto) + req = Symbol[:clientName,:oldBlock,:newBlock] + allflds = Pair{Symbol,Union{Type,String}}[:clientName => AbstractString, :oldBlock => ExtendedBlockProto, :newBlock => ExtendedBlockProto, :newNodes => Base.Vector{DatanodeIDProto}, :storageIDs => Base.Vector{AbstractString}] + meta(target, UpdatePipelineRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdatePipelineRequestProto[] + end +end +function Base.getproperty(obj::UpdatePipelineRequestProto, name::Symbol) + if name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :oldBlock + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :newBlock + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :newNodes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeIDProto} + elseif name === :storageIDs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + else + getfield(obj, name) + end +end mutable struct UpdatePipelineResponseProto <: ProtoType - UpdatePipelineResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdatePipelineResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdatePipelineResponseProto(; kwargs...) + obj = new(meta(UpdatePipelineResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdatePipelineResponseProto +const __meta_UpdatePipelineResponseProto = Ref{ProtoMeta}() +function meta(::Type{UpdatePipelineResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdatePipelineResponseProto) + __meta_UpdatePipelineResponseProto[] = target = ProtoMeta(UpdatePipelineResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, UpdatePipelineResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdatePipelineResponseProto[] + end +end mutable struct SetBalancerBandwidthRequestProto <: ProtoType - bandwidth::Int64 - SetBalancerBandwidthRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetBalancerBandwidthRequestProto -const __req_SetBalancerBandwidthRequestProto = Symbol[:bandwidth] -meta(t::Type{SetBalancerBandwidthRequestProto}) = meta(t, __req_SetBalancerBandwidthRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetBalancerBandwidthRequestProto(; kwargs...) + obj = new(meta(SetBalancerBandwidthRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetBalancerBandwidthRequestProto +const __meta_SetBalancerBandwidthRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetBalancerBandwidthRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetBalancerBandwidthRequestProto) + __meta_SetBalancerBandwidthRequestProto[] = target = ProtoMeta(SetBalancerBandwidthRequestProto) + req = Symbol[:bandwidth] + allflds = Pair{Symbol,Union{Type,String}}[:bandwidth => Int64] + meta(target, SetBalancerBandwidthRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetBalancerBandwidthRequestProto[] + end +end +function Base.getproperty(obj::SetBalancerBandwidthRequestProto, name::Symbol) + if name === :bandwidth + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct SetBalancerBandwidthResponseProto <: ProtoType - SetBalancerBandwidthResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetBalancerBandwidthResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetBalancerBandwidthResponseProto(; kwargs...) + obj = new(meta(SetBalancerBandwidthResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetBalancerBandwidthResponseProto +const __meta_SetBalancerBandwidthResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetBalancerBandwidthResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetBalancerBandwidthResponseProto) + __meta_SetBalancerBandwidthResponseProto[] = target = ProtoMeta(SetBalancerBandwidthResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetBalancerBandwidthResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetBalancerBandwidthResponseProto[] + end +end mutable struct GetDataEncryptionKeyRequestProto <: ProtoType - GetDataEncryptionKeyRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDataEncryptionKeyRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDataEncryptionKeyRequestProto(; kwargs...) + obj = new(meta(GetDataEncryptionKeyRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDataEncryptionKeyRequestProto +const __meta_GetDataEncryptionKeyRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetDataEncryptionKeyRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDataEncryptionKeyRequestProto) + __meta_GetDataEncryptionKeyRequestProto[] = target = ProtoMeta(GetDataEncryptionKeyRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetDataEncryptionKeyRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDataEncryptionKeyRequestProto[] + end +end mutable struct GetDataEncryptionKeyResponseProto <: ProtoType - dataEncryptionKey::DataEncryptionKeyProto - GetDataEncryptionKeyResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDataEncryptionKeyResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDataEncryptionKeyResponseProto(; kwargs...) + obj = new(meta(GetDataEncryptionKeyResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDataEncryptionKeyResponseProto +const __meta_GetDataEncryptionKeyResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetDataEncryptionKeyResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDataEncryptionKeyResponseProto) + __meta_GetDataEncryptionKeyResponseProto[] = target = ProtoMeta(GetDataEncryptionKeyResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:dataEncryptionKey => DataEncryptionKeyProto] + meta(target, GetDataEncryptionKeyResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDataEncryptionKeyResponseProto[] + end +end +function Base.getproperty(obj::GetDataEncryptionKeyResponseProto, name::Symbol) + if name === :dataEncryptionKey + return (obj.__protobuf_jl_internal_values[name])::DataEncryptionKeyProto + else + getfield(obj, name) + end +end mutable struct CreateSnapshotRequestProto <: ProtoType - snapshotRoot::AbstractString - snapshotName::AbstractString - CreateSnapshotRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateSnapshotRequestProto -const __req_CreateSnapshotRequestProto = Symbol[:snapshotRoot] -meta(t::Type{CreateSnapshotRequestProto}) = meta(t, __req_CreateSnapshotRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateSnapshotRequestProto(; kwargs...) + obj = new(meta(CreateSnapshotRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateSnapshotRequestProto +const __meta_CreateSnapshotRequestProto = Ref{ProtoMeta}() +function meta(::Type{CreateSnapshotRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateSnapshotRequestProto) + __meta_CreateSnapshotRequestProto[] = target = ProtoMeta(CreateSnapshotRequestProto) + req = Symbol[:snapshotRoot] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString, :snapshotName => AbstractString] + meta(target, CreateSnapshotRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateSnapshotRequestProto[] + end +end +function Base.getproperty(obj::CreateSnapshotRequestProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :snapshotName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct CreateSnapshotResponseProto <: ProtoType - snapshotPath::AbstractString - CreateSnapshotResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateSnapshotResponseProto -const __req_CreateSnapshotResponseProto = Symbol[:snapshotPath] -meta(t::Type{CreateSnapshotResponseProto}) = meta(t, __req_CreateSnapshotResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateSnapshotResponseProto(; kwargs...) + obj = new(meta(CreateSnapshotResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateSnapshotResponseProto +const __meta_CreateSnapshotResponseProto = Ref{ProtoMeta}() +function meta(::Type{CreateSnapshotResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateSnapshotResponseProto) + __meta_CreateSnapshotResponseProto[] = target = ProtoMeta(CreateSnapshotResponseProto) + req = Symbol[:snapshotPath] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotPath => AbstractString] + meta(target, CreateSnapshotResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateSnapshotResponseProto[] + end +end +function Base.getproperty(obj::CreateSnapshotResponseProto, name::Symbol) + if name === :snapshotPath + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RenameSnapshotRequestProto <: ProtoType - snapshotRoot::AbstractString - snapshotOldName::AbstractString - snapshotNewName::AbstractString - RenameSnapshotRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenameSnapshotRequestProto -const __req_RenameSnapshotRequestProto = Symbol[:snapshotRoot,:snapshotOldName,:snapshotNewName] -meta(t::Type{RenameSnapshotRequestProto}) = meta(t, __req_RenameSnapshotRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenameSnapshotRequestProto(; kwargs...) + obj = new(meta(RenameSnapshotRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenameSnapshotRequestProto +const __meta_RenameSnapshotRequestProto = Ref{ProtoMeta}() +function meta(::Type{RenameSnapshotRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenameSnapshotRequestProto) + __meta_RenameSnapshotRequestProto[] = target = ProtoMeta(RenameSnapshotRequestProto) + req = Symbol[:snapshotRoot,:snapshotOldName,:snapshotNewName] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString, :snapshotOldName => AbstractString, :snapshotNewName => AbstractString] + meta(target, RenameSnapshotRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenameSnapshotRequestProto[] + end +end +function Base.getproperty(obj::RenameSnapshotRequestProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :snapshotOldName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :snapshotNewName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RenameSnapshotResponseProto <: ProtoType - RenameSnapshotResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenameSnapshotResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenameSnapshotResponseProto(; kwargs...) + obj = new(meta(RenameSnapshotResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenameSnapshotResponseProto +const __meta_RenameSnapshotResponseProto = Ref{ProtoMeta}() +function meta(::Type{RenameSnapshotResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenameSnapshotResponseProto) + __meta_RenameSnapshotResponseProto[] = target = ProtoMeta(RenameSnapshotResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RenameSnapshotResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenameSnapshotResponseProto[] + end +end mutable struct AllowSnapshotRequestProto <: ProtoType - snapshotRoot::AbstractString - AllowSnapshotRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AllowSnapshotRequestProto -const __req_AllowSnapshotRequestProto = Symbol[:snapshotRoot] -meta(t::Type{AllowSnapshotRequestProto}) = meta(t, __req_AllowSnapshotRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AllowSnapshotRequestProto(; kwargs...) + obj = new(meta(AllowSnapshotRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AllowSnapshotRequestProto +const __meta_AllowSnapshotRequestProto = Ref{ProtoMeta}() +function meta(::Type{AllowSnapshotRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AllowSnapshotRequestProto) + __meta_AllowSnapshotRequestProto[] = target = ProtoMeta(AllowSnapshotRequestProto) + req = Symbol[:snapshotRoot] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString] + meta(target, AllowSnapshotRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AllowSnapshotRequestProto[] + end +end +function Base.getproperty(obj::AllowSnapshotRequestProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct AllowSnapshotResponseProto <: ProtoType - AllowSnapshotResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AllowSnapshotResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AllowSnapshotResponseProto(; kwargs...) + obj = new(meta(AllowSnapshotResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AllowSnapshotResponseProto +const __meta_AllowSnapshotResponseProto = Ref{ProtoMeta}() +function meta(::Type{AllowSnapshotResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AllowSnapshotResponseProto) + __meta_AllowSnapshotResponseProto[] = target = ProtoMeta(AllowSnapshotResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, AllowSnapshotResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AllowSnapshotResponseProto[] + end +end mutable struct DisallowSnapshotRequestProto <: ProtoType - snapshotRoot::AbstractString - DisallowSnapshotRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DisallowSnapshotRequestProto -const __req_DisallowSnapshotRequestProto = Symbol[:snapshotRoot] -meta(t::Type{DisallowSnapshotRequestProto}) = meta(t, __req_DisallowSnapshotRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DisallowSnapshotRequestProto(; kwargs...) + obj = new(meta(DisallowSnapshotRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DisallowSnapshotRequestProto +const __meta_DisallowSnapshotRequestProto = Ref{ProtoMeta}() +function meta(::Type{DisallowSnapshotRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DisallowSnapshotRequestProto) + __meta_DisallowSnapshotRequestProto[] = target = ProtoMeta(DisallowSnapshotRequestProto) + req = Symbol[:snapshotRoot] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString] + meta(target, DisallowSnapshotRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DisallowSnapshotRequestProto[] + end +end +function Base.getproperty(obj::DisallowSnapshotRequestProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct DisallowSnapshotResponseProto <: ProtoType - DisallowSnapshotResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DisallowSnapshotResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DisallowSnapshotResponseProto(; kwargs...) + obj = new(meta(DisallowSnapshotResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DisallowSnapshotResponseProto +const __meta_DisallowSnapshotResponseProto = Ref{ProtoMeta}() +function meta(::Type{DisallowSnapshotResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DisallowSnapshotResponseProto) + __meta_DisallowSnapshotResponseProto[] = target = ProtoMeta(DisallowSnapshotResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, DisallowSnapshotResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DisallowSnapshotResponseProto[] + end +end mutable struct DeleteSnapshotRequestProto <: ProtoType - snapshotRoot::AbstractString - snapshotName::AbstractString - DeleteSnapshotRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DeleteSnapshotRequestProto -const __req_DeleteSnapshotRequestProto = Symbol[:snapshotRoot,:snapshotName] -meta(t::Type{DeleteSnapshotRequestProto}) = meta(t, __req_DeleteSnapshotRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DeleteSnapshotRequestProto(; kwargs...) + obj = new(meta(DeleteSnapshotRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DeleteSnapshotRequestProto +const __meta_DeleteSnapshotRequestProto = Ref{ProtoMeta}() +function meta(::Type{DeleteSnapshotRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DeleteSnapshotRequestProto) + __meta_DeleteSnapshotRequestProto[] = target = ProtoMeta(DeleteSnapshotRequestProto) + req = Symbol[:snapshotRoot,:snapshotName] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString, :snapshotName => AbstractString] + meta(target, DeleteSnapshotRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DeleteSnapshotRequestProto[] + end +end +function Base.getproperty(obj::DeleteSnapshotRequestProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :snapshotName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct DeleteSnapshotResponseProto <: ProtoType - DeleteSnapshotResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DeleteSnapshotResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DeleteSnapshotResponseProto(; kwargs...) + obj = new(meta(DeleteSnapshotResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DeleteSnapshotResponseProto +const __meta_DeleteSnapshotResponseProto = Ref{ProtoMeta}() +function meta(::Type{DeleteSnapshotResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DeleteSnapshotResponseProto) + __meta_DeleteSnapshotResponseProto[] = target = ProtoMeta(DeleteSnapshotResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, DeleteSnapshotResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DeleteSnapshotResponseProto[] + end +end mutable struct CheckAccessRequestProto <: ProtoType - path::AbstractString - mode::Int32 - CheckAccessRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CheckAccessRequestProto -const __req_CheckAccessRequestProto = Symbol[:path,:mode] -meta(t::Type{CheckAccessRequestProto}) = meta(t, __req_CheckAccessRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CheckAccessRequestProto(; kwargs...) + obj = new(meta(CheckAccessRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CheckAccessRequestProto +const __meta_CheckAccessRequestProto = Ref{ProtoMeta}() +function meta(::Type{CheckAccessRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CheckAccessRequestProto) + __meta_CheckAccessRequestProto[] = target = ProtoMeta(CheckAccessRequestProto) + req = Symbol[:path,:mode] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :mode => Int32] + meta(target, CheckAccessRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CheckAccessRequestProto[] + end +end +function Base.getproperty(obj::CheckAccessRequestProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :mode + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct CheckAccessResponseProto <: ProtoType - CheckAccessResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CheckAccessResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CheckAccessResponseProto(; kwargs...) + obj = new(meta(CheckAccessResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CheckAccessResponseProto +const __meta_CheckAccessResponseProto = Ref{ProtoMeta}() +function meta(::Type{CheckAccessResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CheckAccessResponseProto) + __meta_CheckAccessResponseProto[] = target = ProtoMeta(CheckAccessResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, CheckAccessResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CheckAccessResponseProto[] + end +end mutable struct GetCurrentEditLogTxidRequestProto <: ProtoType - GetCurrentEditLogTxidRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetCurrentEditLogTxidRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetCurrentEditLogTxidRequestProto(; kwargs...) + obj = new(meta(GetCurrentEditLogTxidRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetCurrentEditLogTxidRequestProto +const __meta_GetCurrentEditLogTxidRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetCurrentEditLogTxidRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetCurrentEditLogTxidRequestProto) + __meta_GetCurrentEditLogTxidRequestProto[] = target = ProtoMeta(GetCurrentEditLogTxidRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetCurrentEditLogTxidRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetCurrentEditLogTxidRequestProto[] + end +end mutable struct GetCurrentEditLogTxidResponseProto <: ProtoType - txid::Int64 - GetCurrentEditLogTxidResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetCurrentEditLogTxidResponseProto -const __req_GetCurrentEditLogTxidResponseProto = Symbol[:txid] -meta(t::Type{GetCurrentEditLogTxidResponseProto}) = meta(t, __req_GetCurrentEditLogTxidResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetCurrentEditLogTxidResponseProto(; kwargs...) + obj = new(meta(GetCurrentEditLogTxidResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetCurrentEditLogTxidResponseProto +const __meta_GetCurrentEditLogTxidResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetCurrentEditLogTxidResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetCurrentEditLogTxidResponseProto) + __meta_GetCurrentEditLogTxidResponseProto[] = target = ProtoMeta(GetCurrentEditLogTxidResponseProto) + req = Symbol[:txid] + allflds = Pair{Symbol,Union{Type,String}}[:txid => Int64] + meta(target, GetCurrentEditLogTxidResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetCurrentEditLogTxidResponseProto[] + end +end +function Base.getproperty(obj::GetCurrentEditLogTxidResponseProto, name::Symbol) + if name === :txid + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct GetEditsFromTxidRequestProto <: ProtoType - txid::Int64 - GetEditsFromTxidRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetEditsFromTxidRequestProto -const __req_GetEditsFromTxidRequestProto = Symbol[:txid] -meta(t::Type{GetEditsFromTxidRequestProto}) = meta(t, __req_GetEditsFromTxidRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetEditsFromTxidRequestProto(; kwargs...) + obj = new(meta(GetEditsFromTxidRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetEditsFromTxidRequestProto +const __meta_GetEditsFromTxidRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetEditsFromTxidRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetEditsFromTxidRequestProto) + __meta_GetEditsFromTxidRequestProto[] = target = ProtoMeta(GetEditsFromTxidRequestProto) + req = Symbol[:txid] + allflds = Pair{Symbol,Union{Type,String}}[:txid => Int64] + meta(target, GetEditsFromTxidRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetEditsFromTxidRequestProto[] + end +end +function Base.getproperty(obj::GetEditsFromTxidRequestProto, name::Symbol) + if name === :txid + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct GetEditsFromTxidResponseProto <: ProtoType - eventsList::EventsListProto - GetEditsFromTxidResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetEditsFromTxidResponseProto -const __req_GetEditsFromTxidResponseProto = Symbol[:eventsList] -meta(t::Type{GetEditsFromTxidResponseProto}) = meta(t, __req_GetEditsFromTxidResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetEditsFromTxidResponseProto(; kwargs...) + obj = new(meta(GetEditsFromTxidResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetEditsFromTxidResponseProto +const __meta_GetEditsFromTxidResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetEditsFromTxidResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetEditsFromTxidResponseProto) + __meta_GetEditsFromTxidResponseProto[] = target = ProtoMeta(GetEditsFromTxidResponseProto) + req = Symbol[:eventsList] + allflds = Pair{Symbol,Union{Type,String}}[:eventsList => EventsListProto] + meta(target, GetEditsFromTxidResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetEditsFromTxidResponseProto[] + end +end +function Base.getproperty(obj::GetEditsFromTxidResponseProto, name::Symbol) + if name === :eventsList + return (obj.__protobuf_jl_internal_values[name])::EventsListProto + else + getfield(obj, name) + end +end mutable struct ListOpenFilesRequestProto <: ProtoType - id::Int64 - ListOpenFilesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListOpenFilesRequestProto -const __req_ListOpenFilesRequestProto = Symbol[:id] -meta(t::Type{ListOpenFilesRequestProto}) = meta(t, __req_ListOpenFilesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListOpenFilesRequestProto(; kwargs...) + obj = new(meta(ListOpenFilesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListOpenFilesRequestProto +const __meta_ListOpenFilesRequestProto = Ref{ProtoMeta}() +function meta(::Type{ListOpenFilesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListOpenFilesRequestProto) + __meta_ListOpenFilesRequestProto[] = target = ProtoMeta(ListOpenFilesRequestProto) + req = Symbol[:id] + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64] + meta(target, ListOpenFilesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListOpenFilesRequestProto[] + end +end +function Base.getproperty(obj::ListOpenFilesRequestProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct OpenFilesBatchResponseProto <: ProtoType - id::Int64 - path::AbstractString - clientName::AbstractString - clientMachine::AbstractString - OpenFilesBatchResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpenFilesBatchResponseProto -const __req_OpenFilesBatchResponseProto = Symbol[:id,:path,:clientName,:clientMachine] -meta(t::Type{OpenFilesBatchResponseProto}) = meta(t, __req_OpenFilesBatchResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpenFilesBatchResponseProto(; kwargs...) + obj = new(meta(OpenFilesBatchResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpenFilesBatchResponseProto +const __meta_OpenFilesBatchResponseProto = Ref{ProtoMeta}() +function meta(::Type{OpenFilesBatchResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpenFilesBatchResponseProto) + __meta_OpenFilesBatchResponseProto[] = target = ProtoMeta(OpenFilesBatchResponseProto) + req = Symbol[:id,:path,:clientName,:clientMachine] + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64, :path => AbstractString, :clientName => AbstractString, :clientMachine => AbstractString] + meta(target, OpenFilesBatchResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpenFilesBatchResponseProto[] + end +end +function Base.getproperty(obj::OpenFilesBatchResponseProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientMachine + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ListOpenFilesResponseProto <: ProtoType - entries::Base.Vector{OpenFilesBatchResponseProto} - hasMore::Bool - ListOpenFilesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListOpenFilesResponseProto -const __req_ListOpenFilesResponseProto = Symbol[:hasMore] -meta(t::Type{ListOpenFilesResponseProto}) = meta(t, __req_ListOpenFilesResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListOpenFilesResponseProto(; kwargs...) + obj = new(meta(ListOpenFilesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListOpenFilesResponseProto +const __meta_ListOpenFilesResponseProto = Ref{ProtoMeta}() +function meta(::Type{ListOpenFilesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListOpenFilesResponseProto) + __meta_ListOpenFilesResponseProto[] = target = ProtoMeta(ListOpenFilesResponseProto) + req = Symbol[:hasMore] + allflds = Pair{Symbol,Union{Type,String}}[:entries => Base.Vector{OpenFilesBatchResponseProto}, :hasMore => Bool] + meta(target, ListOpenFilesResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListOpenFilesResponseProto[] + end +end +function Base.getproperty(obj::ListOpenFilesResponseProto, name::Symbol) + if name === :entries + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{OpenFilesBatchResponseProto} + elseif name === :hasMore + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct MsyncRequestProto <: ProtoType - MsyncRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MsyncRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MsyncRequestProto(; kwargs...) + obj = new(meta(MsyncRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MsyncRequestProto +const __meta_MsyncRequestProto = Ref{ProtoMeta}() +function meta(::Type{MsyncRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MsyncRequestProto) + __meta_MsyncRequestProto[] = target = ProtoMeta(MsyncRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, MsyncRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MsyncRequestProto[] + end +end mutable struct MsyncResponseProto <: ProtoType - MsyncResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MsyncResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MsyncResponseProto(; kwargs...) + obj = new(meta(MsyncResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MsyncResponseProto +const __meta_MsyncResponseProto = Ref{ProtoMeta}() +function meta(::Type{MsyncResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MsyncResponseProto) + __meta_MsyncResponseProto[] = target = ProtoMeta(MsyncResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, MsyncResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MsyncResponseProto[] + end +end mutable struct HAServiceStateRequestProto <: ProtoType - HAServiceStateRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct HAServiceStateRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function HAServiceStateRequestProto(; kwargs...) + obj = new(meta(HAServiceStateRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct HAServiceStateRequestProto +const __meta_HAServiceStateRequestProto = Ref{ProtoMeta}() +function meta(::Type{HAServiceStateRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_HAServiceStateRequestProto) + __meta_HAServiceStateRequestProto[] = target = ProtoMeta(HAServiceStateRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, HAServiceStateRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_HAServiceStateRequestProto[] + end +end mutable struct HAServiceStateResponseProto <: ProtoType - state::Int32 - HAServiceStateResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct HAServiceStateResponseProto -const __req_HAServiceStateResponseProto = Symbol[:state] -meta(t::Type{HAServiceStateResponseProto}) = meta(t, __req_HAServiceStateResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function HAServiceStateResponseProto(; kwargs...) + obj = new(meta(HAServiceStateResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct HAServiceStateResponseProto +const __meta_HAServiceStateResponseProto = Ref{ProtoMeta}() +function meta(::Type{HAServiceStateResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_HAServiceStateResponseProto) + __meta_HAServiceStateResponseProto[] = target = ProtoMeta(HAServiceStateResponseProto) + req = Symbol[:state] + allflds = Pair{Symbol,Union{Type,String}}[:state => Int32] + meta(target, HAServiceStateResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_HAServiceStateResponseProto[] + end +end +function Base.getproperty(obj::HAServiceStateResponseProto, name::Symbol) + if name === :state + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end # service methods for ClientNamenodeProtocol const _ClientNamenodeProtocol_methods = MethodDescriptor[ @@ -1486,3 +6076,4 @@ getHAServiceState(stub::ClientNamenodeProtocolStub, controller::ProtoRpcControll getHAServiceState(stub::ClientNamenodeProtocolBlockingStub, controller::ProtoRpcController, inp::hadoop.hdfs.HAServiceStateRequestProto) = call_method(stub.impl, _ClientNamenodeProtocol_methods[89], controller, inp) export CreateFlagProto, AddBlockFlagProto, DatanodeReportTypeProto, SafeModeActionProto, RollingUpgradeActionProto, CacheFlagProto, GetBlockLocationsRequestProto, GetBlockLocationsResponseProto, GetServerDefaultsRequestProto, GetServerDefaultsResponseProto, CreateRequestProto, CreateResponseProto, AppendRequestProto, AppendResponseProto, SetReplicationRequestProto, SetReplicationResponseProto, SetStoragePolicyRequestProto, SetStoragePolicyResponseProto, UnsetStoragePolicyRequestProto, UnsetStoragePolicyResponseProto, GetStoragePolicyRequestProto, GetStoragePolicyResponseProto, GetStoragePoliciesRequestProto, GetStoragePoliciesResponseProto, SetPermissionRequestProto, SetPermissionResponseProto, SetOwnerRequestProto, SetOwnerResponseProto, AbandonBlockRequestProto, AbandonBlockResponseProto, AddBlockRequestProto, AddBlockResponseProto, GetAdditionalDatanodeRequestProto, GetAdditionalDatanodeResponseProto, CompleteRequestProto, CompleteResponseProto, ReportBadBlocksRequestProto, ReportBadBlocksResponseProto, ConcatRequestProto, ConcatResponseProto, TruncateRequestProto, TruncateResponseProto, RenameRequestProto, RenameResponseProto, Rename2RequestProto, Rename2ResponseProto, DeleteRequestProto, DeleteResponseProto, MkdirsRequestProto, MkdirsResponseProto, GetListingRequestProto, GetListingResponseProto, GetSnapshottableDirListingRequestProto, GetSnapshottableDirListingResponseProto, GetSnapshotDiffReportRequestProto, GetSnapshotDiffReportResponseProto, RenewLeaseRequestProto, RenewLeaseResponseProto, RecoverLeaseRequestProto, RecoverLeaseResponseProto, GetFsStatusRequestProto, GetFsStatsResponseProto, GetDatanodeReportRequestProto, GetDatanodeReportResponseProto, GetDatanodeStorageReportRequestProto, DatanodeStorageReportProto, GetDatanodeStorageReportResponseProto, GetPreferredBlockSizeRequestProto, GetPreferredBlockSizeResponseProto, SetSafeModeRequestProto, SetSafeModeResponseProto, SaveNamespaceRequestProto, SaveNamespaceResponseProto, RollEditsRequestProto, RollEditsResponseProto, RestoreFailedStorageRequestProto, RestoreFailedStorageResponseProto, RefreshNodesRequestProto, RefreshNodesResponseProto, FinalizeUpgradeRequestProto, FinalizeUpgradeResponseProto, RollingUpgradeRequestProto, RollingUpgradeInfoProto, RollingUpgradeResponseProto, ListCorruptFileBlocksRequestProto, ListCorruptFileBlocksResponseProto, MetaSaveRequestProto, MetaSaveResponseProto, GetFileInfoRequestProto, GetFileInfoResponseProto, IsFileClosedRequestProto, IsFileClosedResponseProto, CacheDirectiveInfoProto, CacheDirectiveInfoExpirationProto, CacheDirectiveStatsProto, AddCacheDirectiveRequestProto, AddCacheDirectiveResponseProto, ModifyCacheDirectiveRequestProto, ModifyCacheDirectiveResponseProto, RemoveCacheDirectiveRequestProto, RemoveCacheDirectiveResponseProto, ListCacheDirectivesRequestProto, CacheDirectiveEntryProto, ListCacheDirectivesResponseProto, CachePoolInfoProto, CachePoolStatsProto, AddCachePoolRequestProto, AddCachePoolResponseProto, ModifyCachePoolRequestProto, ModifyCachePoolResponseProto, RemoveCachePoolRequestProto, RemoveCachePoolResponseProto, ListCachePoolsRequestProto, ListCachePoolsResponseProto, CachePoolEntryProto, GetFileLinkInfoRequestProto, GetFileLinkInfoResponseProto, GetContentSummaryRequestProto, GetContentSummaryResponseProto, GetQuotaUsageRequestProto, GetQuotaUsageResponseProto, SetQuotaRequestProto, SetQuotaResponseProto, FsyncRequestProto, FsyncResponseProto, SetTimesRequestProto, SetTimesResponseProto, CreateSymlinkRequestProto, CreateSymlinkResponseProto, GetLinkTargetRequestProto, GetLinkTargetResponseProto, UpdateBlockForPipelineRequestProto, UpdateBlockForPipelineResponseProto, UpdatePipelineRequestProto, UpdatePipelineResponseProto, SetBalancerBandwidthRequestProto, SetBalancerBandwidthResponseProto, GetDataEncryptionKeyRequestProto, GetDataEncryptionKeyResponseProto, CreateSnapshotRequestProto, CreateSnapshotResponseProto, RenameSnapshotRequestProto, RenameSnapshotResponseProto, AllowSnapshotRequestProto, AllowSnapshotResponseProto, DisallowSnapshotRequestProto, DisallowSnapshotResponseProto, DeleteSnapshotRequestProto, DeleteSnapshotResponseProto, CheckAccessRequestProto, CheckAccessResponseProto, GetCurrentEditLogTxidRequestProto, GetCurrentEditLogTxidResponseProto, GetEditsFromTxidRequestProto, GetEditsFromTxidResponseProto, ListOpenFilesRequestProto, OpenFilesBatchResponseProto, ListOpenFilesResponseProto, MsyncRequestProto, MsyncResponseProto, HAServiceStateRequestProto, HAServiceStateResponseProto, ClientNamenodeProtocol, ClientNamenodeProtocolStub, ClientNamenodeProtocolBlockingStub, getBlockLocations, getServerDefaults, create, append, setReplication, setStoragePolicy, unsetStoragePolicy, getStoragePolicy, getStoragePolicies, setPermission, setOwner, abandonBlock, addBlock, getAdditionalDatanode, complete, reportBadBlocks, concat, truncate, rename, rename2, delete, mkdirs, getListing, renewLease, recoverLease, getFsStats, getDatanodeReport, getDatanodeStorageReport, getPreferredBlockSize, setSafeMode, saveNamespace, rollEdits, restoreFailedStorage, refreshNodes, finalizeUpgrade, rollingUpgrade, listCorruptFileBlocks, metaSave, getFileInfo, addCacheDirective, modifyCacheDirective, removeCacheDirective, listCacheDirectives, addCachePool, modifyCachePool, removeCachePool, listCachePools, getFileLinkInfo, getContentSummary, setQuota, fsync, setTimes, createSymlink, getLinkTarget, updateBlockForPipeline, updatePipeline, getDelegationToken, renewDelegationToken, cancelDelegationToken, setBalancerBandwidth, getDataEncryptionKey, createSnapshot, renameSnapshot, allowSnapshot, disallowSnapshot, getSnapshottableDirListing, deleteSnapshot, getSnapshotDiffReport, isFileClosed, modifyAclEntries, removeAclEntries, removeDefaultAcl, removeAcl, setAcl, getAclStatus, setXAttr, getXAttrs, listXAttrs, removeXAttr, checkAccess, createEncryptionZone, listEncryptionZones, getEZForPath, getCurrentEditLogTxid, getEditsFromTxid, getQuotaUsage, listOpenFiles, msync, getHAServiceState +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/HAServiceProtocol_pb.jl b/src/hadoop/HAServiceProtocol_pb.jl index ef3eeac..7c741a2 100644 --- a/src/hadoop/HAServiceProtocol_pb.jl +++ b/src/hadoop/HAServiceProtocol_pb.jl @@ -1,85 +1,384 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop -struct __enum_HAServiceStateProto <: ProtoEnum - INITIALIZING::Int32 - ACTIVE::Int32 - STANDBY::Int32 - OBSERVER::Int32 - __enum_HAServiceStateProto() = new(0,1,2,3) -end #struct __enum_HAServiceStateProto -const HAServiceStateProto = __enum_HAServiceStateProto() - -struct __enum_HARequestSource <: ProtoEnum - REQUEST_BY_USER::Int32 - REQUEST_BY_USER_FORCED::Int32 - REQUEST_BY_ZKFC::Int32 - __enum_HARequestSource() = new(0,1,2) -end #struct __enum_HARequestSource -const HARequestSource = __enum_HARequestSource() +const HAServiceStateProto = (;[ + Symbol("INITIALIZING") => Int32(0), + Symbol("ACTIVE") => Int32(1), + Symbol("STANDBY") => Int32(2), + Symbol("OBSERVER") => Int32(3), +]...) + +const HARequestSource = (;[ + Symbol("REQUEST_BY_USER") => Int32(0), + Symbol("REQUEST_BY_USER_FORCED") => Int32(1), + Symbol("REQUEST_BY_ZKFC") => Int32(2), +]...) mutable struct HAStateChangeRequestInfoProto <: ProtoType - reqSource::Int32 - HAStateChangeRequestInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct HAStateChangeRequestInfoProto -const __req_HAStateChangeRequestInfoProto = Symbol[:reqSource] -meta(t::Type{HAStateChangeRequestInfoProto}) = meta(t, __req_HAStateChangeRequestInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function HAStateChangeRequestInfoProto(; kwargs...) + obj = new(meta(HAStateChangeRequestInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct HAStateChangeRequestInfoProto +const __meta_HAStateChangeRequestInfoProto = Ref{ProtoMeta}() +function meta(::Type{HAStateChangeRequestInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_HAStateChangeRequestInfoProto) + __meta_HAStateChangeRequestInfoProto[] = target = ProtoMeta(HAStateChangeRequestInfoProto) + req = Symbol[:reqSource] + allflds = Pair{Symbol,Union{Type,String}}[:reqSource => Int32] + meta(target, HAStateChangeRequestInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_HAStateChangeRequestInfoProto[] + end +end +function Base.getproperty(obj::HAStateChangeRequestInfoProto, name::Symbol) + if name === :reqSource + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct MonitorHealthRequestProto <: ProtoType - MonitorHealthRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MonitorHealthRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MonitorHealthRequestProto(; kwargs...) + obj = new(meta(MonitorHealthRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MonitorHealthRequestProto +const __meta_MonitorHealthRequestProto = Ref{ProtoMeta}() +function meta(::Type{MonitorHealthRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MonitorHealthRequestProto) + __meta_MonitorHealthRequestProto[] = target = ProtoMeta(MonitorHealthRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, MonitorHealthRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MonitorHealthRequestProto[] + end +end mutable struct MonitorHealthResponseProto <: ProtoType - MonitorHealthResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MonitorHealthResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MonitorHealthResponseProto(; kwargs...) + obj = new(meta(MonitorHealthResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MonitorHealthResponseProto +const __meta_MonitorHealthResponseProto = Ref{ProtoMeta}() +function meta(::Type{MonitorHealthResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MonitorHealthResponseProto) + __meta_MonitorHealthResponseProto[] = target = ProtoMeta(MonitorHealthResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, MonitorHealthResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MonitorHealthResponseProto[] + end +end mutable struct TransitionToActiveRequestProto <: ProtoType - reqInfo::HAStateChangeRequestInfoProto - TransitionToActiveRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TransitionToActiveRequestProto -const __req_TransitionToActiveRequestProto = Symbol[:reqInfo] -meta(t::Type{TransitionToActiveRequestProto}) = meta(t, __req_TransitionToActiveRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TransitionToActiveRequestProto(; kwargs...) + obj = new(meta(TransitionToActiveRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TransitionToActiveRequestProto +const __meta_TransitionToActiveRequestProto = Ref{ProtoMeta}() +function meta(::Type{TransitionToActiveRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TransitionToActiveRequestProto) + __meta_TransitionToActiveRequestProto[] = target = ProtoMeta(TransitionToActiveRequestProto) + req = Symbol[:reqInfo] + allflds = Pair{Symbol,Union{Type,String}}[:reqInfo => HAStateChangeRequestInfoProto] + meta(target, TransitionToActiveRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TransitionToActiveRequestProto[] + end +end +function Base.getproperty(obj::TransitionToActiveRequestProto, name::Symbol) + if name === :reqInfo + return (obj.__protobuf_jl_internal_values[name])::HAStateChangeRequestInfoProto + else + getfield(obj, name) + end +end mutable struct TransitionToActiveResponseProto <: ProtoType - TransitionToActiveResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TransitionToActiveResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TransitionToActiveResponseProto(; kwargs...) + obj = new(meta(TransitionToActiveResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TransitionToActiveResponseProto +const __meta_TransitionToActiveResponseProto = Ref{ProtoMeta}() +function meta(::Type{TransitionToActiveResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TransitionToActiveResponseProto) + __meta_TransitionToActiveResponseProto[] = target = ProtoMeta(TransitionToActiveResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, TransitionToActiveResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TransitionToActiveResponseProto[] + end +end mutable struct TransitionToStandbyRequestProto <: ProtoType - reqInfo::HAStateChangeRequestInfoProto - TransitionToStandbyRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TransitionToStandbyRequestProto -const __req_TransitionToStandbyRequestProto = Symbol[:reqInfo] -meta(t::Type{TransitionToStandbyRequestProto}) = meta(t, __req_TransitionToStandbyRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TransitionToStandbyRequestProto(; kwargs...) + obj = new(meta(TransitionToStandbyRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TransitionToStandbyRequestProto +const __meta_TransitionToStandbyRequestProto = Ref{ProtoMeta}() +function meta(::Type{TransitionToStandbyRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TransitionToStandbyRequestProto) + __meta_TransitionToStandbyRequestProto[] = target = ProtoMeta(TransitionToStandbyRequestProto) + req = Symbol[:reqInfo] + allflds = Pair{Symbol,Union{Type,String}}[:reqInfo => HAStateChangeRequestInfoProto] + meta(target, TransitionToStandbyRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TransitionToStandbyRequestProto[] + end +end +function Base.getproperty(obj::TransitionToStandbyRequestProto, name::Symbol) + if name === :reqInfo + return (obj.__protobuf_jl_internal_values[name])::HAStateChangeRequestInfoProto + else + getfield(obj, name) + end +end mutable struct TransitionToStandbyResponseProto <: ProtoType - TransitionToStandbyResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TransitionToStandbyResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TransitionToStandbyResponseProto(; kwargs...) + obj = new(meta(TransitionToStandbyResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TransitionToStandbyResponseProto +const __meta_TransitionToStandbyResponseProto = Ref{ProtoMeta}() +function meta(::Type{TransitionToStandbyResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TransitionToStandbyResponseProto) + __meta_TransitionToStandbyResponseProto[] = target = ProtoMeta(TransitionToStandbyResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, TransitionToStandbyResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TransitionToStandbyResponseProto[] + end +end mutable struct TransitionToObserverRequestProto <: ProtoType - reqInfo::HAStateChangeRequestInfoProto - TransitionToObserverRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TransitionToObserverRequestProto -const __req_TransitionToObserverRequestProto = Symbol[:reqInfo] -meta(t::Type{TransitionToObserverRequestProto}) = meta(t, __req_TransitionToObserverRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TransitionToObserverRequestProto(; kwargs...) + obj = new(meta(TransitionToObserverRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TransitionToObserverRequestProto +const __meta_TransitionToObserverRequestProto = Ref{ProtoMeta}() +function meta(::Type{TransitionToObserverRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TransitionToObserverRequestProto) + __meta_TransitionToObserverRequestProto[] = target = ProtoMeta(TransitionToObserverRequestProto) + req = Symbol[:reqInfo] + allflds = Pair{Symbol,Union{Type,String}}[:reqInfo => HAStateChangeRequestInfoProto] + meta(target, TransitionToObserverRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TransitionToObserverRequestProto[] + end +end +function Base.getproperty(obj::TransitionToObserverRequestProto, name::Symbol) + if name === :reqInfo + return (obj.__protobuf_jl_internal_values[name])::HAStateChangeRequestInfoProto + else + getfield(obj, name) + end +end mutable struct TransitionToObserverResponseProto <: ProtoType - TransitionToObserverResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TransitionToObserverResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TransitionToObserverResponseProto(; kwargs...) + obj = new(meta(TransitionToObserverResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TransitionToObserverResponseProto +const __meta_TransitionToObserverResponseProto = Ref{ProtoMeta}() +function meta(::Type{TransitionToObserverResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TransitionToObserverResponseProto) + __meta_TransitionToObserverResponseProto[] = target = ProtoMeta(TransitionToObserverResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, TransitionToObserverResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TransitionToObserverResponseProto[] + end +end mutable struct GetServiceStatusRequestProto <: ProtoType - GetServiceStatusRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetServiceStatusRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetServiceStatusRequestProto(; kwargs...) + obj = new(meta(GetServiceStatusRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetServiceStatusRequestProto +const __meta_GetServiceStatusRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetServiceStatusRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetServiceStatusRequestProto) + __meta_GetServiceStatusRequestProto[] = target = ProtoMeta(GetServiceStatusRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetServiceStatusRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetServiceStatusRequestProto[] + end +end mutable struct GetServiceStatusResponseProto <: ProtoType - state::Int32 - readyToBecomeActive::Bool - notReadyReason::AbstractString - GetServiceStatusResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetServiceStatusResponseProto -const __req_GetServiceStatusResponseProto = Symbol[:state] -meta(t::Type{GetServiceStatusResponseProto}) = meta(t, __req_GetServiceStatusResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetServiceStatusResponseProto(; kwargs...) + obj = new(meta(GetServiceStatusResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetServiceStatusResponseProto +const __meta_GetServiceStatusResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetServiceStatusResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetServiceStatusResponseProto) + __meta_GetServiceStatusResponseProto[] = target = ProtoMeta(GetServiceStatusResponseProto) + req = Symbol[:state] + allflds = Pair{Symbol,Union{Type,String}}[:state => Int32, :readyToBecomeActive => Bool, :notReadyReason => AbstractString] + meta(target, GetServiceStatusResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetServiceStatusResponseProto[] + end +end +function Base.getproperty(obj::GetServiceStatusResponseProto, name::Symbol) + if name === :state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :readyToBecomeActive + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :notReadyReason + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end # service methods for HAServiceProtocolService const _HAServiceProtocolService_methods = MethodDescriptor[ @@ -119,3 +418,4 @@ getServiceStatus(stub::HAServiceProtocolServiceStub, controller::ProtoRpcControl getServiceStatus(stub::HAServiceProtocolServiceBlockingStub, controller::ProtoRpcController, inp::hadoop.common.GetServiceStatusRequestProto) = call_method(stub.impl, _HAServiceProtocolService_methods[5], controller, inp) export HAServiceStateProto, HARequestSource, HAStateChangeRequestInfoProto, MonitorHealthRequestProto, MonitorHealthResponseProto, TransitionToActiveRequestProto, TransitionToActiveResponseProto, TransitionToStandbyRequestProto, TransitionToStandbyResponseProto, TransitionToObserverRequestProto, TransitionToObserverResponseProto, GetServiceStatusRequestProto, GetServiceStatusResponseProto, HAServiceProtocolService, HAServiceProtocolServiceStub, HAServiceProtocolServiceBlockingStub, monitorHealth, transitionToActive, transitionToStandby, transitionToObserver, getServiceStatus +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/IpcConnectionContext_pb.jl b/src/hadoop/IpcConnectionContext_pb.jl index 2a7b1e4..21b390c 100644 --- a/src/hadoop/IpcConnectionContext_pb.jl +++ b/src/hadoop/IpcConnectionContext_pb.jl @@ -1,19 +1,84 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta mutable struct UserInformationProto <: ProtoType - effectiveUser::AbstractString - realUser::AbstractString - UserInformationProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UserInformationProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UserInformationProto(; kwargs...) + obj = new(meta(UserInformationProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UserInformationProto +const __meta_UserInformationProto = Ref{ProtoMeta}() +function meta(::Type{UserInformationProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UserInformationProto) + __meta_UserInformationProto[] = target = ProtoMeta(UserInformationProto) + allflds = Pair{Symbol,Union{Type,String}}[:effectiveUser => AbstractString, :realUser => AbstractString] + meta(target, UserInformationProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UserInformationProto[] + end +end +function Base.getproperty(obj::UserInformationProto, name::Symbol) + if name === :effectiveUser + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :realUser + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct IpcConnectionContextProto <: ProtoType - userInfo::UserInformationProto - protocol::AbstractString - IpcConnectionContextProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct IpcConnectionContextProto -const __fnum_IpcConnectionContextProto = Int[2,3] -meta(t::Type{IpcConnectionContextProto}) = meta(t, ProtoBuf.DEF_REQ, __fnum_IpcConnectionContextProto, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function IpcConnectionContextProto(; kwargs...) + obj = new(meta(IpcConnectionContextProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct IpcConnectionContextProto +const __meta_IpcConnectionContextProto = Ref{ProtoMeta}() +function meta(::Type{IpcConnectionContextProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_IpcConnectionContextProto) + __meta_IpcConnectionContextProto[] = target = ProtoMeta(IpcConnectionContextProto) + fnum = Int[2,3] + allflds = Pair{Symbol,Union{Type,String}}[:userInfo => UserInformationProto, :protocol => AbstractString] + meta(target, IpcConnectionContextProto, allflds, ProtoBuf.DEF_REQ, fnum, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_IpcConnectionContextProto[] + end +end +function Base.getproperty(obj::IpcConnectionContextProto, name::Symbol) + if name === :userInfo + return (obj.__protobuf_jl_internal_values[name])::UserInformationProto + elseif name === :protocol + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end export UserInformationProto, IpcConnectionContextProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/ProtobufRpcEngine_pb.jl b/src/hadoop/ProtobufRpcEngine_pb.jl index e59f5b9..a9d04a2 100644 --- a/src/hadoop/ProtobufRpcEngine_pb.jl +++ b/src/hadoop/ProtobufRpcEngine_pb.jl @@ -1,14 +1,48 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta mutable struct RequestHeaderProto <: ProtoType - methodName::AbstractString - declaringClassProtocolName::AbstractString - clientProtocolVersion::UInt64 - RequestHeaderProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RequestHeaderProto -const __req_RequestHeaderProto = Symbol[:methodName,:declaringClassProtocolName,:clientProtocolVersion] -meta(t::Type{RequestHeaderProto}) = meta(t, __req_RequestHeaderProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RequestHeaderProto(; kwargs...) + obj = new(meta(RequestHeaderProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RequestHeaderProto +const __meta_RequestHeaderProto = Ref{ProtoMeta}() +function meta(::Type{RequestHeaderProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RequestHeaderProto) + __meta_RequestHeaderProto[] = target = ProtoMeta(RequestHeaderProto) + req = Symbol[:methodName,:declaringClassProtocolName,:clientProtocolVersion] + allflds = Pair{Symbol,Union{Type,String}}[:methodName => AbstractString, :declaringClassProtocolName => AbstractString, :clientProtocolVersion => UInt64] + meta(target, RequestHeaderProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RequestHeaderProto[] + end +end +function Base.getproperty(obj::RequestHeaderProto, name::Symbol) + if name === :methodName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :declaringClassProtocolName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :clientProtocolVersion + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end export RequestHeaderProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/RpcHeader_pb.jl b/src/hadoop/RpcHeader_pb.jl index 3a3d4b1..abfc02d 100644 --- a/src/hadoop/RpcHeader_pb.jl +++ b/src/hadoop/RpcHeader_pb.jl @@ -1,125 +1,322 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta -struct __enum_RpcKindProto <: ProtoEnum - RPC_BUILTIN::Int32 - RPC_WRITABLE::Int32 - RPC_PROTOCOL_BUFFER::Int32 - __enum_RpcKindProto() = new(0,1,2) -end #struct __enum_RpcKindProto -const RpcKindProto = __enum_RpcKindProto() +const RpcKindProto = (;[ + Symbol("RPC_BUILTIN") => Int32(0), + Symbol("RPC_WRITABLE") => Int32(1), + Symbol("RPC_PROTOCOL_BUFFER") => Int32(2), +]...) mutable struct RPCTraceInfoProto <: ProtoType - traceId::Int64 - parentId::Int64 - RPCTraceInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RPCTraceInfoProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RPCTraceInfoProto(; kwargs...) + obj = new(meta(RPCTraceInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RPCTraceInfoProto +const __meta_RPCTraceInfoProto = Ref{ProtoMeta}() +function meta(::Type{RPCTraceInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RPCTraceInfoProto) + __meta_RPCTraceInfoProto[] = target = ProtoMeta(RPCTraceInfoProto) + allflds = Pair{Symbol,Union{Type,String}}[:traceId => Int64, :parentId => Int64] + meta(target, RPCTraceInfoProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RPCTraceInfoProto[] + end +end +function Base.getproperty(obj::RPCTraceInfoProto, name::Symbol) + if name === :traceId + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :parentId + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct RPCCallerContextProto <: ProtoType - context::AbstractString - signature::Array{UInt8,1} - RPCCallerContextProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RPCCallerContextProto -const __req_RPCCallerContextProto = Symbol[:context] -meta(t::Type{RPCCallerContextProto}) = meta(t, __req_RPCCallerContextProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_RpcRequestHeaderProto_OperationProto <: ProtoEnum - RPC_FINAL_PACKET::Int32 - RPC_CONTINUATION_PACKET::Int32 - RPC_CLOSE_CONNECTION::Int32 - __enum_RpcRequestHeaderProto_OperationProto() = new(0,1,2) -end #struct __enum_RpcRequestHeaderProto_OperationProto -const RpcRequestHeaderProto_OperationProto = __enum_RpcRequestHeaderProto_OperationProto() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RPCCallerContextProto(; kwargs...) + obj = new(meta(RPCCallerContextProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RPCCallerContextProto +const __meta_RPCCallerContextProto = Ref{ProtoMeta}() +function meta(::Type{RPCCallerContextProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RPCCallerContextProto) + __meta_RPCCallerContextProto[] = target = ProtoMeta(RPCCallerContextProto) + req = Symbol[:context] + allflds = Pair{Symbol,Union{Type,String}}[:context => AbstractString, :signature => Array{UInt8,1}] + meta(target, RPCCallerContextProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RPCCallerContextProto[] + end +end +function Base.getproperty(obj::RPCCallerContextProto, name::Symbol) + if name === :context + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :signature + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end + +const RpcRequestHeaderProto_OperationProto = (;[ + Symbol("RPC_FINAL_PACKET") => Int32(0), + Symbol("RPC_CONTINUATION_PACKET") => Int32(1), + Symbol("RPC_CLOSE_CONNECTION") => Int32(2), +]...) mutable struct RpcRequestHeaderProto <: ProtoType - rpcKind::Int32 - rpcOp::Int32 - callId::Int32 - clientId::Array{UInt8,1} - retryCount::Int32 - traceInfo::RPCTraceInfoProto - callerContext::RPCCallerContextProto - stateId::Int64 - RpcRequestHeaderProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RpcRequestHeaderProto -const __req_RpcRequestHeaderProto = Symbol[:callId,:clientId] -const __val_RpcRequestHeaderProto = Dict(:retryCount => -1) -const __wtype_RpcRequestHeaderProto = Dict(:callId => :sint32, :retryCount => :sint32) -meta(t::Type{RpcRequestHeaderProto}) = meta(t, __req_RpcRequestHeaderProto, ProtoBuf.DEF_FNUM, __val_RpcRequestHeaderProto, true, ProtoBuf.DEF_PACK, __wtype_RpcRequestHeaderProto, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_RpcResponseHeaderProto_RpcStatusProto <: ProtoEnum - SUCCESS::Int32 - ERROR::Int32 - FATAL::Int32 - __enum_RpcResponseHeaderProto_RpcStatusProto() = new(0,1,2) -end #struct __enum_RpcResponseHeaderProto_RpcStatusProto -const RpcResponseHeaderProto_RpcStatusProto = __enum_RpcResponseHeaderProto_RpcStatusProto() - -struct __enum_RpcResponseHeaderProto_RpcErrorCodeProto <: ProtoEnum - ERROR_APPLICATION::Int32 - ERROR_NO_SUCH_METHOD::Int32 - ERROR_NO_SUCH_PROTOCOL::Int32 - ERROR_RPC_SERVER::Int32 - ERROR_SERIALIZING_RESPONSE::Int32 - ERROR_RPC_VERSION_MISMATCH::Int32 - FATAL_UNKNOWN::Int32 - FATAL_UNSUPPORTED_SERIALIZATION::Int32 - FATAL_INVALID_RPC_HEADER::Int32 - FATAL_DESERIALIZING_REQUEST::Int32 - FATAL_VERSION_MISMATCH::Int32 - FATAL_UNAUTHORIZED::Int32 - __enum_RpcResponseHeaderProto_RpcErrorCodeProto() = new(1,2,3,4,5,6,10,11,12,13,14,15) -end #struct __enum_RpcResponseHeaderProto_RpcErrorCodeProto -const RpcResponseHeaderProto_RpcErrorCodeProto = __enum_RpcResponseHeaderProto_RpcErrorCodeProto() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RpcRequestHeaderProto(; kwargs...) + obj = new(meta(RpcRequestHeaderProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RpcRequestHeaderProto +const __meta_RpcRequestHeaderProto = Ref{ProtoMeta}() +function meta(::Type{RpcRequestHeaderProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RpcRequestHeaderProto) + __meta_RpcRequestHeaderProto[] = target = ProtoMeta(RpcRequestHeaderProto) + req = Symbol[:callId,:clientId] + val = Dict{Symbol,Any}(:retryCount => -1) + wtype = Dict(:callId => :sint32, :retryCount => :sint32) + allflds = Pair{Symbol,Union{Type,String}}[:rpcKind => Int32, :rpcOp => Int32, :callId => Int32, :clientId => Array{UInt8,1}, :retryCount => Int32, :traceInfo => RPCTraceInfoProto, :callerContext => RPCCallerContextProto, :stateId => Int64] + meta(target, RpcRequestHeaderProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, wtype, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RpcRequestHeaderProto[] + end +end +function Base.getproperty(obj::RpcRequestHeaderProto, name::Symbol) + if name === :rpcKind + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :rpcOp + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :callId + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :clientId + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :retryCount + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :traceInfo + return (obj.__protobuf_jl_internal_values[name])::RPCTraceInfoProto + elseif name === :callerContext + return (obj.__protobuf_jl_internal_values[name])::RPCCallerContextProto + elseif name === :stateId + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end + +const RpcResponseHeaderProto_RpcStatusProto = (;[ + Symbol("SUCCESS") => Int32(0), + Symbol("ERROR") => Int32(1), + Symbol("FATAL") => Int32(2), +]...) + +const RpcResponseHeaderProto_RpcErrorCodeProto = (;[ + Symbol("ERROR_APPLICATION") => Int32(1), + Symbol("ERROR_NO_SUCH_METHOD") => Int32(2), + Symbol("ERROR_NO_SUCH_PROTOCOL") => Int32(3), + Symbol("ERROR_RPC_SERVER") => Int32(4), + Symbol("ERROR_SERIALIZING_RESPONSE") => Int32(5), + Symbol("ERROR_RPC_VERSION_MISMATCH") => Int32(6), + Symbol("FATAL_UNKNOWN") => Int32(10), + Symbol("FATAL_UNSUPPORTED_SERIALIZATION") => Int32(11), + Symbol("FATAL_INVALID_RPC_HEADER") => Int32(12), + Symbol("FATAL_DESERIALIZING_REQUEST") => Int32(13), + Symbol("FATAL_VERSION_MISMATCH") => Int32(14), + Symbol("FATAL_UNAUTHORIZED") => Int32(15), +]...) mutable struct RpcResponseHeaderProto <: ProtoType - callId::UInt32 - status::Int32 - serverIpcVersionNum::UInt32 - exceptionClassName::AbstractString - errorMsg::AbstractString - errorDetail::Int32 - clientId::Array{UInt8,1} - retryCount::Int32 - stateId::Int64 - RpcResponseHeaderProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RpcResponseHeaderProto -const __req_RpcResponseHeaderProto = Symbol[:callId,:status] -const __val_RpcResponseHeaderProto = Dict(:retryCount => -1) -const __wtype_RpcResponseHeaderProto = Dict(:retryCount => :sint32) -meta(t::Type{RpcResponseHeaderProto}) = meta(t, __req_RpcResponseHeaderProto, ProtoBuf.DEF_FNUM, __val_RpcResponseHeaderProto, true, ProtoBuf.DEF_PACK, __wtype_RpcResponseHeaderProto, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_RpcSaslProto_SaslState <: ProtoEnum - SUCCESS::Int32 - NEGOTIATE::Int32 - INITIATE::Int32 - CHALLENGE::Int32 - RESPONSE::Int32 - WRAP::Int32 - __enum_RpcSaslProto_SaslState() = new(0,1,2,3,4,5) -end #struct __enum_RpcSaslProto_SaslState -const RpcSaslProto_SaslState = __enum_RpcSaslProto_SaslState() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RpcResponseHeaderProto(; kwargs...) + obj = new(meta(RpcResponseHeaderProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RpcResponseHeaderProto +const __meta_RpcResponseHeaderProto = Ref{ProtoMeta}() +function meta(::Type{RpcResponseHeaderProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RpcResponseHeaderProto) + __meta_RpcResponseHeaderProto[] = target = ProtoMeta(RpcResponseHeaderProto) + req = Symbol[:callId,:status] + val = Dict{Symbol,Any}(:retryCount => -1) + wtype = Dict(:retryCount => :sint32) + allflds = Pair{Symbol,Union{Type,String}}[:callId => UInt32, :status => Int32, :serverIpcVersionNum => UInt32, :exceptionClassName => AbstractString, :errorMsg => AbstractString, :errorDetail => Int32, :clientId => Array{UInt8,1}, :retryCount => Int32, :stateId => Int64] + meta(target, RpcResponseHeaderProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, wtype, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RpcResponseHeaderProto[] + end +end +function Base.getproperty(obj::RpcResponseHeaderProto, name::Symbol) + if name === :callId + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :serverIpcVersionNum + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :exceptionClassName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :errorMsg + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :errorDetail + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :clientId + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :retryCount + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :stateId + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end + +const RpcSaslProto_SaslState = (;[ + Symbol("SUCCESS") => Int32(0), + Symbol("NEGOTIATE") => Int32(1), + Symbol("INITIATE") => Int32(2), + Symbol("CHALLENGE") => Int32(3), + Symbol("RESPONSE") => Int32(4), + Symbol("WRAP") => Int32(5), +]...) mutable struct RpcSaslProto_SaslAuth <: ProtoType - method::AbstractString - mechanism::AbstractString - protocol::AbstractString - serverId::AbstractString - challenge::Array{UInt8,1} - RpcSaslProto_SaslAuth(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RpcSaslProto_SaslAuth -const __req_RpcSaslProto_SaslAuth = Symbol[:method,:mechanism] -meta(t::Type{RpcSaslProto_SaslAuth}) = meta(t, __req_RpcSaslProto_SaslAuth, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RpcSaslProto_SaslAuth(; kwargs...) + obj = new(meta(RpcSaslProto_SaslAuth), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RpcSaslProto_SaslAuth +const __meta_RpcSaslProto_SaslAuth = Ref{ProtoMeta}() +function meta(::Type{RpcSaslProto_SaslAuth}) + ProtoBuf.metalock() do + if !isassigned(__meta_RpcSaslProto_SaslAuth) + __meta_RpcSaslProto_SaslAuth[] = target = ProtoMeta(RpcSaslProto_SaslAuth) + req = Symbol[:method,:mechanism] + allflds = Pair{Symbol,Union{Type,String}}[:method => AbstractString, :mechanism => AbstractString, :protocol => AbstractString, :serverId => AbstractString, :challenge => Array{UInt8,1}] + meta(target, RpcSaslProto_SaslAuth, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RpcSaslProto_SaslAuth[] + end +end +function Base.getproperty(obj::RpcSaslProto_SaslAuth, name::Symbol) + if name === :method + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :mechanism + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :protocol + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :serverId + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :challenge + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct RpcSaslProto <: ProtoType - version::UInt32 - state::Int32 - token::Array{UInt8,1} - auths::Base.Vector{RpcSaslProto_SaslAuth} - RpcSaslProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RpcSaslProto -const __req_RpcSaslProto = Symbol[:state] -meta(t::Type{RpcSaslProto}) = meta(t, __req_RpcSaslProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RpcSaslProto(; kwargs...) + obj = new(meta(RpcSaslProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RpcSaslProto +const __meta_RpcSaslProto = Ref{ProtoMeta}() +function meta(::Type{RpcSaslProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RpcSaslProto) + __meta_RpcSaslProto[] = target = ProtoMeta(RpcSaslProto) + req = Symbol[:state] + allflds = Pair{Symbol,Union{Type,String}}[:version => UInt32, :state => Int32, :token => Array{UInt8,1}, :auths => Base.Vector{RpcSaslProto_SaslAuth}] + meta(target, RpcSaslProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RpcSaslProto[] + end +end +function Base.getproperty(obj::RpcSaslProto, name::Symbol) + if name === :version + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :token + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :auths + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{RpcSaslProto_SaslAuth} + else + getfield(obj, name) + end +end export RpcKindProto, RPCTraceInfoProto, RPCCallerContextProto, RpcRequestHeaderProto_OperationProto, RpcRequestHeaderProto, RpcResponseHeaderProto_RpcStatusProto, RpcResponseHeaderProto_RpcErrorCodeProto, RpcResponseHeaderProto, RpcSaslProto_SaslState, RpcSaslProto_SaslAuth, RpcSaslProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/Security_pb.jl b/src/hadoop/Security_pb.jl index d9b2f37..db2c54c 100644 --- a/src/hadoop/Security_pb.jl +++ b/src/hadoop/Security_pb.jl @@ -1,52 +1,263 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta mutable struct TokenProto <: ProtoType - identifier::Array{UInt8,1} - password::Array{UInt8,1} - kind::AbstractString - service::AbstractString - TokenProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TokenProto -const __req_TokenProto = Symbol[:identifier,:password,:kind,:service] -meta(t::Type{TokenProto}) = meta(t, __req_TokenProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TokenProto(; kwargs...) + obj = new(meta(TokenProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TokenProto +const __meta_TokenProto = Ref{ProtoMeta}() +function meta(::Type{TokenProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TokenProto) + __meta_TokenProto[] = target = ProtoMeta(TokenProto) + req = Symbol[:identifier,:password,:kind,:service] + allflds = Pair{Symbol,Union{Type,String}}[:identifier => Array{UInt8,1}, :password => Array{UInt8,1}, :kind => AbstractString, :service => AbstractString] + meta(target, TokenProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TokenProto[] + end +end +function Base.getproperty(obj::TokenProto, name::Symbol) + if name === :identifier + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :password + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :kind + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :service + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetDelegationTokenRequestProto <: ProtoType - renewer::AbstractString - GetDelegationTokenRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDelegationTokenRequestProto -const __req_GetDelegationTokenRequestProto = Symbol[:renewer] -meta(t::Type{GetDelegationTokenRequestProto}) = meta(t, __req_GetDelegationTokenRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDelegationTokenRequestProto(; kwargs...) + obj = new(meta(GetDelegationTokenRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDelegationTokenRequestProto +const __meta_GetDelegationTokenRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetDelegationTokenRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDelegationTokenRequestProto) + __meta_GetDelegationTokenRequestProto[] = target = ProtoMeta(GetDelegationTokenRequestProto) + req = Symbol[:renewer] + allflds = Pair{Symbol,Union{Type,String}}[:renewer => AbstractString] + meta(target, GetDelegationTokenRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDelegationTokenRequestProto[] + end +end +function Base.getproperty(obj::GetDelegationTokenRequestProto, name::Symbol) + if name === :renewer + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetDelegationTokenResponseProto <: ProtoType - token::TokenProto - GetDelegationTokenResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetDelegationTokenResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetDelegationTokenResponseProto(; kwargs...) + obj = new(meta(GetDelegationTokenResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetDelegationTokenResponseProto +const __meta_GetDelegationTokenResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetDelegationTokenResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetDelegationTokenResponseProto) + __meta_GetDelegationTokenResponseProto[] = target = ProtoMeta(GetDelegationTokenResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:token => TokenProto] + meta(target, GetDelegationTokenResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetDelegationTokenResponseProto[] + end +end +function Base.getproperty(obj::GetDelegationTokenResponseProto, name::Symbol) + if name === :token + return (obj.__protobuf_jl_internal_values[name])::TokenProto + else + getfield(obj, name) + end +end mutable struct RenewDelegationTokenRequestProto <: ProtoType - token::TokenProto - RenewDelegationTokenRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenewDelegationTokenRequestProto -const __req_RenewDelegationTokenRequestProto = Symbol[:token] -meta(t::Type{RenewDelegationTokenRequestProto}) = meta(t, __req_RenewDelegationTokenRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenewDelegationTokenRequestProto(; kwargs...) + obj = new(meta(RenewDelegationTokenRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenewDelegationTokenRequestProto +const __meta_RenewDelegationTokenRequestProto = Ref{ProtoMeta}() +function meta(::Type{RenewDelegationTokenRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenewDelegationTokenRequestProto) + __meta_RenewDelegationTokenRequestProto[] = target = ProtoMeta(RenewDelegationTokenRequestProto) + req = Symbol[:token] + allflds = Pair{Symbol,Union{Type,String}}[:token => TokenProto] + meta(target, RenewDelegationTokenRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenewDelegationTokenRequestProto[] + end +end +function Base.getproperty(obj::RenewDelegationTokenRequestProto, name::Symbol) + if name === :token + return (obj.__protobuf_jl_internal_values[name])::TokenProto + else + getfield(obj, name) + end +end mutable struct RenewDelegationTokenResponseProto <: ProtoType - newExpiryTime::UInt64 - RenewDelegationTokenResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenewDelegationTokenResponseProto -const __req_RenewDelegationTokenResponseProto = Symbol[:newExpiryTime] -meta(t::Type{RenewDelegationTokenResponseProto}) = meta(t, __req_RenewDelegationTokenResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenewDelegationTokenResponseProto(; kwargs...) + obj = new(meta(RenewDelegationTokenResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenewDelegationTokenResponseProto +const __meta_RenewDelegationTokenResponseProto = Ref{ProtoMeta}() +function meta(::Type{RenewDelegationTokenResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenewDelegationTokenResponseProto) + __meta_RenewDelegationTokenResponseProto[] = target = ProtoMeta(RenewDelegationTokenResponseProto) + req = Symbol[:newExpiryTime] + allflds = Pair{Symbol,Union{Type,String}}[:newExpiryTime => UInt64] + meta(target, RenewDelegationTokenResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenewDelegationTokenResponseProto[] + end +end +function Base.getproperty(obj::RenewDelegationTokenResponseProto, name::Symbol) + if name === :newExpiryTime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct CancelDelegationTokenRequestProto <: ProtoType - token::TokenProto - CancelDelegationTokenRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CancelDelegationTokenRequestProto -const __req_CancelDelegationTokenRequestProto = Symbol[:token] -meta(t::Type{CancelDelegationTokenRequestProto}) = meta(t, __req_CancelDelegationTokenRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CancelDelegationTokenRequestProto(; kwargs...) + obj = new(meta(CancelDelegationTokenRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CancelDelegationTokenRequestProto +const __meta_CancelDelegationTokenRequestProto = Ref{ProtoMeta}() +function meta(::Type{CancelDelegationTokenRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CancelDelegationTokenRequestProto) + __meta_CancelDelegationTokenRequestProto[] = target = ProtoMeta(CancelDelegationTokenRequestProto) + req = Symbol[:token] + allflds = Pair{Symbol,Union{Type,String}}[:token => TokenProto] + meta(target, CancelDelegationTokenRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CancelDelegationTokenRequestProto[] + end +end +function Base.getproperty(obj::CancelDelegationTokenRequestProto, name::Symbol) + if name === :token + return (obj.__protobuf_jl_internal_values[name])::TokenProto + else + getfield(obj, name) + end +end mutable struct CancelDelegationTokenResponseProto <: ProtoType - CancelDelegationTokenResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CancelDelegationTokenResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CancelDelegationTokenResponseProto(; kwargs...) + obj = new(meta(CancelDelegationTokenResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CancelDelegationTokenResponseProto +const __meta_CancelDelegationTokenResponseProto = Ref{ProtoMeta}() +function meta(::Type{CancelDelegationTokenResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CancelDelegationTokenResponseProto) + __meta_CancelDelegationTokenResponseProto[] = target = ProtoMeta(CancelDelegationTokenResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, CancelDelegationTokenResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CancelDelegationTokenResponseProto[] + end +end export TokenProto, GetDelegationTokenRequestProto, GetDelegationTokenResponseProto, RenewDelegationTokenRequestProto, RenewDelegationTokenResponseProto, CancelDelegationTokenRequestProto, CancelDelegationTokenResponseProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/acl_pb.jl b/src/hadoop/acl_pb.jl index 389c525..8ff8a8b 100644 --- a/src/hadoop/acl_pb.jl +++ b/src/hadoop/acl_pb.jl @@ -1,127 +1,528 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta -struct __enum_AclEntryProto_AclEntryScopeProto <: ProtoEnum - ACCESS::Int32 - DEFAULT::Int32 - __enum_AclEntryProto_AclEntryScopeProto() = new(0,1) -end #struct __enum_AclEntryProto_AclEntryScopeProto -const AclEntryProto_AclEntryScopeProto = __enum_AclEntryProto_AclEntryScopeProto() - -struct __enum_AclEntryProto_AclEntryTypeProto <: ProtoEnum - USER::Int32 - GROUP::Int32 - MASK::Int32 - OTHER::Int32 - __enum_AclEntryProto_AclEntryTypeProto() = new(0,1,2,3) -end #struct __enum_AclEntryProto_AclEntryTypeProto -const AclEntryProto_AclEntryTypeProto = __enum_AclEntryProto_AclEntryTypeProto() - -struct __enum_AclEntryProto_FsActionProto <: ProtoEnum - NONE::Int32 - EXECUTE::Int32 - WRITE::Int32 - WRITE_EXECUTE::Int32 - READ::Int32 - READ_EXECUTE::Int32 - READ_WRITE::Int32 - PERM_ALL::Int32 - __enum_AclEntryProto_FsActionProto() = new(0,1,2,3,4,5,6,7) -end #struct __enum_AclEntryProto_FsActionProto -const AclEntryProto_FsActionProto = __enum_AclEntryProto_FsActionProto() +const AclEntryProto_AclEntryScopeProto = (;[ + Symbol("ACCESS") => Int32(0), + Symbol("DEFAULT") => Int32(1), +]...) + +const AclEntryProto_AclEntryTypeProto = (;[ + Symbol("USER") => Int32(0), + Symbol("GROUP") => Int32(1), + Symbol("MASK") => Int32(2), + Symbol("OTHER") => Int32(3), +]...) + +const AclEntryProto_FsActionProto = (;[ + Symbol("NONE") => Int32(0), + Symbol("EXECUTE") => Int32(1), + Symbol("WRITE") => Int32(2), + Symbol("WRITE_EXECUTE") => Int32(3), + Symbol("READ") => Int32(4), + Symbol("READ_EXECUTE") => Int32(5), + Symbol("READ_WRITE") => Int32(6), + Symbol("PERM_ALL") => Int32(7), +]...) mutable struct AclEntryProto <: ProtoType - _type::Int32 - scope::Int32 - permissions::Int32 - name::AbstractString - AclEntryProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AclEntryProto -const __req_AclEntryProto = Symbol[:_type,:scope,:permissions] -meta(t::Type{AclEntryProto}) = meta(t, __req_AclEntryProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AclEntryProto(; kwargs...) + obj = new(meta(AclEntryProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AclEntryProto +const __meta_AclEntryProto = Ref{ProtoMeta}() +function meta(::Type{AclEntryProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AclEntryProto) + __meta_AclEntryProto[] = target = ProtoMeta(AclEntryProto) + req = Symbol[:_type,:scope,:permissions] + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32, :scope => Int32, :permissions => Int32, :name => AbstractString] + meta(target, AclEntryProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AclEntryProto[] + end +end +function Base.getproperty(obj::AclEntryProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :scope + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :permissions + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct AclStatusProto <: ProtoType - owner::AbstractString - group::AbstractString - sticky::Bool - entries::Base.Vector{AclEntryProto} - permission::FsPermissionProto - AclStatusProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AclStatusProto -const __req_AclStatusProto = Symbol[:owner,:group,:sticky] -meta(t::Type{AclStatusProto}) = meta(t, __req_AclStatusProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AclStatusProto(; kwargs...) + obj = new(meta(AclStatusProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AclStatusProto +const __meta_AclStatusProto = Ref{ProtoMeta}() +function meta(::Type{AclStatusProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AclStatusProto) + __meta_AclStatusProto[] = target = ProtoMeta(AclStatusProto) + req = Symbol[:owner,:group,:sticky] + allflds = Pair{Symbol,Union{Type,String}}[:owner => AbstractString, :group => AbstractString, :sticky => Bool, :entries => Base.Vector{AclEntryProto}, :permission => FsPermissionProto] + meta(target, AclStatusProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AclStatusProto[] + end +end +function Base.getproperty(obj::AclStatusProto, name::Symbol) + if name === :owner + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :group + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :sticky + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :entries + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AclEntryProto} + elseif name === :permission + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + else + getfield(obj, name) + end +end mutable struct ModifyAclEntriesRequestProto <: ProtoType - src::AbstractString - aclSpec::Base.Vector{AclEntryProto} - ModifyAclEntriesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ModifyAclEntriesRequestProto -const __req_ModifyAclEntriesRequestProto = Symbol[:src] -meta(t::Type{ModifyAclEntriesRequestProto}) = meta(t, __req_ModifyAclEntriesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ModifyAclEntriesRequestProto(; kwargs...) + obj = new(meta(ModifyAclEntriesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ModifyAclEntriesRequestProto +const __meta_ModifyAclEntriesRequestProto = Ref{ProtoMeta}() +function meta(::Type{ModifyAclEntriesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ModifyAclEntriesRequestProto) + __meta_ModifyAclEntriesRequestProto[] = target = ProtoMeta(ModifyAclEntriesRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :aclSpec => Base.Vector{AclEntryProto}] + meta(target, ModifyAclEntriesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ModifyAclEntriesRequestProto[] + end +end +function Base.getproperty(obj::ModifyAclEntriesRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :aclSpec + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AclEntryProto} + else + getfield(obj, name) + end +end mutable struct ModifyAclEntriesResponseProto <: ProtoType - ModifyAclEntriesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ModifyAclEntriesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ModifyAclEntriesResponseProto(; kwargs...) + obj = new(meta(ModifyAclEntriesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ModifyAclEntriesResponseProto +const __meta_ModifyAclEntriesResponseProto = Ref{ProtoMeta}() +function meta(::Type{ModifyAclEntriesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ModifyAclEntriesResponseProto) + __meta_ModifyAclEntriesResponseProto[] = target = ProtoMeta(ModifyAclEntriesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ModifyAclEntriesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ModifyAclEntriesResponseProto[] + end +end mutable struct RemoveAclRequestProto <: ProtoType - src::AbstractString - RemoveAclRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveAclRequestProto -const __req_RemoveAclRequestProto = Symbol[:src] -meta(t::Type{RemoveAclRequestProto}) = meta(t, __req_RemoveAclRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveAclRequestProto(; kwargs...) + obj = new(meta(RemoveAclRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveAclRequestProto +const __meta_RemoveAclRequestProto = Ref{ProtoMeta}() +function meta(::Type{RemoveAclRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveAclRequestProto) + __meta_RemoveAclRequestProto[] = target = ProtoMeta(RemoveAclRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, RemoveAclRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveAclRequestProto[] + end +end +function Base.getproperty(obj::RemoveAclRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RemoveAclResponseProto <: ProtoType - RemoveAclResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveAclResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveAclResponseProto(; kwargs...) + obj = new(meta(RemoveAclResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveAclResponseProto +const __meta_RemoveAclResponseProto = Ref{ProtoMeta}() +function meta(::Type{RemoveAclResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveAclResponseProto) + __meta_RemoveAclResponseProto[] = target = ProtoMeta(RemoveAclResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RemoveAclResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveAclResponseProto[] + end +end mutable struct RemoveAclEntriesRequestProto <: ProtoType - src::AbstractString - aclSpec::Base.Vector{AclEntryProto} - RemoveAclEntriesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveAclEntriesRequestProto -const __req_RemoveAclEntriesRequestProto = Symbol[:src] -meta(t::Type{RemoveAclEntriesRequestProto}) = meta(t, __req_RemoveAclEntriesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveAclEntriesRequestProto(; kwargs...) + obj = new(meta(RemoveAclEntriesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveAclEntriesRequestProto +const __meta_RemoveAclEntriesRequestProto = Ref{ProtoMeta}() +function meta(::Type{RemoveAclEntriesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveAclEntriesRequestProto) + __meta_RemoveAclEntriesRequestProto[] = target = ProtoMeta(RemoveAclEntriesRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :aclSpec => Base.Vector{AclEntryProto}] + meta(target, RemoveAclEntriesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveAclEntriesRequestProto[] + end +end +function Base.getproperty(obj::RemoveAclEntriesRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :aclSpec + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AclEntryProto} + else + getfield(obj, name) + end +end mutable struct RemoveAclEntriesResponseProto <: ProtoType - RemoveAclEntriesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveAclEntriesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveAclEntriesResponseProto(; kwargs...) + obj = new(meta(RemoveAclEntriesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveAclEntriesResponseProto +const __meta_RemoveAclEntriesResponseProto = Ref{ProtoMeta}() +function meta(::Type{RemoveAclEntriesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveAclEntriesResponseProto) + __meta_RemoveAclEntriesResponseProto[] = target = ProtoMeta(RemoveAclEntriesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RemoveAclEntriesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveAclEntriesResponseProto[] + end +end mutable struct RemoveDefaultAclRequestProto <: ProtoType - src::AbstractString - RemoveDefaultAclRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveDefaultAclRequestProto -const __req_RemoveDefaultAclRequestProto = Symbol[:src] -meta(t::Type{RemoveDefaultAclRequestProto}) = meta(t, __req_RemoveDefaultAclRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveDefaultAclRequestProto(; kwargs...) + obj = new(meta(RemoveDefaultAclRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveDefaultAclRequestProto +const __meta_RemoveDefaultAclRequestProto = Ref{ProtoMeta}() +function meta(::Type{RemoveDefaultAclRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveDefaultAclRequestProto) + __meta_RemoveDefaultAclRequestProto[] = target = ProtoMeta(RemoveDefaultAclRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, RemoveDefaultAclRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveDefaultAclRequestProto[] + end +end +function Base.getproperty(obj::RemoveDefaultAclRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RemoveDefaultAclResponseProto <: ProtoType - RemoveDefaultAclResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveDefaultAclResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveDefaultAclResponseProto(; kwargs...) + obj = new(meta(RemoveDefaultAclResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveDefaultAclResponseProto +const __meta_RemoveDefaultAclResponseProto = Ref{ProtoMeta}() +function meta(::Type{RemoveDefaultAclResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveDefaultAclResponseProto) + __meta_RemoveDefaultAclResponseProto[] = target = ProtoMeta(RemoveDefaultAclResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RemoveDefaultAclResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveDefaultAclResponseProto[] + end +end mutable struct SetAclRequestProto <: ProtoType - src::AbstractString - aclSpec::Base.Vector{AclEntryProto} - SetAclRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetAclRequestProto -const __req_SetAclRequestProto = Symbol[:src] -meta(t::Type{SetAclRequestProto}) = meta(t, __req_SetAclRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetAclRequestProto(; kwargs...) + obj = new(meta(SetAclRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetAclRequestProto +const __meta_SetAclRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetAclRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetAclRequestProto) + __meta_SetAclRequestProto[] = target = ProtoMeta(SetAclRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :aclSpec => Base.Vector{AclEntryProto}] + meta(target, SetAclRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetAclRequestProto[] + end +end +function Base.getproperty(obj::SetAclRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :aclSpec + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AclEntryProto} + else + getfield(obj, name) + end +end mutable struct SetAclResponseProto <: ProtoType - SetAclResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetAclResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetAclResponseProto(; kwargs...) + obj = new(meta(SetAclResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetAclResponseProto +const __meta_SetAclResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetAclResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetAclResponseProto) + __meta_SetAclResponseProto[] = target = ProtoMeta(SetAclResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetAclResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetAclResponseProto[] + end +end mutable struct GetAclStatusRequestProto <: ProtoType - src::AbstractString - GetAclStatusRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetAclStatusRequestProto -const __req_GetAclStatusRequestProto = Symbol[:src] -meta(t::Type{GetAclStatusRequestProto}) = meta(t, __req_GetAclStatusRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetAclStatusRequestProto(; kwargs...) + obj = new(meta(GetAclStatusRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetAclStatusRequestProto +const __meta_GetAclStatusRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetAclStatusRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetAclStatusRequestProto) + __meta_GetAclStatusRequestProto[] = target = ProtoMeta(GetAclStatusRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, GetAclStatusRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetAclStatusRequestProto[] + end +end +function Base.getproperty(obj::GetAclStatusRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetAclStatusResponseProto <: ProtoType - result::AclStatusProto - GetAclStatusResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetAclStatusResponseProto -const __req_GetAclStatusResponseProto = Symbol[:result] -meta(t::Type{GetAclStatusResponseProto}) = meta(t, __req_GetAclStatusResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetAclStatusResponseProto(; kwargs...) + obj = new(meta(GetAclStatusResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetAclStatusResponseProto +const __meta_GetAclStatusResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetAclStatusResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetAclStatusResponseProto) + __meta_GetAclStatusResponseProto[] = target = ProtoMeta(GetAclStatusResponseProto) + req = Symbol[:result] + allflds = Pair{Symbol,Union{Type,String}}[:result => AclStatusProto] + meta(target, GetAclStatusResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetAclStatusResponseProto[] + end +end +function Base.getproperty(obj::GetAclStatusResponseProto, name::Symbol) + if name === :result + return (obj.__protobuf_jl_internal_values[name])::AclStatusProto + else + getfield(obj, name) + end +end export AclEntryProto_AclEntryScopeProto, AclEntryProto_AclEntryTypeProto, AclEntryProto_FsActionProto, AclEntryProto, AclStatusProto, ModifyAclEntriesRequestProto, ModifyAclEntriesResponseProto, RemoveAclRequestProto, RemoveAclResponseProto, RemoveAclEntriesRequestProto, RemoveAclEntriesResponseProto, RemoveDefaultAclRequestProto, RemoveDefaultAclResponseProto, SetAclRequestProto, SetAclResponseProto, GetAclStatusRequestProto, GetAclStatusResponseProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/application_history_client_pb.jl b/src/hadoop/application_history_client_pb.jl index 1e93c78..e91eab8 100644 --- a/src/hadoop/application_history_client_pb.jl +++ b/src/hadoop/application_history_client_pb.jl @@ -1,4 +1,5 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop @@ -57,3 +58,4 @@ cancelDelegationToken(stub::ApplicationHistoryProtocolServiceStub, controller::P cancelDelegationToken(stub::ApplicationHistoryProtocolServiceBlockingStub, controller::ProtoRpcController, inp::hadoop.common.CancelDelegationTokenRequestProto) = call_method(stub.impl, _ApplicationHistoryProtocolService_methods[9], controller, inp) export ApplicationHistoryProtocolService, ApplicationHistoryProtocolServiceStub, ApplicationHistoryProtocolServiceBlockingStub, getApplicationReport, getApplications, getApplicationAttemptReport, getApplicationAttempts, getContainerReport, getContainers, getDelegationToken, renewDelegationToken, cancelDelegationToken +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/applicationclient_protocol_pb.jl b/src/hadoop/applicationclient_protocol_pb.jl index 1bce857..3cf0c2d 100644 --- a/src/hadoop/applicationclient_protocol_pb.jl +++ b/src/hadoop/applicationclient_protocol_pb.jl @@ -1,4 +1,5 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop @@ -141,3 +142,4 @@ getResourceTypeInfo(stub::ApplicationClientProtocolServiceStub, controller::Prot getResourceTypeInfo(stub::ApplicationClientProtocolServiceBlockingStub, controller::ProtoRpcController, inp::hadoop.yarn.GetAllResourceTypeInfoRequestProto) = call_method(stub.impl, _ApplicationClientProtocolService_methods[30], controller, inp) export ApplicationClientProtocolService, ApplicationClientProtocolServiceStub, ApplicationClientProtocolServiceBlockingStub, getNewApplication, getApplicationReport, submitApplication, failApplicationAttempt, forceKillApplication, getClusterMetrics, getApplications, getClusterNodes, getQueueInfo, getQueueUserAcls, getDelegationToken, renewDelegationToken, cancelDelegationToken, moveApplicationAcrossQueues, getApplicationAttemptReport, getApplicationAttempts, getContainerReport, getContainers, getNewReservation, submitReservation, updateReservation, deleteReservation, listReservations, getNodeToLabels, getLabelsToNodes, getClusterNodeLabels, updateApplicationPriority, signalToContainer, updateApplicationTimeouts, getResourceTypeInfo +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/applicationmaster_protocol_pb.jl b/src/hadoop/applicationmaster_protocol_pb.jl index e84fdbe..ab59561 100644 --- a/src/hadoop/applicationmaster_protocol_pb.jl +++ b/src/hadoop/applicationmaster_protocol_pb.jl @@ -1,4 +1,5 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta @@ -32,3 +33,4 @@ allocate(stub::ApplicationMasterProtocolServiceStub, controller::ProtoRpcControl allocate(stub::ApplicationMasterProtocolServiceBlockingStub, controller::ProtoRpcController, inp::hadoop.yarn.AllocateRequestProto) = call_method(stub.impl, _ApplicationMasterProtocolService_methods[3], controller, inp) export ApplicationMasterProtocolService, ApplicationMasterProtocolServiceStub, ApplicationMasterProtocolServiceBlockingStub, registerApplicationMaster, finishApplicationMaster, allocate +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/containermanagement_protocol_pb.jl b/src/hadoop/containermanagement_protocol_pb.jl index 7c0c43f..f2f6018 100644 --- a/src/hadoop/containermanagement_protocol_pb.jl +++ b/src/hadoop/containermanagement_protocol_pb.jl @@ -1,4 +1,5 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta @@ -64,3 +65,4 @@ commitLastReInitialization(stub::ContainerManagementProtocolServiceStub, control commitLastReInitialization(stub::ContainerManagementProtocolServiceBlockingStub, controller::ProtoRpcController, inp::hadoop.yarn.ContainerIdProto) = call_method(stub.impl, _ContainerManagementProtocolService_methods[11], controller, inp) export ContainerManagementProtocolService, ContainerManagementProtocolServiceStub, ContainerManagementProtocolServiceBlockingStub, startContainers, stopContainers, getContainerStatuses, increaseContainersResource, updateContainer, signalToContainer, localize, reInitializeContainer, restartContainer, rollbackLastReInitialization, commitLastReInitialization +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/datatransfer_pb.jl b/src/hadoop/datatransfer_pb.jl index fcf6b29..743d386 100644 --- a/src/hadoop/datatransfer_pb.jl +++ b/src/hadoop/datatransfer_pb.jl @@ -1,316 +1,1211 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop -struct __enum_Status <: ProtoEnum - SUCCESS::Int32 - ERROR::Int32 - ERROR_CHECKSUM::Int32 - ERROR_INVALID::Int32 - ERROR_EXISTS::Int32 - ERROR_ACCESS_TOKEN::Int32 - CHECKSUM_OK::Int32 - ERROR_UNSUPPORTED::Int32 - OOB_RESTART::Int32 - OOB_RESERVED1::Int32 - OOB_RESERVED2::Int32 - OOB_RESERVED3::Int32 - IN_PROGRESS::Int32 - __enum_Status() = new(0,1,2,3,4,5,6,7,8,9,10,11,12) -end #struct __enum_Status -const Status = __enum_Status() - -struct __enum_ShortCircuitFdResponse <: ProtoEnum - DO_NOT_USE_RECEIPT_VERIFICATION::Int32 - USE_RECEIPT_VERIFICATION::Int32 - __enum_ShortCircuitFdResponse() = new(0,1) -end #struct __enum_ShortCircuitFdResponse -const ShortCircuitFdResponse = __enum_ShortCircuitFdResponse() +const Status = (;[ + Symbol("SUCCESS") => Int32(0), + Symbol("ERROR") => Int32(1), + Symbol("ERROR_CHECKSUM") => Int32(2), + Symbol("ERROR_INVALID") => Int32(3), + Symbol("ERROR_EXISTS") => Int32(4), + Symbol("ERROR_ACCESS_TOKEN") => Int32(5), + Symbol("CHECKSUM_OK") => Int32(6), + Symbol("ERROR_UNSUPPORTED") => Int32(7), + Symbol("OOB_RESTART") => Int32(8), + Symbol("OOB_RESERVED1") => Int32(9), + Symbol("OOB_RESERVED2") => Int32(10), + Symbol("OOB_RESERVED3") => Int32(11), + Symbol("IN_PROGRESS") => Int32(12), +]...) + +const ShortCircuitFdResponse = (;[ + Symbol("DO_NOT_USE_RECEIPT_VERIFICATION") => Int32(0), + Symbol("USE_RECEIPT_VERIFICATION") => Int32(1), +]...) mutable struct HandshakeSecretProto <: ProtoType - secret::Array{UInt8,1} - bpid::AbstractString - HandshakeSecretProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct HandshakeSecretProto -const __req_HandshakeSecretProto = Symbol[:secret,:bpid] -meta(t::Type{HandshakeSecretProto}) = meta(t, __req_HandshakeSecretProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_DataTransferEncryptorMessageProto_DataTransferEncryptorStatus <: ProtoEnum - SUCCESS::Int32 - ERROR_UNKNOWN_KEY::Int32 - ERROR::Int32 - __enum_DataTransferEncryptorMessageProto_DataTransferEncryptorStatus() = new(0,1,2) -end #struct __enum_DataTransferEncryptorMessageProto_DataTransferEncryptorStatus -const DataTransferEncryptorMessageProto_DataTransferEncryptorStatus = __enum_DataTransferEncryptorMessageProto_DataTransferEncryptorStatus() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function HandshakeSecretProto(; kwargs...) + obj = new(meta(HandshakeSecretProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct HandshakeSecretProto +const __meta_HandshakeSecretProto = Ref{ProtoMeta}() +function meta(::Type{HandshakeSecretProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_HandshakeSecretProto) + __meta_HandshakeSecretProto[] = target = ProtoMeta(HandshakeSecretProto) + req = Symbol[:secret,:bpid] + allflds = Pair{Symbol,Union{Type,String}}[:secret => Array{UInt8,1}, :bpid => AbstractString] + meta(target, HandshakeSecretProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_HandshakeSecretProto[] + end +end +function Base.getproperty(obj::HandshakeSecretProto, name::Symbol) + if name === :secret + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :bpid + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end + +const DataTransferEncryptorMessageProto_DataTransferEncryptorStatus = (;[ + Symbol("SUCCESS") => Int32(0), + Symbol("ERROR_UNKNOWN_KEY") => Int32(1), + Symbol("ERROR") => Int32(2), +]...) mutable struct DataTransferEncryptorMessageProto <: ProtoType - status::Int32 - payload::Array{UInt8,1} - message::AbstractString - cipherOption::Base.Vector{CipherOptionProto} - handshakeSecret::HandshakeSecretProto - DataTransferEncryptorMessageProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DataTransferEncryptorMessageProto -const __req_DataTransferEncryptorMessageProto = Symbol[:status] -meta(t::Type{DataTransferEncryptorMessageProto}) = meta(t, __req_DataTransferEncryptorMessageProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DataTransferEncryptorMessageProto(; kwargs...) + obj = new(meta(DataTransferEncryptorMessageProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DataTransferEncryptorMessageProto +const __meta_DataTransferEncryptorMessageProto = Ref{ProtoMeta}() +function meta(::Type{DataTransferEncryptorMessageProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DataTransferEncryptorMessageProto) + __meta_DataTransferEncryptorMessageProto[] = target = ProtoMeta(DataTransferEncryptorMessageProto) + req = Symbol[:status] + allflds = Pair{Symbol,Union{Type,String}}[:status => Int32, :payload => Array{UInt8,1}, :message => AbstractString, :cipherOption => Base.Vector{CipherOptionProto}, :handshakeSecret => HandshakeSecretProto] + meta(target, DataTransferEncryptorMessageProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DataTransferEncryptorMessageProto[] + end +end +function Base.getproperty(obj::DataTransferEncryptorMessageProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :payload + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :message + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :cipherOption + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{CipherOptionProto} + elseif name === :handshakeSecret + return (obj.__protobuf_jl_internal_values[name])::HandshakeSecretProto + else + getfield(obj, name) + end +end mutable struct DataTransferTraceInfoProto <: ProtoType - traceId::UInt64 - parentId::UInt64 - DataTransferTraceInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DataTransferTraceInfoProto -const __req_DataTransferTraceInfoProto = Symbol[:traceId,:parentId] -meta(t::Type{DataTransferTraceInfoProto}) = meta(t, __req_DataTransferTraceInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DataTransferTraceInfoProto(; kwargs...) + obj = new(meta(DataTransferTraceInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DataTransferTraceInfoProto +const __meta_DataTransferTraceInfoProto = Ref{ProtoMeta}() +function meta(::Type{DataTransferTraceInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DataTransferTraceInfoProto) + __meta_DataTransferTraceInfoProto[] = target = ProtoMeta(DataTransferTraceInfoProto) + req = Symbol[:traceId,:parentId] + allflds = Pair{Symbol,Union{Type,String}}[:traceId => UInt64, :parentId => UInt64] + meta(target, DataTransferTraceInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DataTransferTraceInfoProto[] + end +end +function Base.getproperty(obj::DataTransferTraceInfoProto, name::Symbol) + if name === :traceId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :parentId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct BaseHeaderProto <: ProtoType - block::ExtendedBlockProto - token::hadoop.common.TokenProto - traceInfo::DataTransferTraceInfoProto - BaseHeaderProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct BaseHeaderProto -const __req_BaseHeaderProto = Symbol[:block] -meta(t::Type{BaseHeaderProto}) = meta(t, __req_BaseHeaderProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function BaseHeaderProto(; kwargs...) + obj = new(meta(BaseHeaderProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct BaseHeaderProto +const __meta_BaseHeaderProto = Ref{ProtoMeta}() +function meta(::Type{BaseHeaderProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_BaseHeaderProto) + __meta_BaseHeaderProto[] = target = ProtoMeta(BaseHeaderProto) + req = Symbol[:block] + allflds = Pair{Symbol,Union{Type,String}}[:block => ExtendedBlockProto, :token => hadoop.common.TokenProto, :traceInfo => DataTransferTraceInfoProto] + meta(target, BaseHeaderProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_BaseHeaderProto[] + end +end +function Base.getproperty(obj::BaseHeaderProto, name::Symbol) + if name === :block + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + elseif name === :traceInfo + return (obj.__protobuf_jl_internal_values[name])::DataTransferTraceInfoProto + else + getfield(obj, name) + end +end mutable struct ClientOperationHeaderProto <: ProtoType - baseHeader::BaseHeaderProto - clientName::AbstractString - ClientOperationHeaderProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ClientOperationHeaderProto -const __req_ClientOperationHeaderProto = Symbol[:baseHeader,:clientName] -meta(t::Type{ClientOperationHeaderProto}) = meta(t, __req_ClientOperationHeaderProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ClientOperationHeaderProto(; kwargs...) + obj = new(meta(ClientOperationHeaderProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ClientOperationHeaderProto +const __meta_ClientOperationHeaderProto = Ref{ProtoMeta}() +function meta(::Type{ClientOperationHeaderProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ClientOperationHeaderProto) + __meta_ClientOperationHeaderProto[] = target = ProtoMeta(ClientOperationHeaderProto) + req = Symbol[:baseHeader,:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:baseHeader => BaseHeaderProto, :clientName => AbstractString] + meta(target, ClientOperationHeaderProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ClientOperationHeaderProto[] + end +end +function Base.getproperty(obj::ClientOperationHeaderProto, name::Symbol) + if name === :baseHeader + return (obj.__protobuf_jl_internal_values[name])::BaseHeaderProto + elseif name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct CachingStrategyProto <: ProtoType - dropBehind::Bool - readahead::Int64 - CachingStrategyProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CachingStrategyProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CachingStrategyProto(; kwargs...) + obj = new(meta(CachingStrategyProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CachingStrategyProto +const __meta_CachingStrategyProto = Ref{ProtoMeta}() +function meta(::Type{CachingStrategyProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CachingStrategyProto) + __meta_CachingStrategyProto[] = target = ProtoMeta(CachingStrategyProto) + allflds = Pair{Symbol,Union{Type,String}}[:dropBehind => Bool, :readahead => Int64] + meta(target, CachingStrategyProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CachingStrategyProto[] + end +end +function Base.getproperty(obj::CachingStrategyProto, name::Symbol) + if name === :dropBehind + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :readahead + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct OpReadBlockProto <: ProtoType - header::ClientOperationHeaderProto - offset::UInt64 - len::UInt64 - sendChecksums::Bool - cachingStrategy::CachingStrategyProto - OpReadBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpReadBlockProto -const __req_OpReadBlockProto = Symbol[:header,:offset,:len] -const __val_OpReadBlockProto = Dict(:sendChecksums => true) -meta(t::Type{OpReadBlockProto}) = meta(t, __req_OpReadBlockProto, ProtoBuf.DEF_FNUM, __val_OpReadBlockProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpReadBlockProto(; kwargs...) + obj = new(meta(OpReadBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpReadBlockProto +const __meta_OpReadBlockProto = Ref{ProtoMeta}() +function meta(::Type{OpReadBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpReadBlockProto) + __meta_OpReadBlockProto[] = target = ProtoMeta(OpReadBlockProto) + req = Symbol[:header,:offset,:len] + val = Dict{Symbol,Any}(:sendChecksums => true) + allflds = Pair{Symbol,Union{Type,String}}[:header => ClientOperationHeaderProto, :offset => UInt64, :len => UInt64, :sendChecksums => Bool, :cachingStrategy => CachingStrategyProto] + meta(target, OpReadBlockProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpReadBlockProto[] + end +end +function Base.getproperty(obj::OpReadBlockProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::ClientOperationHeaderProto + elseif name === :offset + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :len + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :sendChecksums + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :cachingStrategy + return (obj.__protobuf_jl_internal_values[name])::CachingStrategyProto + else + getfield(obj, name) + end +end mutable struct ChecksumProto <: ProtoType - _type::Int32 - bytesPerChecksum::UInt32 - ChecksumProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ChecksumProto -const __req_ChecksumProto = Symbol[:_type,:bytesPerChecksum] -meta(t::Type{ChecksumProto}) = meta(t, __req_ChecksumProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_OpWriteBlockProto_BlockConstructionStage <: ProtoEnum - PIPELINE_SETUP_APPEND::Int32 - PIPELINE_SETUP_APPEND_RECOVERY::Int32 - DATA_STREAMING::Int32 - PIPELINE_SETUP_STREAMING_RECOVERY::Int32 - PIPELINE_CLOSE::Int32 - PIPELINE_CLOSE_RECOVERY::Int32 - PIPELINE_SETUP_CREATE::Int32 - TRANSFER_RBW::Int32 - TRANSFER_FINALIZED::Int32 - __enum_OpWriteBlockProto_BlockConstructionStage() = new(0,1,2,3,4,5,6,7,8) -end #struct __enum_OpWriteBlockProto_BlockConstructionStage -const OpWriteBlockProto_BlockConstructionStage = __enum_OpWriteBlockProto_BlockConstructionStage() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ChecksumProto(; kwargs...) + obj = new(meta(ChecksumProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ChecksumProto +const __meta_ChecksumProto = Ref{ProtoMeta}() +function meta(::Type{ChecksumProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ChecksumProto) + __meta_ChecksumProto[] = target = ProtoMeta(ChecksumProto) + req = Symbol[:_type,:bytesPerChecksum] + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32, :bytesPerChecksum => UInt32] + meta(target, ChecksumProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ChecksumProto[] + end +end +function Base.getproperty(obj::ChecksumProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :bytesPerChecksum + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end + +const OpWriteBlockProto_BlockConstructionStage = (;[ + Symbol("PIPELINE_SETUP_APPEND") => Int32(0), + Symbol("PIPELINE_SETUP_APPEND_RECOVERY") => Int32(1), + Symbol("DATA_STREAMING") => Int32(2), + Symbol("PIPELINE_SETUP_STREAMING_RECOVERY") => Int32(3), + Symbol("PIPELINE_CLOSE") => Int32(4), + Symbol("PIPELINE_CLOSE_RECOVERY") => Int32(5), + Symbol("PIPELINE_SETUP_CREATE") => Int32(6), + Symbol("TRANSFER_RBW") => Int32(7), + Symbol("TRANSFER_FINALIZED") => Int32(8), +]...) mutable struct OpWriteBlockProto <: ProtoType - header::ClientOperationHeaderProto - targets::Base.Vector{DatanodeInfoProto} - source::DatanodeInfoProto - stage::Int32 - pipelineSize::UInt32 - minBytesRcvd::UInt64 - maxBytesRcvd::UInt64 - latestGenerationStamp::UInt64 - requestedChecksum::ChecksumProto - cachingStrategy::CachingStrategyProto - storageType::Int32 - targetStorageTypes::Base.Vector{Int32} - allowLazyPersist::Bool - pinning::Bool - targetPinnings::Base.Vector{Bool} - OpWriteBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpWriteBlockProto -const __req_OpWriteBlockProto = Symbol[:header,:stage,:pipelineSize,:minBytesRcvd,:maxBytesRcvd,:latestGenerationStamp,:requestedChecksum] -const __val_OpWriteBlockProto = Dict(:storageType => StorageTypeProto.DISK, :allowLazyPersist => false, :pinning => false) -meta(t::Type{OpWriteBlockProto}) = meta(t, __req_OpWriteBlockProto, ProtoBuf.DEF_FNUM, __val_OpWriteBlockProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpWriteBlockProto(; kwargs...) + obj = new(meta(OpWriteBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpWriteBlockProto +const __meta_OpWriteBlockProto = Ref{ProtoMeta}() +function meta(::Type{OpWriteBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpWriteBlockProto) + __meta_OpWriteBlockProto[] = target = ProtoMeta(OpWriteBlockProto) + req = Symbol[:header,:stage,:pipelineSize,:minBytesRcvd,:maxBytesRcvd,:latestGenerationStamp,:requestedChecksum] + val = Dict{Symbol,Any}(:storageType => StorageTypeProto.DISK, :allowLazyPersist => false, :pinning => false) + allflds = Pair{Symbol,Union{Type,String}}[:header => ClientOperationHeaderProto, :targets => Base.Vector{DatanodeInfoProto}, :source => DatanodeInfoProto, :stage => Int32, :pipelineSize => UInt32, :minBytesRcvd => UInt64, :maxBytesRcvd => UInt64, :latestGenerationStamp => UInt64, :requestedChecksum => ChecksumProto, :cachingStrategy => CachingStrategyProto, :storageType => Int32, :targetStorageTypes => Base.Vector{Int32}, :allowLazyPersist => Bool, :pinning => Bool, :targetPinnings => Base.Vector{Bool}] + meta(target, OpWriteBlockProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpWriteBlockProto[] + end +end +function Base.getproperty(obj::OpWriteBlockProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::ClientOperationHeaderProto + elseif name === :targets + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + elseif name === :source + return (obj.__protobuf_jl_internal_values[name])::DatanodeInfoProto + elseif name === :stage + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :pipelineSize + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :minBytesRcvd + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :maxBytesRcvd + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :latestGenerationStamp + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :requestedChecksum + return (obj.__protobuf_jl_internal_values[name])::ChecksumProto + elseif name === :cachingStrategy + return (obj.__protobuf_jl_internal_values[name])::CachingStrategyProto + elseif name === :storageType + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :targetStorageTypes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + elseif name === :allowLazyPersist + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :pinning + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :targetPinnings + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Bool} + else + getfield(obj, name) + end +end mutable struct OpTransferBlockProto <: ProtoType - header::ClientOperationHeaderProto - targets::Base.Vector{DatanodeInfoProto} - targetStorageTypes::Base.Vector{Int32} - OpTransferBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpTransferBlockProto -const __req_OpTransferBlockProto = Symbol[:header] -meta(t::Type{OpTransferBlockProto}) = meta(t, __req_OpTransferBlockProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpTransferBlockProto(; kwargs...) + obj = new(meta(OpTransferBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpTransferBlockProto +const __meta_OpTransferBlockProto = Ref{ProtoMeta}() +function meta(::Type{OpTransferBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpTransferBlockProto) + __meta_OpTransferBlockProto[] = target = ProtoMeta(OpTransferBlockProto) + req = Symbol[:header] + allflds = Pair{Symbol,Union{Type,String}}[:header => ClientOperationHeaderProto, :targets => Base.Vector{DatanodeInfoProto}, :targetStorageTypes => Base.Vector{Int32}] + meta(target, OpTransferBlockProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpTransferBlockProto[] + end +end +function Base.getproperty(obj::OpTransferBlockProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::ClientOperationHeaderProto + elseif name === :targets + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + elseif name === :targetStorageTypes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct OpReplaceBlockProto <: ProtoType - header::BaseHeaderProto - delHint::AbstractString - source::DatanodeInfoProto - storageType::Int32 - OpReplaceBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpReplaceBlockProto -const __req_OpReplaceBlockProto = Symbol[:header,:delHint,:source] -const __val_OpReplaceBlockProto = Dict(:storageType => StorageTypeProto.DISK) -meta(t::Type{OpReplaceBlockProto}) = meta(t, __req_OpReplaceBlockProto, ProtoBuf.DEF_FNUM, __val_OpReplaceBlockProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpReplaceBlockProto(; kwargs...) + obj = new(meta(OpReplaceBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpReplaceBlockProto +const __meta_OpReplaceBlockProto = Ref{ProtoMeta}() +function meta(::Type{OpReplaceBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpReplaceBlockProto) + __meta_OpReplaceBlockProto[] = target = ProtoMeta(OpReplaceBlockProto) + req = Symbol[:header,:delHint,:source] + val = Dict{Symbol,Any}(:storageType => StorageTypeProto.DISK) + allflds = Pair{Symbol,Union{Type,String}}[:header => BaseHeaderProto, :delHint => AbstractString, :source => DatanodeInfoProto, :storageType => Int32] + meta(target, OpReplaceBlockProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpReplaceBlockProto[] + end +end +function Base.getproperty(obj::OpReplaceBlockProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::BaseHeaderProto + elseif name === :delHint + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :source + return (obj.__protobuf_jl_internal_values[name])::DatanodeInfoProto + elseif name === :storageType + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct OpCopyBlockProto <: ProtoType - header::BaseHeaderProto - OpCopyBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpCopyBlockProto -const __req_OpCopyBlockProto = Symbol[:header] -meta(t::Type{OpCopyBlockProto}) = meta(t, __req_OpCopyBlockProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpCopyBlockProto(; kwargs...) + obj = new(meta(OpCopyBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpCopyBlockProto +const __meta_OpCopyBlockProto = Ref{ProtoMeta}() +function meta(::Type{OpCopyBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpCopyBlockProto) + __meta_OpCopyBlockProto[] = target = ProtoMeta(OpCopyBlockProto) + req = Symbol[:header] + allflds = Pair{Symbol,Union{Type,String}}[:header => BaseHeaderProto] + meta(target, OpCopyBlockProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpCopyBlockProto[] + end +end +function Base.getproperty(obj::OpCopyBlockProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::BaseHeaderProto + else + getfield(obj, name) + end +end mutable struct OpBlockChecksumProto <: ProtoType - header::BaseHeaderProto - OpBlockChecksumProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpBlockChecksumProto -const __req_OpBlockChecksumProto = Symbol[:header] -meta(t::Type{OpBlockChecksumProto}) = meta(t, __req_OpBlockChecksumProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpBlockChecksumProto(; kwargs...) + obj = new(meta(OpBlockChecksumProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpBlockChecksumProto +const __meta_OpBlockChecksumProto = Ref{ProtoMeta}() +function meta(::Type{OpBlockChecksumProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpBlockChecksumProto) + __meta_OpBlockChecksumProto[] = target = ProtoMeta(OpBlockChecksumProto) + req = Symbol[:header] + allflds = Pair{Symbol,Union{Type,String}}[:header => BaseHeaderProto] + meta(target, OpBlockChecksumProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpBlockChecksumProto[] + end +end +function Base.getproperty(obj::OpBlockChecksumProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::BaseHeaderProto + else + getfield(obj, name) + end +end mutable struct ShortCircuitShmIdProto <: ProtoType - hi::Int64 - lo::Int64 - ShortCircuitShmIdProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ShortCircuitShmIdProto -const __req_ShortCircuitShmIdProto = Symbol[:hi,:lo] -meta(t::Type{ShortCircuitShmIdProto}) = meta(t, __req_ShortCircuitShmIdProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ShortCircuitShmIdProto(; kwargs...) + obj = new(meta(ShortCircuitShmIdProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ShortCircuitShmIdProto +const __meta_ShortCircuitShmIdProto = Ref{ProtoMeta}() +function meta(::Type{ShortCircuitShmIdProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ShortCircuitShmIdProto) + __meta_ShortCircuitShmIdProto[] = target = ProtoMeta(ShortCircuitShmIdProto) + req = Symbol[:hi,:lo] + allflds = Pair{Symbol,Union{Type,String}}[:hi => Int64, :lo => Int64] + meta(target, ShortCircuitShmIdProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ShortCircuitShmIdProto[] + end +end +function Base.getproperty(obj::ShortCircuitShmIdProto, name::Symbol) + if name === :hi + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :lo + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ShortCircuitShmSlotProto <: ProtoType - shmId::ShortCircuitShmIdProto - slotIdx::Int32 - ShortCircuitShmSlotProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ShortCircuitShmSlotProto -const __req_ShortCircuitShmSlotProto = Symbol[:shmId,:slotIdx] -meta(t::Type{ShortCircuitShmSlotProto}) = meta(t, __req_ShortCircuitShmSlotProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ShortCircuitShmSlotProto(; kwargs...) + obj = new(meta(ShortCircuitShmSlotProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ShortCircuitShmSlotProto +const __meta_ShortCircuitShmSlotProto = Ref{ProtoMeta}() +function meta(::Type{ShortCircuitShmSlotProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ShortCircuitShmSlotProto) + __meta_ShortCircuitShmSlotProto[] = target = ProtoMeta(ShortCircuitShmSlotProto) + req = Symbol[:shmId,:slotIdx] + allflds = Pair{Symbol,Union{Type,String}}[:shmId => ShortCircuitShmIdProto, :slotIdx => Int32] + meta(target, ShortCircuitShmSlotProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ShortCircuitShmSlotProto[] + end +end +function Base.getproperty(obj::ShortCircuitShmSlotProto, name::Symbol) + if name === :shmId + return (obj.__protobuf_jl_internal_values[name])::ShortCircuitShmIdProto + elseif name === :slotIdx + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct OpRequestShortCircuitAccessProto <: ProtoType - header::BaseHeaderProto - maxVersion::UInt32 - slotId::ShortCircuitShmSlotProto - supportsReceiptVerification::Bool - OpRequestShortCircuitAccessProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpRequestShortCircuitAccessProto -const __req_OpRequestShortCircuitAccessProto = Symbol[:header,:maxVersion] -const __val_OpRequestShortCircuitAccessProto = Dict(:supportsReceiptVerification => false) -meta(t::Type{OpRequestShortCircuitAccessProto}) = meta(t, __req_OpRequestShortCircuitAccessProto, ProtoBuf.DEF_FNUM, __val_OpRequestShortCircuitAccessProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpRequestShortCircuitAccessProto(; kwargs...) + obj = new(meta(OpRequestShortCircuitAccessProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpRequestShortCircuitAccessProto +const __meta_OpRequestShortCircuitAccessProto = Ref{ProtoMeta}() +function meta(::Type{OpRequestShortCircuitAccessProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpRequestShortCircuitAccessProto) + __meta_OpRequestShortCircuitAccessProto[] = target = ProtoMeta(OpRequestShortCircuitAccessProto) + req = Symbol[:header,:maxVersion] + val = Dict{Symbol,Any}(:supportsReceiptVerification => false) + allflds = Pair{Symbol,Union{Type,String}}[:header => BaseHeaderProto, :maxVersion => UInt32, :slotId => ShortCircuitShmSlotProto, :supportsReceiptVerification => Bool] + meta(target, OpRequestShortCircuitAccessProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpRequestShortCircuitAccessProto[] + end +end +function Base.getproperty(obj::OpRequestShortCircuitAccessProto, name::Symbol) + if name === :header + return (obj.__protobuf_jl_internal_values[name])::BaseHeaderProto + elseif name === :maxVersion + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :slotId + return (obj.__protobuf_jl_internal_values[name])::ShortCircuitShmSlotProto + elseif name === :supportsReceiptVerification + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct ReleaseShortCircuitAccessRequestProto <: ProtoType - slotId::ShortCircuitShmSlotProto - traceInfo::DataTransferTraceInfoProto - ReleaseShortCircuitAccessRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReleaseShortCircuitAccessRequestProto -const __req_ReleaseShortCircuitAccessRequestProto = Symbol[:slotId] -meta(t::Type{ReleaseShortCircuitAccessRequestProto}) = meta(t, __req_ReleaseShortCircuitAccessRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReleaseShortCircuitAccessRequestProto(; kwargs...) + obj = new(meta(ReleaseShortCircuitAccessRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReleaseShortCircuitAccessRequestProto +const __meta_ReleaseShortCircuitAccessRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReleaseShortCircuitAccessRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReleaseShortCircuitAccessRequestProto) + __meta_ReleaseShortCircuitAccessRequestProto[] = target = ProtoMeta(ReleaseShortCircuitAccessRequestProto) + req = Symbol[:slotId] + allflds = Pair{Symbol,Union{Type,String}}[:slotId => ShortCircuitShmSlotProto, :traceInfo => DataTransferTraceInfoProto] + meta(target, ReleaseShortCircuitAccessRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReleaseShortCircuitAccessRequestProto[] + end +end +function Base.getproperty(obj::ReleaseShortCircuitAccessRequestProto, name::Symbol) + if name === :slotId + return (obj.__protobuf_jl_internal_values[name])::ShortCircuitShmSlotProto + elseif name === :traceInfo + return (obj.__protobuf_jl_internal_values[name])::DataTransferTraceInfoProto + else + getfield(obj, name) + end +end mutable struct ReleaseShortCircuitAccessResponseProto <: ProtoType - status::Int32 - error::AbstractString - ReleaseShortCircuitAccessResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReleaseShortCircuitAccessResponseProto -const __req_ReleaseShortCircuitAccessResponseProto = Symbol[:status] -meta(t::Type{ReleaseShortCircuitAccessResponseProto}) = meta(t, __req_ReleaseShortCircuitAccessResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReleaseShortCircuitAccessResponseProto(; kwargs...) + obj = new(meta(ReleaseShortCircuitAccessResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReleaseShortCircuitAccessResponseProto +const __meta_ReleaseShortCircuitAccessResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReleaseShortCircuitAccessResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReleaseShortCircuitAccessResponseProto) + __meta_ReleaseShortCircuitAccessResponseProto[] = target = ProtoMeta(ReleaseShortCircuitAccessResponseProto) + req = Symbol[:status] + allflds = Pair{Symbol,Union{Type,String}}[:status => Int32, :error => AbstractString] + meta(target, ReleaseShortCircuitAccessResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReleaseShortCircuitAccessResponseProto[] + end +end +function Base.getproperty(obj::ReleaseShortCircuitAccessResponseProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :error + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ShortCircuitShmRequestProto <: ProtoType - clientName::AbstractString - traceInfo::DataTransferTraceInfoProto - ShortCircuitShmRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ShortCircuitShmRequestProto -const __req_ShortCircuitShmRequestProto = Symbol[:clientName] -meta(t::Type{ShortCircuitShmRequestProto}) = meta(t, __req_ShortCircuitShmRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ShortCircuitShmRequestProto(; kwargs...) + obj = new(meta(ShortCircuitShmRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ShortCircuitShmRequestProto +const __meta_ShortCircuitShmRequestProto = Ref{ProtoMeta}() +function meta(::Type{ShortCircuitShmRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ShortCircuitShmRequestProto) + __meta_ShortCircuitShmRequestProto[] = target = ProtoMeta(ShortCircuitShmRequestProto) + req = Symbol[:clientName] + allflds = Pair{Symbol,Union{Type,String}}[:clientName => AbstractString, :traceInfo => DataTransferTraceInfoProto] + meta(target, ShortCircuitShmRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ShortCircuitShmRequestProto[] + end +end +function Base.getproperty(obj::ShortCircuitShmRequestProto, name::Symbol) + if name === :clientName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :traceInfo + return (obj.__protobuf_jl_internal_values[name])::DataTransferTraceInfoProto + else + getfield(obj, name) + end +end mutable struct ShortCircuitShmResponseProto <: ProtoType - status::Int32 - error::AbstractString - id::ShortCircuitShmIdProto - ShortCircuitShmResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ShortCircuitShmResponseProto -const __req_ShortCircuitShmResponseProto = Symbol[:status] -meta(t::Type{ShortCircuitShmResponseProto}) = meta(t, __req_ShortCircuitShmResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ShortCircuitShmResponseProto(; kwargs...) + obj = new(meta(ShortCircuitShmResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ShortCircuitShmResponseProto +const __meta_ShortCircuitShmResponseProto = Ref{ProtoMeta}() +function meta(::Type{ShortCircuitShmResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ShortCircuitShmResponseProto) + __meta_ShortCircuitShmResponseProto[] = target = ProtoMeta(ShortCircuitShmResponseProto) + req = Symbol[:status] + allflds = Pair{Symbol,Union{Type,String}}[:status => Int32, :error => AbstractString, :id => ShortCircuitShmIdProto] + meta(target, ShortCircuitShmResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ShortCircuitShmResponseProto[] + end +end +function Base.getproperty(obj::ShortCircuitShmResponseProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :error + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :id + return (obj.__protobuf_jl_internal_values[name])::ShortCircuitShmIdProto + else + getfield(obj, name) + end +end mutable struct PacketHeaderProto <: ProtoType - offsetInBlock::Int64 - seqno::Int64 - lastPacketInBlock::Bool - dataLen::Int32 - syncBlock::Bool - PacketHeaderProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PacketHeaderProto -const __req_PacketHeaderProto = Symbol[:offsetInBlock,:seqno,:lastPacketInBlock,:dataLen] -const __val_PacketHeaderProto = Dict(:syncBlock => false) -const __wtype_PacketHeaderProto = Dict(:offsetInBlock => :sfixed64, :seqno => :sfixed64, :dataLen => :sfixed32) -meta(t::Type{PacketHeaderProto}) = meta(t, __req_PacketHeaderProto, ProtoBuf.DEF_FNUM, __val_PacketHeaderProto, true, ProtoBuf.DEF_PACK, __wtype_PacketHeaderProto, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PacketHeaderProto(; kwargs...) + obj = new(meta(PacketHeaderProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PacketHeaderProto +const __meta_PacketHeaderProto = Ref{ProtoMeta}() +function meta(::Type{PacketHeaderProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PacketHeaderProto) + __meta_PacketHeaderProto[] = target = ProtoMeta(PacketHeaderProto) + req = Symbol[:offsetInBlock,:seqno,:lastPacketInBlock,:dataLen] + val = Dict{Symbol,Any}(:syncBlock => false) + wtype = Dict(:offsetInBlock => :sfixed64, :seqno => :sfixed64, :dataLen => :sfixed32) + allflds = Pair{Symbol,Union{Type,String}}[:offsetInBlock => Int64, :seqno => Int64, :lastPacketInBlock => Bool, :dataLen => Int32, :syncBlock => Bool] + meta(target, PacketHeaderProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, wtype, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PacketHeaderProto[] + end +end +function Base.getproperty(obj::PacketHeaderProto, name::Symbol) + if name === :offsetInBlock + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :seqno + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :lastPacketInBlock + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :dataLen + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :syncBlock + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct PipelineAckProto <: ProtoType - seqno::Int64 - reply::Base.Vector{Int32} - downstreamAckTimeNanos::UInt64 - flag::Base.Vector{UInt32} - PipelineAckProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PipelineAckProto -const __req_PipelineAckProto = Symbol[:seqno] -const __val_PipelineAckProto = Dict(:downstreamAckTimeNanos => 0) -const __pack_PipelineAckProto = Symbol[:flag] -const __wtype_PipelineAckProto = Dict(:seqno => :sint64) -meta(t::Type{PipelineAckProto}) = meta(t, __req_PipelineAckProto, ProtoBuf.DEF_FNUM, __val_PipelineAckProto, true, __pack_PipelineAckProto, __wtype_PipelineAckProto, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PipelineAckProto(; kwargs...) + obj = new(meta(PipelineAckProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PipelineAckProto +const __meta_PipelineAckProto = Ref{ProtoMeta}() +function meta(::Type{PipelineAckProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PipelineAckProto) + __meta_PipelineAckProto[] = target = ProtoMeta(PipelineAckProto) + req = Symbol[:seqno] + val = Dict{Symbol,Any}(:downstreamAckTimeNanos => 0) + pack = Symbol[:flag] + wtype = Dict(:seqno => :sint64) + allflds = Pair{Symbol,Union{Type,String}}[:seqno => Int64, :reply => Base.Vector{Int32}, :downstreamAckTimeNanos => UInt64, :flag => Base.Vector{UInt32}] + meta(target, PipelineAckProto, allflds, req, ProtoBuf.DEF_FNUM, val, pack, wtype, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PipelineAckProto[] + end +end +function Base.getproperty(obj::PipelineAckProto, name::Symbol) + if name === :seqno + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :reply + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + elseif name === :downstreamAckTimeNanos + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :flag + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{UInt32} + else + getfield(obj, name) + end +end mutable struct ReadOpChecksumInfoProto <: ProtoType - checksum::ChecksumProto - chunkOffset::UInt64 - ReadOpChecksumInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReadOpChecksumInfoProto -const __req_ReadOpChecksumInfoProto = Symbol[:checksum,:chunkOffset] -meta(t::Type{ReadOpChecksumInfoProto}) = meta(t, __req_ReadOpChecksumInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReadOpChecksumInfoProto(; kwargs...) + obj = new(meta(ReadOpChecksumInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReadOpChecksumInfoProto +const __meta_ReadOpChecksumInfoProto = Ref{ProtoMeta}() +function meta(::Type{ReadOpChecksumInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReadOpChecksumInfoProto) + __meta_ReadOpChecksumInfoProto[] = target = ProtoMeta(ReadOpChecksumInfoProto) + req = Symbol[:checksum,:chunkOffset] + allflds = Pair{Symbol,Union{Type,String}}[:checksum => ChecksumProto, :chunkOffset => UInt64] + meta(target, ReadOpChecksumInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReadOpChecksumInfoProto[] + end +end +function Base.getproperty(obj::ReadOpChecksumInfoProto, name::Symbol) + if name === :checksum + return (obj.__protobuf_jl_internal_values[name])::ChecksumProto + elseif name === :chunkOffset + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct ClientReadStatusProto <: ProtoType - status::Int32 - ClientReadStatusProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ClientReadStatusProto -const __req_ClientReadStatusProto = Symbol[:status] -meta(t::Type{ClientReadStatusProto}) = meta(t, __req_ClientReadStatusProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ClientReadStatusProto(; kwargs...) + obj = new(meta(ClientReadStatusProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ClientReadStatusProto +const __meta_ClientReadStatusProto = Ref{ProtoMeta}() +function meta(::Type{ClientReadStatusProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ClientReadStatusProto) + __meta_ClientReadStatusProto[] = target = ProtoMeta(ClientReadStatusProto) + req = Symbol[:status] + allflds = Pair{Symbol,Union{Type,String}}[:status => Int32] + meta(target, ClientReadStatusProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ClientReadStatusProto[] + end +end +function Base.getproperty(obj::ClientReadStatusProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct DNTransferAckProto <: ProtoType - status::Int32 - DNTransferAckProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DNTransferAckProto -const __req_DNTransferAckProto = Symbol[:status] -meta(t::Type{DNTransferAckProto}) = meta(t, __req_DNTransferAckProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DNTransferAckProto(; kwargs...) + obj = new(meta(DNTransferAckProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DNTransferAckProto +const __meta_DNTransferAckProto = Ref{ProtoMeta}() +function meta(::Type{DNTransferAckProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DNTransferAckProto) + __meta_DNTransferAckProto[] = target = ProtoMeta(DNTransferAckProto) + req = Symbol[:status] + allflds = Pair{Symbol,Union{Type,String}}[:status => Int32] + meta(target, DNTransferAckProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DNTransferAckProto[] + end +end +function Base.getproperty(obj::DNTransferAckProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct OpBlockChecksumResponseProto <: ProtoType - bytesPerCrc::UInt32 - crcPerBlock::UInt64 - md5::Array{UInt8,1} - crcType::Int32 - OpBlockChecksumResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpBlockChecksumResponseProto -const __req_OpBlockChecksumResponseProto = Symbol[:bytesPerCrc,:crcPerBlock,:md5] -meta(t::Type{OpBlockChecksumResponseProto}) = meta(t, __req_OpBlockChecksumResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpBlockChecksumResponseProto(; kwargs...) + obj = new(meta(OpBlockChecksumResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpBlockChecksumResponseProto +const __meta_OpBlockChecksumResponseProto = Ref{ProtoMeta}() +function meta(::Type{OpBlockChecksumResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpBlockChecksumResponseProto) + __meta_OpBlockChecksumResponseProto[] = target = ProtoMeta(OpBlockChecksumResponseProto) + req = Symbol[:bytesPerCrc,:crcPerBlock,:md5] + allflds = Pair{Symbol,Union{Type,String}}[:bytesPerCrc => UInt32, :crcPerBlock => UInt64, :md5 => Array{UInt8,1}, :crcType => Int32] + meta(target, OpBlockChecksumResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpBlockChecksumResponseProto[] + end +end +function Base.getproperty(obj::OpBlockChecksumResponseProto, name::Symbol) + if name === :bytesPerCrc + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :crcPerBlock + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :md5 + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :crcType + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct BlockOpResponseProto <: ProtoType - status::Int32 - firstBadLink::AbstractString - checksumResponse::OpBlockChecksumResponseProto - readOpChecksumInfo::ReadOpChecksumInfoProto - message::AbstractString - shortCircuitAccessVersion::UInt32 - BlockOpResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct BlockOpResponseProto -const __req_BlockOpResponseProto = Symbol[:status] -meta(t::Type{BlockOpResponseProto}) = meta(t, __req_BlockOpResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function BlockOpResponseProto(; kwargs...) + obj = new(meta(BlockOpResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct BlockOpResponseProto +const __meta_BlockOpResponseProto = Ref{ProtoMeta}() +function meta(::Type{BlockOpResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_BlockOpResponseProto) + __meta_BlockOpResponseProto[] = target = ProtoMeta(BlockOpResponseProto) + req = Symbol[:status] + allflds = Pair{Symbol,Union{Type,String}}[:status => Int32, :firstBadLink => AbstractString, :checksumResponse => OpBlockChecksumResponseProto, :readOpChecksumInfo => ReadOpChecksumInfoProto, :message => AbstractString, :shortCircuitAccessVersion => UInt32] + meta(target, BlockOpResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_BlockOpResponseProto[] + end +end +function Base.getproperty(obj::BlockOpResponseProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :firstBadLink + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :checksumResponse + return (obj.__protobuf_jl_internal_values[name])::OpBlockChecksumResponseProto + elseif name === :readOpChecksumInfo + return (obj.__protobuf_jl_internal_values[name])::ReadOpChecksumInfoProto + elseif name === :message + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :shortCircuitAccessVersion + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct OpCustomProto <: ProtoType - customId::AbstractString - OpCustomProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct OpCustomProto -const __req_OpCustomProto = Symbol[:customId] -meta(t::Type{OpCustomProto}) = meta(t, __req_OpCustomProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function OpCustomProto(; kwargs...) + obj = new(meta(OpCustomProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct OpCustomProto +const __meta_OpCustomProto = Ref{ProtoMeta}() +function meta(::Type{OpCustomProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_OpCustomProto) + __meta_OpCustomProto[] = target = ProtoMeta(OpCustomProto) + req = Symbol[:customId] + allflds = Pair{Symbol,Union{Type,String}}[:customId => AbstractString] + meta(target, OpCustomProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_OpCustomProto[] + end +end +function Base.getproperty(obj::OpCustomProto, name::Symbol) + if name === :customId + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end export Status, ShortCircuitFdResponse, DataTransferEncryptorMessageProto_DataTransferEncryptorStatus, DataTransferEncryptorMessageProto, HandshakeSecretProto, BaseHeaderProto, DataTransferTraceInfoProto, ClientOperationHeaderProto, CachingStrategyProto, OpReadBlockProto, ChecksumProto, OpWriteBlockProto_BlockConstructionStage, OpWriteBlockProto, OpTransferBlockProto, OpReplaceBlockProto, OpCopyBlockProto, OpBlockChecksumProto, ShortCircuitShmIdProto, ShortCircuitShmSlotProto, OpRequestShortCircuitAccessProto, ReleaseShortCircuitAccessRequestProto, ReleaseShortCircuitAccessResponseProto, ShortCircuitShmRequestProto, ShortCircuitShmResponseProto, PacketHeaderProto, PipelineAckProto, ReadOpChecksumInfoProto, BlockOpResponseProto, ClientReadStatusProto, DNTransferAckProto, OpBlockChecksumResponseProto, OpCustomProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/encryption_pb.jl b/src/hadoop/encryption_pb.jl index 8b05842..df676ce 100644 --- a/src/hadoop/encryption_pb.jl +++ b/src/hadoop/encryption_pb.jl @@ -1,55 +1,269 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta mutable struct CreateEncryptionZoneRequestProto <: ProtoType - src::AbstractString - keyName::AbstractString - CreateEncryptionZoneRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateEncryptionZoneRequestProto -const __req_CreateEncryptionZoneRequestProto = Symbol[:src] -meta(t::Type{CreateEncryptionZoneRequestProto}) = meta(t, __req_CreateEncryptionZoneRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateEncryptionZoneRequestProto(; kwargs...) + obj = new(meta(CreateEncryptionZoneRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateEncryptionZoneRequestProto +const __meta_CreateEncryptionZoneRequestProto = Ref{ProtoMeta}() +function meta(::Type{CreateEncryptionZoneRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateEncryptionZoneRequestProto) + __meta_CreateEncryptionZoneRequestProto[] = target = ProtoMeta(CreateEncryptionZoneRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :keyName => AbstractString] + meta(target, CreateEncryptionZoneRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateEncryptionZoneRequestProto[] + end +end +function Base.getproperty(obj::CreateEncryptionZoneRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :keyName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct CreateEncryptionZoneResponseProto <: ProtoType - CreateEncryptionZoneResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateEncryptionZoneResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateEncryptionZoneResponseProto(; kwargs...) + obj = new(meta(CreateEncryptionZoneResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateEncryptionZoneResponseProto +const __meta_CreateEncryptionZoneResponseProto = Ref{ProtoMeta}() +function meta(::Type{CreateEncryptionZoneResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateEncryptionZoneResponseProto) + __meta_CreateEncryptionZoneResponseProto[] = target = ProtoMeta(CreateEncryptionZoneResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, CreateEncryptionZoneResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateEncryptionZoneResponseProto[] + end +end mutable struct ListEncryptionZonesRequestProto <: ProtoType - id::Int64 - ListEncryptionZonesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListEncryptionZonesRequestProto -const __req_ListEncryptionZonesRequestProto = Symbol[:id] -meta(t::Type{ListEncryptionZonesRequestProto}) = meta(t, __req_ListEncryptionZonesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListEncryptionZonesRequestProto(; kwargs...) + obj = new(meta(ListEncryptionZonesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListEncryptionZonesRequestProto +const __meta_ListEncryptionZonesRequestProto = Ref{ProtoMeta}() +function meta(::Type{ListEncryptionZonesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListEncryptionZonesRequestProto) + __meta_ListEncryptionZonesRequestProto[] = target = ProtoMeta(ListEncryptionZonesRequestProto) + req = Symbol[:id] + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64] + meta(target, ListEncryptionZonesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListEncryptionZonesRequestProto[] + end +end +function Base.getproperty(obj::ListEncryptionZonesRequestProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct EncryptionZoneProto <: ProtoType - id::Int64 - path::AbstractString - suite::Int32 - cryptoProtocolVersion::Int32 - keyName::AbstractString - EncryptionZoneProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct EncryptionZoneProto -const __req_EncryptionZoneProto = Symbol[:id,:path,:suite,:cryptoProtocolVersion,:keyName] -meta(t::Type{EncryptionZoneProto}) = meta(t, __req_EncryptionZoneProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function EncryptionZoneProto(; kwargs...) + obj = new(meta(EncryptionZoneProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct EncryptionZoneProto +const __meta_EncryptionZoneProto = Ref{ProtoMeta}() +function meta(::Type{EncryptionZoneProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_EncryptionZoneProto) + __meta_EncryptionZoneProto[] = target = ProtoMeta(EncryptionZoneProto) + req = Symbol[:id,:path,:suite,:cryptoProtocolVersion,:keyName] + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64, :path => AbstractString, :suite => Int32, :cryptoProtocolVersion => Int32, :keyName => AbstractString] + meta(target, EncryptionZoneProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_EncryptionZoneProto[] + end +end +function Base.getproperty(obj::EncryptionZoneProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :suite + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :cryptoProtocolVersion + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :keyName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ListEncryptionZonesResponseProto <: ProtoType - zones::Base.Vector{EncryptionZoneProto} - hasMore::Bool - ListEncryptionZonesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListEncryptionZonesResponseProto -const __req_ListEncryptionZonesResponseProto = Symbol[:hasMore] -meta(t::Type{ListEncryptionZonesResponseProto}) = meta(t, __req_ListEncryptionZonesResponseProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListEncryptionZonesResponseProto(; kwargs...) + obj = new(meta(ListEncryptionZonesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListEncryptionZonesResponseProto +const __meta_ListEncryptionZonesResponseProto = Ref{ProtoMeta}() +function meta(::Type{ListEncryptionZonesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListEncryptionZonesResponseProto) + __meta_ListEncryptionZonesResponseProto[] = target = ProtoMeta(ListEncryptionZonesResponseProto) + req = Symbol[:hasMore] + allflds = Pair{Symbol,Union{Type,String}}[:zones => Base.Vector{EncryptionZoneProto}, :hasMore => Bool] + meta(target, ListEncryptionZonesResponseProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListEncryptionZonesResponseProto[] + end +end +function Base.getproperty(obj::ListEncryptionZonesResponseProto, name::Symbol) + if name === :zones + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{EncryptionZoneProto} + elseif name === :hasMore + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetEZForPathRequestProto <: ProtoType - src::AbstractString - GetEZForPathRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetEZForPathRequestProto -const __req_GetEZForPathRequestProto = Symbol[:src] -meta(t::Type{GetEZForPathRequestProto}) = meta(t, __req_GetEZForPathRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetEZForPathRequestProto(; kwargs...) + obj = new(meta(GetEZForPathRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetEZForPathRequestProto +const __meta_GetEZForPathRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetEZForPathRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetEZForPathRequestProto) + __meta_GetEZForPathRequestProto[] = target = ProtoMeta(GetEZForPathRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, GetEZForPathRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetEZForPathRequestProto[] + end +end +function Base.getproperty(obj::GetEZForPathRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct GetEZForPathResponseProto <: ProtoType - zone::EncryptionZoneProto - GetEZForPathResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetEZForPathResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetEZForPathResponseProto(; kwargs...) + obj = new(meta(GetEZForPathResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetEZForPathResponseProto +const __meta_GetEZForPathResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetEZForPathResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetEZForPathResponseProto) + __meta_GetEZForPathResponseProto[] = target = ProtoMeta(GetEZForPathResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:zone => EncryptionZoneProto] + meta(target, GetEZForPathResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetEZForPathResponseProto[] + end +end +function Base.getproperty(obj::GetEZForPathResponseProto, name::Symbol) + if name === :zone + return (obj.__protobuf_jl_internal_values[name])::EncryptionZoneProto + else + getfield(obj, name) + end +end export CreateEncryptionZoneRequestProto, CreateEncryptionZoneResponseProto, ListEncryptionZonesRequestProto, EncryptionZoneProto, ListEncryptionZonesResponseProto, GetEZForPathRequestProto, GetEZForPathResponseProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/hadoop.jl b/src/hadoop/hadoop.jl index 86741a6..b448872 100644 --- a/src/hadoop/hadoop.jl +++ b/src/hadoop/hadoop.jl @@ -1,3 +1,4 @@ +# COV_EXCL_START module hadoop const _ProtoBuf_Top_ = @static isdefined(parentmodule(@__MODULE__), :_ProtoBuf_Top_) ? (parentmodule(@__MODULE__))._ProtoBuf_Top_ : parentmodule(@__MODULE__) module common @@ -28,3 +29,4 @@ module hadoop include("application_history_client_pb.jl") end end +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/hdfs_pb.jl b/src/hadoop/hdfs_pb.jl index e5b4a00..0699c97 100644 --- a/src/hadoop/hdfs_pb.jl +++ b/src/hadoop/hdfs_pb.jl @@ -1,428 +1,1543 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop -struct __enum_StorageTypeProto <: ProtoEnum - DISK::Int32 - SSD::Int32 - ARCHIVE::Int32 - RAM_DISK::Int32 - __enum_StorageTypeProto() = new(1,2,3,4) -end #struct __enum_StorageTypeProto -const StorageTypeProto = __enum_StorageTypeProto() - -struct __enum_CipherSuiteProto <: ProtoEnum - UNKNOWN::Int32 - AES_CTR_NOPADDING::Int32 - __enum_CipherSuiteProto() = new(1,2) -end #struct __enum_CipherSuiteProto -const CipherSuiteProto = __enum_CipherSuiteProto() - -struct __enum_CryptoProtocolVersionProto <: ProtoEnum - UNKNOWN_PROTOCOL_VERSION::Int32 - ENCRYPTION_ZONES::Int32 - __enum_CryptoProtocolVersionProto() = new(1,2) -end #struct __enum_CryptoProtocolVersionProto -const CryptoProtocolVersionProto = __enum_CryptoProtocolVersionProto() - -struct __enum_ChecksumTypeProto <: ProtoEnum - CHECKSUM_NULL::Int32 - CHECKSUM_CRC32::Int32 - CHECKSUM_CRC32C::Int32 - __enum_ChecksumTypeProto() = new(0,1,2) -end #struct __enum_ChecksumTypeProto -const ChecksumTypeProto = __enum_ChecksumTypeProto() +const StorageTypeProto = (;[ + Symbol("DISK") => Int32(1), + Symbol("SSD") => Int32(2), + Symbol("ARCHIVE") => Int32(3), + Symbol("RAM_DISK") => Int32(4), +]...) + +const CipherSuiteProto = (;[ + Symbol("UNKNOWN") => Int32(1), + Symbol("AES_CTR_NOPADDING") => Int32(2), +]...) + +const CryptoProtocolVersionProto = (;[ + Symbol("UNKNOWN_PROTOCOL_VERSION") => Int32(1), + Symbol("ENCRYPTION_ZONES") => Int32(2), +]...) + +const ChecksumTypeProto = (;[ + Symbol("CHECKSUM_NULL") => Int32(0), + Symbol("CHECKSUM_CRC32") => Int32(1), + Symbol("CHECKSUM_CRC32C") => Int32(2), +]...) mutable struct ExtendedBlockProto <: ProtoType - poolId::AbstractString - blockId::UInt64 - generationStamp::UInt64 - numBytes::UInt64 - ExtendedBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ExtendedBlockProto -const __req_ExtendedBlockProto = Symbol[:poolId,:blockId,:generationStamp] -const __val_ExtendedBlockProto = Dict(:numBytes => 0) -meta(t::Type{ExtendedBlockProto}) = meta(t, __req_ExtendedBlockProto, ProtoBuf.DEF_FNUM, __val_ExtendedBlockProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ExtendedBlockProto(; kwargs...) + obj = new(meta(ExtendedBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ExtendedBlockProto +const __meta_ExtendedBlockProto = Ref{ProtoMeta}() +function meta(::Type{ExtendedBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ExtendedBlockProto) + __meta_ExtendedBlockProto[] = target = ProtoMeta(ExtendedBlockProto) + req = Symbol[:poolId,:blockId,:generationStamp] + val = Dict{Symbol,Any}(:numBytes => 0) + allflds = Pair{Symbol,Union{Type,String}}[:poolId => AbstractString, :blockId => UInt64, :generationStamp => UInt64, :numBytes => UInt64] + meta(target, ExtendedBlockProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ExtendedBlockProto[] + end +end +function Base.getproperty(obj::ExtendedBlockProto, name::Symbol) + if name === :poolId + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :blockId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :generationStamp + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :numBytes + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct DatanodeIDProto <: ProtoType - ipAddr::AbstractString - hostName::AbstractString - datanodeUuid::AbstractString - xferPort::UInt32 - infoPort::UInt32 - ipcPort::UInt32 - infoSecurePort::UInt32 - DatanodeIDProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeIDProto -const __req_DatanodeIDProto = Symbol[:ipAddr,:hostName,:datanodeUuid,:xferPort,:infoPort,:ipcPort] -const __val_DatanodeIDProto = Dict(:infoSecurePort => 0) -meta(t::Type{DatanodeIDProto}) = meta(t, __req_DatanodeIDProto, ProtoBuf.DEF_FNUM, __val_DatanodeIDProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeIDProto(; kwargs...) + obj = new(meta(DatanodeIDProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeIDProto +const __meta_DatanodeIDProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeIDProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeIDProto) + __meta_DatanodeIDProto[] = target = ProtoMeta(DatanodeIDProto) + req = Symbol[:ipAddr,:hostName,:datanodeUuid,:xferPort,:infoPort,:ipcPort] + val = Dict{Symbol,Any}(:infoSecurePort => 0) + allflds = Pair{Symbol,Union{Type,String}}[:ipAddr => AbstractString, :hostName => AbstractString, :datanodeUuid => AbstractString, :xferPort => UInt32, :infoPort => UInt32, :ipcPort => UInt32, :infoSecurePort => UInt32] + meta(target, DatanodeIDProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeIDProto[] + end +end +function Base.getproperty(obj::DatanodeIDProto, name::Symbol) + if name === :ipAddr + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :hostName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :datanodeUuid + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :xferPort + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :infoPort + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :ipcPort + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :infoSecurePort + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct DatanodeLocalInfoProto <: ProtoType - softwareVersion::AbstractString - configVersion::AbstractString - uptime::UInt64 - DatanodeLocalInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeLocalInfoProto -const __req_DatanodeLocalInfoProto = Symbol[:softwareVersion,:configVersion,:uptime] -meta(t::Type{DatanodeLocalInfoProto}) = meta(t, __req_DatanodeLocalInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeLocalInfoProto(; kwargs...) + obj = new(meta(DatanodeLocalInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeLocalInfoProto +const __meta_DatanodeLocalInfoProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeLocalInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeLocalInfoProto) + __meta_DatanodeLocalInfoProto[] = target = ProtoMeta(DatanodeLocalInfoProto) + req = Symbol[:softwareVersion,:configVersion,:uptime] + allflds = Pair{Symbol,Union{Type,String}}[:softwareVersion => AbstractString, :configVersion => AbstractString, :uptime => UInt64] + meta(target, DatanodeLocalInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeLocalInfoProto[] + end +end +function Base.getproperty(obj::DatanodeLocalInfoProto, name::Symbol) + if name === :softwareVersion + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :configVersion + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :uptime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct DatanodeVolumeInfoProto <: ProtoType - path::AbstractString - storageType::Int32 - usedSpace::UInt64 - freeSpace::UInt64 - reservedSpace::UInt64 - reservedSpaceForReplicas::UInt64 - numBlocks::UInt64 - DatanodeVolumeInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeVolumeInfoProto -const __req_DatanodeVolumeInfoProto = Symbol[:path,:storageType,:usedSpace,:freeSpace,:reservedSpace,:reservedSpaceForReplicas,:numBlocks] -meta(t::Type{DatanodeVolumeInfoProto}) = meta(t, __req_DatanodeVolumeInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_DatanodeInfoProto_AdminState <: ProtoEnum - NORMAL::Int32 - DECOMMISSION_INPROGRESS::Int32 - DECOMMISSIONED::Int32 - ENTERING_MAINTENANCE::Int32 - IN_MAINTENANCE::Int32 - __enum_DatanodeInfoProto_AdminState() = new(0,1,2,3,4) -end #struct __enum_DatanodeInfoProto_AdminState -const DatanodeInfoProto_AdminState = __enum_DatanodeInfoProto_AdminState() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeVolumeInfoProto(; kwargs...) + obj = new(meta(DatanodeVolumeInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeVolumeInfoProto +const __meta_DatanodeVolumeInfoProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeVolumeInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeVolumeInfoProto) + __meta_DatanodeVolumeInfoProto[] = target = ProtoMeta(DatanodeVolumeInfoProto) + req = Symbol[:path,:storageType,:usedSpace,:freeSpace,:reservedSpace,:reservedSpaceForReplicas,:numBlocks] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :storageType => Int32, :usedSpace => UInt64, :freeSpace => UInt64, :reservedSpace => UInt64, :reservedSpaceForReplicas => UInt64, :numBlocks => UInt64] + meta(target, DatanodeVolumeInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeVolumeInfoProto[] + end +end +function Base.getproperty(obj::DatanodeVolumeInfoProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :storageType + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :usedSpace + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :freeSpace + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :reservedSpace + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :reservedSpaceForReplicas + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :numBlocks + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end + +const DatanodeInfoProto_AdminState = (;[ + Symbol("NORMAL") => Int32(0), + Symbol("DECOMMISSION_INPROGRESS") => Int32(1), + Symbol("DECOMMISSIONED") => Int32(2), + Symbol("ENTERING_MAINTENANCE") => Int32(3), + Symbol("IN_MAINTENANCE") => Int32(4), +]...) mutable struct DatanodeInfoProto <: ProtoType - id::DatanodeIDProto - capacity::UInt64 - dfsUsed::UInt64 - remaining::UInt64 - blockPoolUsed::UInt64 - lastUpdate::UInt64 - xceiverCount::UInt32 - location::AbstractString - nonDfsUsed::UInt64 - adminState::Int32 - cacheCapacity::UInt64 - cacheUsed::UInt64 - lastUpdateMonotonic::UInt64 - upgradeDomain::AbstractString - lastBlockReportTime::UInt64 - lastBlockReportMonotonic::UInt64 - DatanodeInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeInfoProto -const __req_DatanodeInfoProto = Symbol[:id] -const __val_DatanodeInfoProto = Dict(:capacity => 0, :dfsUsed => 0, :remaining => 0, :blockPoolUsed => 0, :lastUpdate => 0, :xceiverCount => 0, :adminState => DatanodeInfoProto_AdminState.NORMAL, :cacheCapacity => 0, :cacheUsed => 0, :lastUpdateMonotonic => 0, :lastBlockReportTime => 0, :lastBlockReportMonotonic => 0) -meta(t::Type{DatanodeInfoProto}) = meta(t, __req_DatanodeInfoProto, ProtoBuf.DEF_FNUM, __val_DatanodeInfoProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeInfoProto(; kwargs...) + obj = new(meta(DatanodeInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeInfoProto +const __meta_DatanodeInfoProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeInfoProto) + __meta_DatanodeInfoProto[] = target = ProtoMeta(DatanodeInfoProto) + req = Symbol[:id] + val = Dict{Symbol,Any}(:capacity => 0, :dfsUsed => 0, :remaining => 0, :blockPoolUsed => 0, :lastUpdate => 0, :xceiverCount => 0, :adminState => DatanodeInfoProto_AdminState.NORMAL, :cacheCapacity => 0, :cacheUsed => 0, :lastUpdateMonotonic => 0, :lastBlockReportTime => 0, :lastBlockReportMonotonic => 0) + allflds = Pair{Symbol,Union{Type,String}}[:id => DatanodeIDProto, :capacity => UInt64, :dfsUsed => UInt64, :remaining => UInt64, :blockPoolUsed => UInt64, :lastUpdate => UInt64, :xceiverCount => UInt32, :location => AbstractString, :nonDfsUsed => UInt64, :adminState => Int32, :cacheCapacity => UInt64, :cacheUsed => UInt64, :lastUpdateMonotonic => UInt64, :upgradeDomain => AbstractString, :lastBlockReportTime => UInt64, :lastBlockReportMonotonic => UInt64] + meta(target, DatanodeInfoProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeInfoProto[] + end +end +function Base.getproperty(obj::DatanodeInfoProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::DatanodeIDProto + elseif name === :capacity + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :dfsUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :remaining + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :blockPoolUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :lastUpdate + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :xceiverCount + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :location + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :nonDfsUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :adminState + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :cacheCapacity + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :cacheUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :lastUpdateMonotonic + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :upgradeDomain + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :lastBlockReportTime + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :lastBlockReportMonotonic + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct DatanodeInfosProto <: ProtoType - datanodes::Base.Vector{DatanodeInfoProto} - DatanodeInfosProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeInfosProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeInfosProto(; kwargs...) + obj = new(meta(DatanodeInfosProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeInfosProto +const __meta_DatanodeInfosProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeInfosProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeInfosProto) + __meta_DatanodeInfosProto[] = target = ProtoMeta(DatanodeInfosProto) + allflds = Pair{Symbol,Union{Type,String}}[:datanodes => Base.Vector{DatanodeInfoProto}] + meta(target, DatanodeInfosProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeInfosProto[] + end +end +function Base.getproperty(obj::DatanodeInfosProto, name::Symbol) + if name === :datanodes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + else + getfield(obj, name) + end +end -struct __enum_DatanodeStorageProto_StorageState <: ProtoEnum - NORMAL::Int32 - READ_ONLY_SHARED::Int32 - __enum_DatanodeStorageProto_StorageState() = new(0,1) -end #struct __enum_DatanodeStorageProto_StorageState -const DatanodeStorageProto_StorageState = __enum_DatanodeStorageProto_StorageState() +const DatanodeStorageProto_StorageState = (;[ + Symbol("NORMAL") => Int32(0), + Symbol("READ_ONLY_SHARED") => Int32(1), +]...) mutable struct DatanodeStorageProto <: ProtoType - storageUuid::AbstractString - state::Int32 - storageType::Int32 - DatanodeStorageProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DatanodeStorageProto -const __req_DatanodeStorageProto = Symbol[:storageUuid] -const __val_DatanodeStorageProto = Dict(:state => DatanodeStorageProto_StorageState.NORMAL, :storageType => StorageTypeProto.DISK) -meta(t::Type{DatanodeStorageProto}) = meta(t, __req_DatanodeStorageProto, ProtoBuf.DEF_FNUM, __val_DatanodeStorageProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DatanodeStorageProto(; kwargs...) + obj = new(meta(DatanodeStorageProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DatanodeStorageProto +const __meta_DatanodeStorageProto = Ref{ProtoMeta}() +function meta(::Type{DatanodeStorageProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DatanodeStorageProto) + __meta_DatanodeStorageProto[] = target = ProtoMeta(DatanodeStorageProto) + req = Symbol[:storageUuid] + val = Dict{Symbol,Any}(:state => DatanodeStorageProto_StorageState.NORMAL, :storageType => StorageTypeProto.DISK) + allflds = Pair{Symbol,Union{Type,String}}[:storageUuid => AbstractString, :state => Int32, :storageType => Int32] + meta(target, DatanodeStorageProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DatanodeStorageProto[] + end +end +function Base.getproperty(obj::DatanodeStorageProto, name::Symbol) + if name === :storageUuid + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :storageType + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct StorageReportProto <: ProtoType - storageUuid::AbstractString - failed::Bool - capacity::UInt64 - dfsUsed::UInt64 - remaining::UInt64 - blockPoolUsed::UInt64 - storage::DatanodeStorageProto - nonDfsUsed::UInt64 - StorageReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StorageReportProto -const __req_StorageReportProto = Symbol[:storageUuid] -const __val_StorageReportProto = Dict(:failed => false, :capacity => 0, :dfsUsed => 0, :remaining => 0, :blockPoolUsed => 0) -meta(t::Type{StorageReportProto}) = meta(t, __req_StorageReportProto, ProtoBuf.DEF_FNUM, __val_StorageReportProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StorageReportProto(; kwargs...) + obj = new(meta(StorageReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StorageReportProto +const __meta_StorageReportProto = Ref{ProtoMeta}() +function meta(::Type{StorageReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StorageReportProto) + __meta_StorageReportProto[] = target = ProtoMeta(StorageReportProto) + req = Symbol[:storageUuid] + val = Dict{Symbol,Any}(:failed => false, :capacity => 0, :dfsUsed => 0, :remaining => 0, :blockPoolUsed => 0) + allflds = Pair{Symbol,Union{Type,String}}[:storageUuid => AbstractString, :failed => Bool, :capacity => UInt64, :dfsUsed => UInt64, :remaining => UInt64, :blockPoolUsed => UInt64, :storage => DatanodeStorageProto, :nonDfsUsed => UInt64] + meta(target, StorageReportProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StorageReportProto[] + end +end +function Base.getproperty(obj::StorageReportProto, name::Symbol) + if name === :storageUuid + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :failed + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :capacity + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :dfsUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :remaining + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :blockPoolUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :storage + return (obj.__protobuf_jl_internal_values[name])::DatanodeStorageProto + elseif name === :nonDfsUsed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct StorageTypeQuotaInfoProto <: ProtoType - _type::Int32 - quota::UInt64 - consumed::UInt64 - StorageTypeQuotaInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StorageTypeQuotaInfoProto -const __req_StorageTypeQuotaInfoProto = Symbol[:_type,:quota,:consumed] -meta(t::Type{StorageTypeQuotaInfoProto}) = meta(t, __req_StorageTypeQuotaInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StorageTypeQuotaInfoProto(; kwargs...) + obj = new(meta(StorageTypeQuotaInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StorageTypeQuotaInfoProto +const __meta_StorageTypeQuotaInfoProto = Ref{ProtoMeta}() +function meta(::Type{StorageTypeQuotaInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StorageTypeQuotaInfoProto) + __meta_StorageTypeQuotaInfoProto[] = target = ProtoMeta(StorageTypeQuotaInfoProto) + req = Symbol[:_type,:quota,:consumed] + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32, :quota => UInt64, :consumed => UInt64] + meta(target, StorageTypeQuotaInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StorageTypeQuotaInfoProto[] + end +end +function Base.getproperty(obj::StorageTypeQuotaInfoProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :quota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :consumed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct StorageTypeQuotaInfosProto <: ProtoType - typeQuotaInfo::Base.Vector{StorageTypeQuotaInfoProto} - StorageTypeQuotaInfosProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StorageTypeQuotaInfosProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StorageTypeQuotaInfosProto(; kwargs...) + obj = new(meta(StorageTypeQuotaInfosProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StorageTypeQuotaInfosProto +const __meta_StorageTypeQuotaInfosProto = Ref{ProtoMeta}() +function meta(::Type{StorageTypeQuotaInfosProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StorageTypeQuotaInfosProto) + __meta_StorageTypeQuotaInfosProto[] = target = ProtoMeta(StorageTypeQuotaInfosProto) + allflds = Pair{Symbol,Union{Type,String}}[:typeQuotaInfo => Base.Vector{StorageTypeQuotaInfoProto}] + meta(target, StorageTypeQuotaInfosProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StorageTypeQuotaInfosProto[] + end +end +function Base.getproperty(obj::StorageTypeQuotaInfosProto, name::Symbol) + if name === :typeQuotaInfo + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StorageTypeQuotaInfoProto} + else + getfield(obj, name) + end +end mutable struct ContentSummaryProto <: ProtoType - length::UInt64 - fileCount::UInt64 - directoryCount::UInt64 - quota::UInt64 - spaceConsumed::UInt64 - spaceQuota::UInt64 - typeQuotaInfos::StorageTypeQuotaInfosProto - snapshotLength::UInt64 - snapshotFileCount::UInt64 - snapshotDirectoryCount::UInt64 - snapshotSpaceConsumed::UInt64 - ContentSummaryProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContentSummaryProto -const __req_ContentSummaryProto = Symbol[:length,:fileCount,:directoryCount,:quota,:spaceConsumed,:spaceQuota] -meta(t::Type{ContentSummaryProto}) = meta(t, __req_ContentSummaryProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContentSummaryProto(; kwargs...) + obj = new(meta(ContentSummaryProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContentSummaryProto +const __meta_ContentSummaryProto = Ref{ProtoMeta}() +function meta(::Type{ContentSummaryProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContentSummaryProto) + __meta_ContentSummaryProto[] = target = ProtoMeta(ContentSummaryProto) + req = Symbol[:length,:fileCount,:directoryCount,:quota,:spaceConsumed,:spaceQuota] + allflds = Pair{Symbol,Union{Type,String}}[:length => UInt64, :fileCount => UInt64, :directoryCount => UInt64, :quota => UInt64, :spaceConsumed => UInt64, :spaceQuota => UInt64, :typeQuotaInfos => StorageTypeQuotaInfosProto, :snapshotLength => UInt64, :snapshotFileCount => UInt64, :snapshotDirectoryCount => UInt64, :snapshotSpaceConsumed => UInt64] + meta(target, ContentSummaryProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContentSummaryProto[] + end +end +function Base.getproperty(obj::ContentSummaryProto, name::Symbol) + if name === :length + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :fileCount + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :directoryCount + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :quota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :spaceConsumed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :spaceQuota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :typeQuotaInfos + return (obj.__protobuf_jl_internal_values[name])::StorageTypeQuotaInfosProto + elseif name === :snapshotLength + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :snapshotFileCount + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :snapshotDirectoryCount + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :snapshotSpaceConsumed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct QuotaUsageProto <: ProtoType - fileAndDirectoryCount::UInt64 - quota::UInt64 - spaceConsumed::UInt64 - spaceQuota::UInt64 - typeQuotaInfos::StorageTypeQuotaInfosProto - QuotaUsageProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct QuotaUsageProto -const __req_QuotaUsageProto = Symbol[:fileAndDirectoryCount,:quota,:spaceConsumed,:spaceQuota] -meta(t::Type{QuotaUsageProto}) = meta(t, __req_QuotaUsageProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function QuotaUsageProto(; kwargs...) + obj = new(meta(QuotaUsageProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct QuotaUsageProto +const __meta_QuotaUsageProto = Ref{ProtoMeta}() +function meta(::Type{QuotaUsageProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_QuotaUsageProto) + __meta_QuotaUsageProto[] = target = ProtoMeta(QuotaUsageProto) + req = Symbol[:fileAndDirectoryCount,:quota,:spaceConsumed,:spaceQuota] + allflds = Pair{Symbol,Union{Type,String}}[:fileAndDirectoryCount => UInt64, :quota => UInt64, :spaceConsumed => UInt64, :spaceQuota => UInt64, :typeQuotaInfos => StorageTypeQuotaInfosProto] + meta(target, QuotaUsageProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_QuotaUsageProto[] + end +end +function Base.getproperty(obj::QuotaUsageProto, name::Symbol) + if name === :fileAndDirectoryCount + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :quota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :spaceConsumed + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :spaceQuota + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :typeQuotaInfos + return (obj.__protobuf_jl_internal_values[name])::StorageTypeQuotaInfosProto + else + getfield(obj, name) + end +end mutable struct CorruptFileBlocksProto <: ProtoType - files::Base.Vector{AbstractString} - cookie::AbstractString - CorruptFileBlocksProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CorruptFileBlocksProto -const __req_CorruptFileBlocksProto = Symbol[:cookie] -meta(t::Type{CorruptFileBlocksProto}) = meta(t, __req_CorruptFileBlocksProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CorruptFileBlocksProto(; kwargs...) + obj = new(meta(CorruptFileBlocksProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CorruptFileBlocksProto +const __meta_CorruptFileBlocksProto = Ref{ProtoMeta}() +function meta(::Type{CorruptFileBlocksProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CorruptFileBlocksProto) + __meta_CorruptFileBlocksProto[] = target = ProtoMeta(CorruptFileBlocksProto) + req = Symbol[:cookie] + allflds = Pair{Symbol,Union{Type,String}}[:files => Base.Vector{AbstractString}, :cookie => AbstractString] + meta(target, CorruptFileBlocksProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CorruptFileBlocksProto[] + end +end +function Base.getproperty(obj::CorruptFileBlocksProto, name::Symbol) + if name === :files + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :cookie + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct FsPermissionProto <: ProtoType - perm::UInt32 - FsPermissionProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FsPermissionProto -const __req_FsPermissionProto = Symbol[:perm] -meta(t::Type{FsPermissionProto}) = meta(t, __req_FsPermissionProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FsPermissionProto(; kwargs...) + obj = new(meta(FsPermissionProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FsPermissionProto +const __meta_FsPermissionProto = Ref{ProtoMeta}() +function meta(::Type{FsPermissionProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FsPermissionProto) + __meta_FsPermissionProto[] = target = ProtoMeta(FsPermissionProto) + req = Symbol[:perm] + allflds = Pair{Symbol,Union{Type,String}}[:perm => UInt32] + meta(target, FsPermissionProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FsPermissionProto[] + end +end +function Base.getproperty(obj::FsPermissionProto, name::Symbol) + if name === :perm + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct StorageTypesProto <: ProtoType - storageTypes::Base.Vector{Int32} - StorageTypesProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StorageTypesProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StorageTypesProto(; kwargs...) + obj = new(meta(StorageTypesProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StorageTypesProto +const __meta_StorageTypesProto = Ref{ProtoMeta}() +function meta(::Type{StorageTypesProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StorageTypesProto) + __meta_StorageTypesProto[] = target = ProtoMeta(StorageTypesProto) + allflds = Pair{Symbol,Union{Type,String}}[:storageTypes => Base.Vector{Int32}] + meta(target, StorageTypesProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StorageTypesProto[] + end +end +function Base.getproperty(obj::StorageTypesProto, name::Symbol) + if name === :storageTypes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct BlockStoragePolicyProto <: ProtoType - policyId::UInt32 - name::AbstractString - creationPolicy::StorageTypesProto - creationFallbackPolicy::StorageTypesProto - replicationFallbackPolicy::StorageTypesProto - BlockStoragePolicyProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct BlockStoragePolicyProto -const __req_BlockStoragePolicyProto = Symbol[:policyId,:name,:creationPolicy] -meta(t::Type{BlockStoragePolicyProto}) = meta(t, __req_BlockStoragePolicyProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function BlockStoragePolicyProto(; kwargs...) + obj = new(meta(BlockStoragePolicyProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct BlockStoragePolicyProto +const __meta_BlockStoragePolicyProto = Ref{ProtoMeta}() +function meta(::Type{BlockStoragePolicyProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_BlockStoragePolicyProto) + __meta_BlockStoragePolicyProto[] = target = ProtoMeta(BlockStoragePolicyProto) + req = Symbol[:policyId,:name,:creationPolicy] + allflds = Pair{Symbol,Union{Type,String}}[:policyId => UInt32, :name => AbstractString, :creationPolicy => StorageTypesProto, :creationFallbackPolicy => StorageTypesProto, :replicationFallbackPolicy => StorageTypesProto] + meta(target, BlockStoragePolicyProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_BlockStoragePolicyProto[] + end +end +function Base.getproperty(obj::BlockStoragePolicyProto, name::Symbol) + if name === :policyId + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :creationPolicy + return (obj.__protobuf_jl_internal_values[name])::StorageTypesProto + elseif name === :creationFallbackPolicy + return (obj.__protobuf_jl_internal_values[name])::StorageTypesProto + elseif name === :replicationFallbackPolicy + return (obj.__protobuf_jl_internal_values[name])::StorageTypesProto + else + getfield(obj, name) + end +end mutable struct LocatedBlockProto <: ProtoType - b::ExtendedBlockProto - offset::UInt64 - locs::Base.Vector{DatanodeInfoProto} - corrupt::Bool - blockToken::hadoop.common.TokenProto - isCached::Base.Vector{Bool} - storageTypes::Base.Vector{Int32} - storageIDs::Base.Vector{AbstractString} - LocatedBlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct LocatedBlockProto -const __req_LocatedBlockProto = Symbol[:b,:offset,:corrupt,:blockToken] -const __pack_LocatedBlockProto = Symbol[:isCached] -meta(t::Type{LocatedBlockProto}) = meta(t, __req_LocatedBlockProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, __pack_LocatedBlockProto, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function LocatedBlockProto(; kwargs...) + obj = new(meta(LocatedBlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct LocatedBlockProto +const __meta_LocatedBlockProto = Ref{ProtoMeta}() +function meta(::Type{LocatedBlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_LocatedBlockProto) + __meta_LocatedBlockProto[] = target = ProtoMeta(LocatedBlockProto) + req = Symbol[:b,:offset,:corrupt,:blockToken] + pack = Symbol[:isCached] + allflds = Pair{Symbol,Union{Type,String}}[:b => ExtendedBlockProto, :offset => UInt64, :locs => Base.Vector{DatanodeInfoProto}, :corrupt => Bool, :blockToken => hadoop.common.TokenProto, :isCached => Base.Vector{Bool}, :storageTypes => Base.Vector{Int32}, :storageIDs => Base.Vector{AbstractString}] + meta(target, LocatedBlockProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, pack, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_LocatedBlockProto[] + end +end +function Base.getproperty(obj::LocatedBlockProto, name::Symbol) + if name === :b + return (obj.__protobuf_jl_internal_values[name])::ExtendedBlockProto + elseif name === :offset + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :locs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{DatanodeInfoProto} + elseif name === :corrupt + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :blockToken + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + elseif name === :isCached + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Bool} + elseif name === :storageTypes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + elseif name === :storageIDs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + else + getfield(obj, name) + end +end mutable struct DataEncryptionKeyProto <: ProtoType - keyId::UInt32 - blockPoolId::AbstractString - nonce::Array{UInt8,1} - encryptionKey::Array{UInt8,1} - expiryDate::UInt64 - encryptionAlgorithm::AbstractString - DataEncryptionKeyProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DataEncryptionKeyProto -const __req_DataEncryptionKeyProto = Symbol[:keyId,:blockPoolId,:nonce,:encryptionKey,:expiryDate] -meta(t::Type{DataEncryptionKeyProto}) = meta(t, __req_DataEncryptionKeyProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DataEncryptionKeyProto(; kwargs...) + obj = new(meta(DataEncryptionKeyProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DataEncryptionKeyProto +const __meta_DataEncryptionKeyProto = Ref{ProtoMeta}() +function meta(::Type{DataEncryptionKeyProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DataEncryptionKeyProto) + __meta_DataEncryptionKeyProto[] = target = ProtoMeta(DataEncryptionKeyProto) + req = Symbol[:keyId,:blockPoolId,:nonce,:encryptionKey,:expiryDate] + allflds = Pair{Symbol,Union{Type,String}}[:keyId => UInt32, :blockPoolId => AbstractString, :nonce => Array{UInt8,1}, :encryptionKey => Array{UInt8,1}, :expiryDate => UInt64, :encryptionAlgorithm => AbstractString] + meta(target, DataEncryptionKeyProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DataEncryptionKeyProto[] + end +end +function Base.getproperty(obj::DataEncryptionKeyProto, name::Symbol) + if name === :keyId + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :blockPoolId + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :nonce + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :encryptionKey + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :expiryDate + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :encryptionAlgorithm + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct FileEncryptionInfoProto <: ProtoType - suite::Int32 - cryptoProtocolVersion::Int32 - key::Array{UInt8,1} - iv::Array{UInt8,1} - keyName::AbstractString - ezKeyVersionName::AbstractString - FileEncryptionInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FileEncryptionInfoProto -const __req_FileEncryptionInfoProto = Symbol[:suite,:cryptoProtocolVersion,:key,:iv,:keyName,:ezKeyVersionName] -meta(t::Type{FileEncryptionInfoProto}) = meta(t, __req_FileEncryptionInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FileEncryptionInfoProto(; kwargs...) + obj = new(meta(FileEncryptionInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FileEncryptionInfoProto +const __meta_FileEncryptionInfoProto = Ref{ProtoMeta}() +function meta(::Type{FileEncryptionInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FileEncryptionInfoProto) + __meta_FileEncryptionInfoProto[] = target = ProtoMeta(FileEncryptionInfoProto) + req = Symbol[:suite,:cryptoProtocolVersion,:key,:iv,:keyName,:ezKeyVersionName] + allflds = Pair{Symbol,Union{Type,String}}[:suite => Int32, :cryptoProtocolVersion => Int32, :key => Array{UInt8,1}, :iv => Array{UInt8,1}, :keyName => AbstractString, :ezKeyVersionName => AbstractString] + meta(target, FileEncryptionInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FileEncryptionInfoProto[] + end +end +function Base.getproperty(obj::FileEncryptionInfoProto, name::Symbol) + if name === :suite + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :cryptoProtocolVersion + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :key + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :iv + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :keyName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :ezKeyVersionName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct PerFileEncryptionInfoProto <: ProtoType - key::Array{UInt8,1} - iv::Array{UInt8,1} - ezKeyVersionName::AbstractString - PerFileEncryptionInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PerFileEncryptionInfoProto -const __req_PerFileEncryptionInfoProto = Symbol[:key,:iv,:ezKeyVersionName] -meta(t::Type{PerFileEncryptionInfoProto}) = meta(t, __req_PerFileEncryptionInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PerFileEncryptionInfoProto(; kwargs...) + obj = new(meta(PerFileEncryptionInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PerFileEncryptionInfoProto +const __meta_PerFileEncryptionInfoProto = Ref{ProtoMeta}() +function meta(::Type{PerFileEncryptionInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PerFileEncryptionInfoProto) + __meta_PerFileEncryptionInfoProto[] = target = ProtoMeta(PerFileEncryptionInfoProto) + req = Symbol[:key,:iv,:ezKeyVersionName] + allflds = Pair{Symbol,Union{Type,String}}[:key => Array{UInt8,1}, :iv => Array{UInt8,1}, :ezKeyVersionName => AbstractString] + meta(target, PerFileEncryptionInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PerFileEncryptionInfoProto[] + end +end +function Base.getproperty(obj::PerFileEncryptionInfoProto, name::Symbol) + if name === :key + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :iv + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :ezKeyVersionName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ZoneEncryptionInfoProto <: ProtoType - suite::Int32 - cryptoProtocolVersion::Int32 - keyName::AbstractString - ZoneEncryptionInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ZoneEncryptionInfoProto -const __req_ZoneEncryptionInfoProto = Symbol[:suite,:cryptoProtocolVersion,:keyName] -meta(t::Type{ZoneEncryptionInfoProto}) = meta(t, __req_ZoneEncryptionInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ZoneEncryptionInfoProto(; kwargs...) + obj = new(meta(ZoneEncryptionInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ZoneEncryptionInfoProto +const __meta_ZoneEncryptionInfoProto = Ref{ProtoMeta}() +function meta(::Type{ZoneEncryptionInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ZoneEncryptionInfoProto) + __meta_ZoneEncryptionInfoProto[] = target = ProtoMeta(ZoneEncryptionInfoProto) + req = Symbol[:suite,:cryptoProtocolVersion,:keyName] + allflds = Pair{Symbol,Union{Type,String}}[:suite => Int32, :cryptoProtocolVersion => Int32, :keyName => AbstractString] + meta(target, ZoneEncryptionInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ZoneEncryptionInfoProto[] + end +end +function Base.getproperty(obj::ZoneEncryptionInfoProto, name::Symbol) + if name === :suite + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :cryptoProtocolVersion + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :keyName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct CipherOptionProto <: ProtoType - suite::Int32 - inKey::Array{UInt8,1} - inIv::Array{UInt8,1} - outKey::Array{UInt8,1} - outIv::Array{UInt8,1} - CipherOptionProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CipherOptionProto -const __req_CipherOptionProto = Symbol[:suite] -meta(t::Type{CipherOptionProto}) = meta(t, __req_CipherOptionProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CipherOptionProto(; kwargs...) + obj = new(meta(CipherOptionProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CipherOptionProto +const __meta_CipherOptionProto = Ref{ProtoMeta}() +function meta(::Type{CipherOptionProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CipherOptionProto) + __meta_CipherOptionProto[] = target = ProtoMeta(CipherOptionProto) + req = Symbol[:suite] + allflds = Pair{Symbol,Union{Type,String}}[:suite => Int32, :inKey => Array{UInt8,1}, :inIv => Array{UInt8,1}, :outKey => Array{UInt8,1}, :outIv => Array{UInt8,1}] + meta(target, CipherOptionProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CipherOptionProto[] + end +end +function Base.getproperty(obj::CipherOptionProto, name::Symbol) + if name === :suite + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :inKey + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :inIv + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :outKey + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :outIv + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct LocatedBlocksProto <: ProtoType - fileLength::UInt64 - blocks::Base.Vector{LocatedBlockProto} - underConstruction::Bool - lastBlock::LocatedBlockProto - isLastBlockComplete::Bool - fileEncryptionInfo::FileEncryptionInfoProto - LocatedBlocksProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct LocatedBlocksProto -const __req_LocatedBlocksProto = Symbol[:fileLength,:underConstruction,:isLastBlockComplete] -meta(t::Type{LocatedBlocksProto}) = meta(t, __req_LocatedBlocksProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) - -struct __enum_HdfsFileStatusProto_FileType <: ProtoEnum - IS_DIR::Int32 - IS_FILE::Int32 - IS_SYMLINK::Int32 - __enum_HdfsFileStatusProto_FileType() = new(1,2,3) -end #struct __enum_HdfsFileStatusProto_FileType -const HdfsFileStatusProto_FileType = __enum_HdfsFileStatusProto_FileType() + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function LocatedBlocksProto(; kwargs...) + obj = new(meta(LocatedBlocksProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct LocatedBlocksProto +const __meta_LocatedBlocksProto = Ref{ProtoMeta}() +function meta(::Type{LocatedBlocksProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_LocatedBlocksProto) + __meta_LocatedBlocksProto[] = target = ProtoMeta(LocatedBlocksProto) + req = Symbol[:fileLength,:underConstruction,:isLastBlockComplete] + allflds = Pair{Symbol,Union{Type,String}}[:fileLength => UInt64, :blocks => Base.Vector{LocatedBlockProto}, :underConstruction => Bool, :lastBlock => LocatedBlockProto, :isLastBlockComplete => Bool, :fileEncryptionInfo => FileEncryptionInfoProto] + meta(target, LocatedBlocksProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_LocatedBlocksProto[] + end +end +function Base.getproperty(obj::LocatedBlocksProto, name::Symbol) + if name === :fileLength + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :blocks + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{LocatedBlockProto} + elseif name === :underConstruction + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :lastBlock + return (obj.__protobuf_jl_internal_values[name])::LocatedBlockProto + elseif name === :isLastBlockComplete + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :fileEncryptionInfo + return (obj.__protobuf_jl_internal_values[name])::FileEncryptionInfoProto + else + getfield(obj, name) + end +end + +const HdfsFileStatusProto_FileType = (;[ + Symbol("IS_DIR") => Int32(1), + Symbol("IS_FILE") => Int32(2), + Symbol("IS_SYMLINK") => Int32(3), +]...) mutable struct HdfsFileStatusProto <: ProtoType - fileType::Int32 - path::Array{UInt8,1} - length::UInt64 - permission::FsPermissionProto - owner::AbstractString - group::AbstractString - modification_time::UInt64 - access_time::UInt64 - symlink::Array{UInt8,1} - block_replication::UInt32 - blocksize::UInt64 - locations::LocatedBlocksProto - fileId::UInt64 - childrenNum::Int32 - fileEncryptionInfo::FileEncryptionInfoProto - storagePolicy::UInt32 - HdfsFileStatusProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct HdfsFileStatusProto -const __req_HdfsFileStatusProto = Symbol[:fileType,:path,:length,:permission,:owner,:group,:modification_time,:access_time] -const __val_HdfsFileStatusProto = Dict(:block_replication => 0, :blocksize => 0, :fileId => 0, :childrenNum => -1, :storagePolicy => 0) -meta(t::Type{HdfsFileStatusProto}) = meta(t, __req_HdfsFileStatusProto, ProtoBuf.DEF_FNUM, __val_HdfsFileStatusProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function HdfsFileStatusProto(; kwargs...) + obj = new(meta(HdfsFileStatusProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct HdfsFileStatusProto +const __meta_HdfsFileStatusProto = Ref{ProtoMeta}() +function meta(::Type{HdfsFileStatusProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_HdfsFileStatusProto) + __meta_HdfsFileStatusProto[] = target = ProtoMeta(HdfsFileStatusProto) + req = Symbol[:fileType,:path,:length,:permission,:owner,:group,:modification_time,:access_time] + val = Dict{Symbol,Any}(:block_replication => 0, :blocksize => 0, :fileId => 0, :childrenNum => -1, :storagePolicy => 0) + allflds = Pair{Symbol,Union{Type,String}}[:fileType => Int32, :path => Array{UInt8,1}, :length => UInt64, :permission => FsPermissionProto, :owner => AbstractString, :group => AbstractString, :modification_time => UInt64, :access_time => UInt64, :symlink => Array{UInt8,1}, :block_replication => UInt32, :blocksize => UInt64, :locations => LocatedBlocksProto, :fileId => UInt64, :childrenNum => Int32, :fileEncryptionInfo => FileEncryptionInfoProto, :storagePolicy => UInt32] + meta(target, HdfsFileStatusProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_HdfsFileStatusProto[] + end +end +function Base.getproperty(obj::HdfsFileStatusProto, name::Symbol) + if name === :fileType + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :path + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :length + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :permission + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :owner + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :group + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :modification_time + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :access_time + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :symlink + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :block_replication + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :blocksize + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :locations + return (obj.__protobuf_jl_internal_values[name])::LocatedBlocksProto + elseif name === :fileId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :childrenNum + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :fileEncryptionInfo + return (obj.__protobuf_jl_internal_values[name])::FileEncryptionInfoProto + elseif name === :storagePolicy + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct FsServerDefaultsProto <: ProtoType - blockSize::UInt64 - bytesPerChecksum::UInt32 - writePacketSize::UInt32 - replication::UInt32 - fileBufferSize::UInt32 - encryptDataTransfer::Bool - trashInterval::UInt64 - checksumType::Int32 - keyProviderUri::AbstractString - policyId::UInt32 - FsServerDefaultsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FsServerDefaultsProto -const __req_FsServerDefaultsProto = Symbol[:blockSize,:bytesPerChecksum,:writePacketSize,:replication,:fileBufferSize] -const __val_FsServerDefaultsProto = Dict(:encryptDataTransfer => false, :trashInterval => 0, :checksumType => ChecksumTypeProto.CHECKSUM_CRC32, :policyId => 0) -meta(t::Type{FsServerDefaultsProto}) = meta(t, __req_FsServerDefaultsProto, ProtoBuf.DEF_FNUM, __val_FsServerDefaultsProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FsServerDefaultsProto(; kwargs...) + obj = new(meta(FsServerDefaultsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FsServerDefaultsProto +const __meta_FsServerDefaultsProto = Ref{ProtoMeta}() +function meta(::Type{FsServerDefaultsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FsServerDefaultsProto) + __meta_FsServerDefaultsProto[] = target = ProtoMeta(FsServerDefaultsProto) + req = Symbol[:blockSize,:bytesPerChecksum,:writePacketSize,:replication,:fileBufferSize] + val = Dict{Symbol,Any}(:encryptDataTransfer => false, :trashInterval => 0, :checksumType => ChecksumTypeProto.CHECKSUM_CRC32, :policyId => 0) + allflds = Pair{Symbol,Union{Type,String}}[:blockSize => UInt64, :bytesPerChecksum => UInt32, :writePacketSize => UInt32, :replication => UInt32, :fileBufferSize => UInt32, :encryptDataTransfer => Bool, :trashInterval => UInt64, :checksumType => Int32, :keyProviderUri => AbstractString, :policyId => UInt32] + meta(target, FsServerDefaultsProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FsServerDefaultsProto[] + end +end +function Base.getproperty(obj::FsServerDefaultsProto, name::Symbol) + if name === :blockSize + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :bytesPerChecksum + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :writePacketSize + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :replication + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :fileBufferSize + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :encryptDataTransfer + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :trashInterval + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :checksumType + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :keyProviderUri + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :policyId + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct DirectoryListingProto <: ProtoType - partialListing::Base.Vector{HdfsFileStatusProto} - remainingEntries::UInt32 - DirectoryListingProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct DirectoryListingProto -const __req_DirectoryListingProto = Symbol[:remainingEntries] -meta(t::Type{DirectoryListingProto}) = meta(t, __req_DirectoryListingProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function DirectoryListingProto(; kwargs...) + obj = new(meta(DirectoryListingProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct DirectoryListingProto +const __meta_DirectoryListingProto = Ref{ProtoMeta}() +function meta(::Type{DirectoryListingProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_DirectoryListingProto) + __meta_DirectoryListingProto[] = target = ProtoMeta(DirectoryListingProto) + req = Symbol[:remainingEntries] + allflds = Pair{Symbol,Union{Type,String}}[:partialListing => Base.Vector{HdfsFileStatusProto}, :remainingEntries => UInt32] + meta(target, DirectoryListingProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_DirectoryListingProto[] + end +end +function Base.getproperty(obj::DirectoryListingProto, name::Symbol) + if name === :partialListing + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{HdfsFileStatusProto} + elseif name === :remainingEntries + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct SnapshottableDirectoryStatusProto <: ProtoType - dirStatus::HdfsFileStatusProto - snapshot_quota::UInt32 - snapshot_number::UInt32 - parent_fullpath::Array{UInt8,1} - SnapshottableDirectoryStatusProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SnapshottableDirectoryStatusProto -const __req_SnapshottableDirectoryStatusProto = Symbol[:dirStatus,:snapshot_quota,:snapshot_number,:parent_fullpath] -meta(t::Type{SnapshottableDirectoryStatusProto}) = meta(t, __req_SnapshottableDirectoryStatusProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SnapshottableDirectoryStatusProto(; kwargs...) + obj = new(meta(SnapshottableDirectoryStatusProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SnapshottableDirectoryStatusProto +const __meta_SnapshottableDirectoryStatusProto = Ref{ProtoMeta}() +function meta(::Type{SnapshottableDirectoryStatusProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SnapshottableDirectoryStatusProto) + __meta_SnapshottableDirectoryStatusProto[] = target = ProtoMeta(SnapshottableDirectoryStatusProto) + req = Symbol[:dirStatus,:snapshot_quota,:snapshot_number,:parent_fullpath] + allflds = Pair{Symbol,Union{Type,String}}[:dirStatus => HdfsFileStatusProto, :snapshot_quota => UInt32, :snapshot_number => UInt32, :parent_fullpath => Array{UInt8,1}] + meta(target, SnapshottableDirectoryStatusProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SnapshottableDirectoryStatusProto[] + end +end +function Base.getproperty(obj::SnapshottableDirectoryStatusProto, name::Symbol) + if name === :dirStatus + return (obj.__protobuf_jl_internal_values[name])::HdfsFileStatusProto + elseif name === :snapshot_quota + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :snapshot_number + return (obj.__protobuf_jl_internal_values[name])::UInt32 + elseif name === :parent_fullpath + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct SnapshottableDirectoryListingProto <: ProtoType - snapshottableDirListing::Base.Vector{SnapshottableDirectoryStatusProto} - SnapshottableDirectoryListingProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SnapshottableDirectoryListingProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SnapshottableDirectoryListingProto(; kwargs...) + obj = new(meta(SnapshottableDirectoryListingProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SnapshottableDirectoryListingProto +const __meta_SnapshottableDirectoryListingProto = Ref{ProtoMeta}() +function meta(::Type{SnapshottableDirectoryListingProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SnapshottableDirectoryListingProto) + __meta_SnapshottableDirectoryListingProto[] = target = ProtoMeta(SnapshottableDirectoryListingProto) + allflds = Pair{Symbol,Union{Type,String}}[:snapshottableDirListing => Base.Vector{SnapshottableDirectoryStatusProto}] + meta(target, SnapshottableDirectoryListingProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SnapshottableDirectoryListingProto[] + end +end +function Base.getproperty(obj::SnapshottableDirectoryListingProto, name::Symbol) + if name === :snapshottableDirListing + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{SnapshottableDirectoryStatusProto} + else + getfield(obj, name) + end +end mutable struct SnapshotDiffReportEntryProto <: ProtoType - fullpath::Array{UInt8,1} - modificationLabel::AbstractString - targetPath::Array{UInt8,1} - SnapshotDiffReportEntryProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SnapshotDiffReportEntryProto -const __req_SnapshotDiffReportEntryProto = Symbol[:fullpath,:modificationLabel] -meta(t::Type{SnapshotDiffReportEntryProto}) = meta(t, __req_SnapshotDiffReportEntryProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SnapshotDiffReportEntryProto(; kwargs...) + obj = new(meta(SnapshotDiffReportEntryProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SnapshotDiffReportEntryProto +const __meta_SnapshotDiffReportEntryProto = Ref{ProtoMeta}() +function meta(::Type{SnapshotDiffReportEntryProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SnapshotDiffReportEntryProto) + __meta_SnapshotDiffReportEntryProto[] = target = ProtoMeta(SnapshotDiffReportEntryProto) + req = Symbol[:fullpath,:modificationLabel] + allflds = Pair{Symbol,Union{Type,String}}[:fullpath => Array{UInt8,1}, :modificationLabel => AbstractString, :targetPath => Array{UInt8,1}] + meta(target, SnapshotDiffReportEntryProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SnapshotDiffReportEntryProto[] + end +end +function Base.getproperty(obj::SnapshotDiffReportEntryProto, name::Symbol) + if name === :fullpath + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :modificationLabel + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :targetPath + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct SnapshotDiffReportProto <: ProtoType - snapshotRoot::AbstractString - fromSnapshot::AbstractString - toSnapshot::AbstractString - diffReportEntries::Base.Vector{SnapshotDiffReportEntryProto} - SnapshotDiffReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SnapshotDiffReportProto -const __req_SnapshotDiffReportProto = Symbol[:snapshotRoot,:fromSnapshot,:toSnapshot] -meta(t::Type{SnapshotDiffReportProto}) = meta(t, __req_SnapshotDiffReportProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SnapshotDiffReportProto(; kwargs...) + obj = new(meta(SnapshotDiffReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SnapshotDiffReportProto +const __meta_SnapshotDiffReportProto = Ref{ProtoMeta}() +function meta(::Type{SnapshotDiffReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SnapshotDiffReportProto) + __meta_SnapshotDiffReportProto[] = target = ProtoMeta(SnapshotDiffReportProto) + req = Symbol[:snapshotRoot,:fromSnapshot,:toSnapshot] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotRoot => AbstractString, :fromSnapshot => AbstractString, :toSnapshot => AbstractString, :diffReportEntries => Base.Vector{SnapshotDiffReportEntryProto}] + meta(target, SnapshotDiffReportProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SnapshotDiffReportProto[] + end +end +function Base.getproperty(obj::SnapshotDiffReportProto, name::Symbol) + if name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :fromSnapshot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :toSnapshot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :diffReportEntries + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{SnapshotDiffReportEntryProto} + else + getfield(obj, name) + end +end mutable struct BlockProto <: ProtoType - blockId::UInt64 - genStamp::UInt64 - numBytes::UInt64 - BlockProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct BlockProto -const __req_BlockProto = Symbol[:blockId,:genStamp] -const __val_BlockProto = Dict(:numBytes => 0) -meta(t::Type{BlockProto}) = meta(t, __req_BlockProto, ProtoBuf.DEF_FNUM, __val_BlockProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function BlockProto(; kwargs...) + obj = new(meta(BlockProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct BlockProto +const __meta_BlockProto = Ref{ProtoMeta}() +function meta(::Type{BlockProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_BlockProto) + __meta_BlockProto[] = target = ProtoMeta(BlockProto) + req = Symbol[:blockId,:genStamp] + val = Dict{Symbol,Any}(:numBytes => 0) + allflds = Pair{Symbol,Union{Type,String}}[:blockId => UInt64, :genStamp => UInt64, :numBytes => UInt64] + meta(target, BlockProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_BlockProto[] + end +end +function Base.getproperty(obj::BlockProto, name::Symbol) + if name === :blockId + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :genStamp + return (obj.__protobuf_jl_internal_values[name])::UInt64 + elseif name === :numBytes + return (obj.__protobuf_jl_internal_values[name])::UInt64 + else + getfield(obj, name) + end +end mutable struct SnapshotInfoProto <: ProtoType - snapshotName::AbstractString - snapshotRoot::AbstractString - permission::FsPermissionProto - owner::AbstractString - group::AbstractString - createTime::AbstractString - SnapshotInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SnapshotInfoProto -const __req_SnapshotInfoProto = Symbol[:snapshotName,:snapshotRoot,:permission,:owner,:group,:createTime] -meta(t::Type{SnapshotInfoProto}) = meta(t, __req_SnapshotInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SnapshotInfoProto(; kwargs...) + obj = new(meta(SnapshotInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SnapshotInfoProto +const __meta_SnapshotInfoProto = Ref{ProtoMeta}() +function meta(::Type{SnapshotInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SnapshotInfoProto) + __meta_SnapshotInfoProto[] = target = ProtoMeta(SnapshotInfoProto) + req = Symbol[:snapshotName,:snapshotRoot,:permission,:owner,:group,:createTime] + allflds = Pair{Symbol,Union{Type,String}}[:snapshotName => AbstractString, :snapshotRoot => AbstractString, :permission => FsPermissionProto, :owner => AbstractString, :group => AbstractString, :createTime => AbstractString] + meta(target, SnapshotInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SnapshotInfoProto[] + end +end +function Base.getproperty(obj::SnapshotInfoProto, name::Symbol) + if name === :snapshotName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :snapshotRoot + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :permission + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :owner + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :group + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :createTime + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct RollingUpgradeStatusProto <: ProtoType - blockPoolId::AbstractString - finalized::Bool - RollingUpgradeStatusProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollingUpgradeStatusProto -const __req_RollingUpgradeStatusProto = Symbol[:blockPoolId] -const __val_RollingUpgradeStatusProto = Dict(:finalized => false) -meta(t::Type{RollingUpgradeStatusProto}) = meta(t, __req_RollingUpgradeStatusProto, ProtoBuf.DEF_FNUM, __val_RollingUpgradeStatusProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollingUpgradeStatusProto(; kwargs...) + obj = new(meta(RollingUpgradeStatusProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollingUpgradeStatusProto +const __meta_RollingUpgradeStatusProto = Ref{ProtoMeta}() +function meta(::Type{RollingUpgradeStatusProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollingUpgradeStatusProto) + __meta_RollingUpgradeStatusProto[] = target = ProtoMeta(RollingUpgradeStatusProto) + req = Symbol[:blockPoolId] + val = Dict{Symbol,Any}(:finalized => false) + allflds = Pair{Symbol,Union{Type,String}}[:blockPoolId => AbstractString, :finalized => Bool] + meta(target, RollingUpgradeStatusProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollingUpgradeStatusProto[] + end +end +function Base.getproperty(obj::RollingUpgradeStatusProto, name::Symbol) + if name === :blockPoolId + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :finalized + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end export StorageTypeProto, CipherSuiteProto, CryptoProtocolVersionProto, ChecksumTypeProto, ExtendedBlockProto, DatanodeIDProto, DatanodeLocalInfoProto, DatanodeVolumeInfoProto, DatanodeInfosProto, DatanodeInfoProto_AdminState, DatanodeInfoProto, DatanodeStorageProto_StorageState, DatanodeStorageProto, StorageReportProto, ContentSummaryProto, QuotaUsageProto, StorageTypeQuotaInfosProto, StorageTypeQuotaInfoProto, CorruptFileBlocksProto, FsPermissionProto, StorageTypesProto, BlockStoragePolicyProto, LocatedBlockProto, DataEncryptionKeyProto, FileEncryptionInfoProto, PerFileEncryptionInfoProto, ZoneEncryptionInfoProto, CipherOptionProto, LocatedBlocksProto, HdfsFileStatusProto_FileType, HdfsFileStatusProto, FsServerDefaultsProto, DirectoryListingProto, SnapshottableDirectoryStatusProto, SnapshottableDirectoryListingProto, SnapshotDiffReportEntryProto, SnapshotDiffReportProto, BlockProto, SnapshotInfoProto, RollingUpgradeStatusProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/inotify_pb.jl b/src/hadoop/inotify_pb.jl index e900bfc..6193c8f 100644 --- a/src/hadoop/inotify_pb.jl +++ b/src/hadoop/inotify_pb.jl @@ -1,141 +1,470 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta -struct __enum_EventType <: ProtoEnum - EVENT_CREATE::Int32 - EVENT_CLOSE::Int32 - EVENT_APPEND::Int32 - EVENT_RENAME::Int32 - EVENT_METADATA::Int32 - EVENT_UNLINK::Int32 - EVENT_TRUNCATE::Int32 - __enum_EventType() = new(0,1,2,3,4,5,6) -end #struct __enum_EventType -const EventType = __enum_EventType() - -struct __enum_INodeType <: ProtoEnum - I_TYPE_FILE::Int32 - I_TYPE_DIRECTORY::Int32 - I_TYPE_SYMLINK::Int32 - __enum_INodeType() = new(0,1,2) -end #struct __enum_INodeType -const INodeType = __enum_INodeType() - -struct __enum_MetadataUpdateType <: ProtoEnum - META_TYPE_TIMES::Int32 - META_TYPE_REPLICATION::Int32 - META_TYPE_OWNER::Int32 - META_TYPE_PERMS::Int32 - META_TYPE_ACLS::Int32 - META_TYPE_XATTRS::Int32 - __enum_MetadataUpdateType() = new(0,1,2,3,4,5) -end #struct __enum_MetadataUpdateType -const MetadataUpdateType = __enum_MetadataUpdateType() +const EventType = (;[ + Symbol("EVENT_CREATE") => Int32(0), + Symbol("EVENT_CLOSE") => Int32(1), + Symbol("EVENT_APPEND") => Int32(2), + Symbol("EVENT_RENAME") => Int32(3), + Symbol("EVENT_METADATA") => Int32(4), + Symbol("EVENT_UNLINK") => Int32(5), + Symbol("EVENT_TRUNCATE") => Int32(6), +]...) + +const INodeType = (;[ + Symbol("I_TYPE_FILE") => Int32(0), + Symbol("I_TYPE_DIRECTORY") => Int32(1), + Symbol("I_TYPE_SYMLINK") => Int32(2), +]...) + +const MetadataUpdateType = (;[ + Symbol("META_TYPE_TIMES") => Int32(0), + Symbol("META_TYPE_REPLICATION") => Int32(1), + Symbol("META_TYPE_OWNER") => Int32(2), + Symbol("META_TYPE_PERMS") => Int32(3), + Symbol("META_TYPE_ACLS") => Int32(4), + Symbol("META_TYPE_XATTRS") => Int32(5), +]...) mutable struct EventProto <: ProtoType - _type::Int32 - contents::Array{UInt8,1} - EventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct EventProto -const __req_EventProto = Symbol[:_type,:contents] -meta(t::Type{EventProto}) = meta(t, __req_EventProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function EventProto(; kwargs...) + obj = new(meta(EventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct EventProto +const __meta_EventProto = Ref{ProtoMeta}() +function meta(::Type{EventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_EventProto) + __meta_EventProto[] = target = ProtoMeta(EventProto) + req = Symbol[:_type,:contents] + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32, :contents => Array{UInt8,1}] + meta(target, EventProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_EventProto[] + end +end +function Base.getproperty(obj::EventProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :contents + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct EventBatchProto <: ProtoType - txid::Int64 - events::Base.Vector{EventProto} - EventBatchProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct EventBatchProto -const __req_EventBatchProto = Symbol[:txid] -meta(t::Type{EventBatchProto}) = meta(t, __req_EventBatchProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function EventBatchProto(; kwargs...) + obj = new(meta(EventBatchProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct EventBatchProto +const __meta_EventBatchProto = Ref{ProtoMeta}() +function meta(::Type{EventBatchProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_EventBatchProto) + __meta_EventBatchProto[] = target = ProtoMeta(EventBatchProto) + req = Symbol[:txid] + allflds = Pair{Symbol,Union{Type,String}}[:txid => Int64, :events => Base.Vector{EventProto}] + meta(target, EventBatchProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_EventBatchProto[] + end +end +function Base.getproperty(obj::EventBatchProto, name::Symbol) + if name === :txid + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :events + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{EventProto} + else + getfield(obj, name) + end +end mutable struct CreateEventProto <: ProtoType - _type::Int32 - path::AbstractString - ctime::Int64 - ownerName::AbstractString - groupName::AbstractString - perms::FsPermissionProto - replication::Int32 - symlinkTarget::AbstractString - overwrite::Bool - defaultBlockSize::Int64 - CreateEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CreateEventProto -const __req_CreateEventProto = Symbol[:_type,:path,:ctime,:ownerName,:groupName,:perms] -const __val_CreateEventProto = Dict(:defaultBlockSize => 0) -meta(t::Type{CreateEventProto}) = meta(t, __req_CreateEventProto, ProtoBuf.DEF_FNUM, __val_CreateEventProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CreateEventProto(; kwargs...) + obj = new(meta(CreateEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CreateEventProto +const __meta_CreateEventProto = Ref{ProtoMeta}() +function meta(::Type{CreateEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CreateEventProto) + __meta_CreateEventProto[] = target = ProtoMeta(CreateEventProto) + req = Symbol[:_type,:path,:ctime,:ownerName,:groupName,:perms] + val = Dict{Symbol,Any}(:defaultBlockSize => 0) + allflds = Pair{Symbol,Union{Type,String}}[:_type => Int32, :path => AbstractString, :ctime => Int64, :ownerName => AbstractString, :groupName => AbstractString, :perms => FsPermissionProto, :replication => Int32, :symlinkTarget => AbstractString, :overwrite => Bool, :defaultBlockSize => Int64] + meta(target, CreateEventProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CreateEventProto[] + end +end +function Base.getproperty(obj::CreateEventProto, name::Symbol) + if name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :ctime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :ownerName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :groupName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :perms + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :replication + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :symlinkTarget + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :overwrite + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :defaultBlockSize + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct CloseEventProto <: ProtoType - path::AbstractString - fileSize::Int64 - timestamp::Int64 - CloseEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CloseEventProto -const __req_CloseEventProto = Symbol[:path,:fileSize,:timestamp] -meta(t::Type{CloseEventProto}) = meta(t, __req_CloseEventProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CloseEventProto(; kwargs...) + obj = new(meta(CloseEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CloseEventProto +const __meta_CloseEventProto = Ref{ProtoMeta}() +function meta(::Type{CloseEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CloseEventProto) + __meta_CloseEventProto[] = target = ProtoMeta(CloseEventProto) + req = Symbol[:path,:fileSize,:timestamp] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :fileSize => Int64, :timestamp => Int64] + meta(target, CloseEventProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CloseEventProto[] + end +end +function Base.getproperty(obj::CloseEventProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :fileSize + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct TruncateEventProto <: ProtoType - path::AbstractString - fileSize::Int64 - timestamp::Int64 - TruncateEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct TruncateEventProto -const __req_TruncateEventProto = Symbol[:path,:fileSize,:timestamp] -meta(t::Type{TruncateEventProto}) = meta(t, __req_TruncateEventProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function TruncateEventProto(; kwargs...) + obj = new(meta(TruncateEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct TruncateEventProto +const __meta_TruncateEventProto = Ref{ProtoMeta}() +function meta(::Type{TruncateEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_TruncateEventProto) + __meta_TruncateEventProto[] = target = ProtoMeta(TruncateEventProto) + req = Symbol[:path,:fileSize,:timestamp] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :fileSize => Int64, :timestamp => Int64] + meta(target, TruncateEventProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_TruncateEventProto[] + end +end +function Base.getproperty(obj::TruncateEventProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :fileSize + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct AppendEventProto <: ProtoType - path::AbstractString - newBlock::Bool - AppendEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AppendEventProto -const __req_AppendEventProto = Symbol[:path] -const __val_AppendEventProto = Dict(:newBlock => false) -meta(t::Type{AppendEventProto}) = meta(t, __req_AppendEventProto, ProtoBuf.DEF_FNUM, __val_AppendEventProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AppendEventProto(; kwargs...) + obj = new(meta(AppendEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AppendEventProto +const __meta_AppendEventProto = Ref{ProtoMeta}() +function meta(::Type{AppendEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AppendEventProto) + __meta_AppendEventProto[] = target = ProtoMeta(AppendEventProto) + req = Symbol[:path] + val = Dict{Symbol,Any}(:newBlock => false) + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :newBlock => Bool] + meta(target, AppendEventProto, allflds, req, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AppendEventProto[] + end +end +function Base.getproperty(obj::AppendEventProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :newBlock + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct RenameEventProto <: ProtoType - srcPath::AbstractString - destPath::AbstractString - timestamp::Int64 - RenameEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RenameEventProto -const __req_RenameEventProto = Symbol[:srcPath,:destPath,:timestamp] -meta(t::Type{RenameEventProto}) = meta(t, __req_RenameEventProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RenameEventProto(; kwargs...) + obj = new(meta(RenameEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RenameEventProto +const __meta_RenameEventProto = Ref{ProtoMeta}() +function meta(::Type{RenameEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RenameEventProto) + __meta_RenameEventProto[] = target = ProtoMeta(RenameEventProto) + req = Symbol[:srcPath,:destPath,:timestamp] + allflds = Pair{Symbol,Union{Type,String}}[:srcPath => AbstractString, :destPath => AbstractString, :timestamp => Int64] + meta(target, RenameEventProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RenameEventProto[] + end +end +function Base.getproperty(obj::RenameEventProto, name::Symbol) + if name === :srcPath + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :destPath + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct MetadataUpdateEventProto <: ProtoType - path::AbstractString - _type::Int32 - mtime::Int64 - atime::Int64 - replication::Int32 - ownerName::AbstractString - groupName::AbstractString - perms::FsPermissionProto - acls::Base.Vector{AclEntryProto} - xAttrs::Base.Vector{XAttrProto} - xAttrsRemoved::Bool - MetadataUpdateEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MetadataUpdateEventProto -const __req_MetadataUpdateEventProto = Symbol[:path,:_type] -meta(t::Type{MetadataUpdateEventProto}) = meta(t, __req_MetadataUpdateEventProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MetadataUpdateEventProto(; kwargs...) + obj = new(meta(MetadataUpdateEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MetadataUpdateEventProto +const __meta_MetadataUpdateEventProto = Ref{ProtoMeta}() +function meta(::Type{MetadataUpdateEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MetadataUpdateEventProto) + __meta_MetadataUpdateEventProto[] = target = ProtoMeta(MetadataUpdateEventProto) + req = Symbol[:path,:_type] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :_type => Int32, :mtime => Int64, :atime => Int64, :replication => Int32, :ownerName => AbstractString, :groupName => AbstractString, :perms => FsPermissionProto, :acls => Base.Vector{AclEntryProto}, :xAttrs => Base.Vector{XAttrProto}, :xAttrsRemoved => Bool] + meta(target, MetadataUpdateEventProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MetadataUpdateEventProto[] + end +end +function Base.getproperty(obj::MetadataUpdateEventProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :mtime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :atime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :replication + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :ownerName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :groupName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :perms + return (obj.__protobuf_jl_internal_values[name])::FsPermissionProto + elseif name === :acls + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AclEntryProto} + elseif name === :xAttrs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{XAttrProto} + elseif name === :xAttrsRemoved + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct UnlinkEventProto <: ProtoType - path::AbstractString - timestamp::Int64 - UnlinkEventProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UnlinkEventProto -const __req_UnlinkEventProto = Symbol[:path,:timestamp] -meta(t::Type{UnlinkEventProto}) = meta(t, __req_UnlinkEventProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UnlinkEventProto(; kwargs...) + obj = new(meta(UnlinkEventProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UnlinkEventProto +const __meta_UnlinkEventProto = Ref{ProtoMeta}() +function meta(::Type{UnlinkEventProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UnlinkEventProto) + __meta_UnlinkEventProto[] = target = ProtoMeta(UnlinkEventProto) + req = Symbol[:path,:timestamp] + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString, :timestamp => Int64] + meta(target, UnlinkEventProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UnlinkEventProto[] + end +end +function Base.getproperty(obj::UnlinkEventProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct EventsListProto <: ProtoType - events::Base.Vector{EventProto} - firstTxid::Int64 - lastTxid::Int64 - syncTxid::Int64 - batch::Base.Vector{EventBatchProto} - EventsListProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct EventsListProto -const __req_EventsListProto = Symbol[:firstTxid,:lastTxid,:syncTxid] -meta(t::Type{EventsListProto}) = meta(t, __req_EventsListProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function EventsListProto(; kwargs...) + obj = new(meta(EventsListProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct EventsListProto +const __meta_EventsListProto = Ref{ProtoMeta}() +function meta(::Type{EventsListProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_EventsListProto) + __meta_EventsListProto[] = target = ProtoMeta(EventsListProto) + req = Symbol[:firstTxid,:lastTxid,:syncTxid] + allflds = Pair{Symbol,Union{Type,String}}[:events => Base.Vector{EventProto}, :firstTxid => Int64, :lastTxid => Int64, :syncTxid => Int64, :batch => Base.Vector{EventBatchProto}] + meta(target, EventsListProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_EventsListProto[] + end +end +function Base.getproperty(obj::EventsListProto, name::Symbol) + if name === :events + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{EventProto} + elseif name === :firstTxid + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :lastTxid + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :syncTxid + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :batch + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{EventBatchProto} + else + getfield(obj, name) + end +end export EventType, INodeType, MetadataUpdateType, EventProto, EventBatchProto, CreateEventProto, CloseEventProto, TruncateEventProto, AppendEventProto, RenameEventProto, MetadataUpdateEventProto, UnlinkEventProto, EventsListProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/xattr_pb.jl b/src/hadoop/xattr_pb.jl index 6ba42ce..03cb3ec 100644 --- a/src/hadoop/xattr_pb.jl +++ b/src/hadoop/xattr_pb.jl @@ -1,81 +1,347 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta -struct __enum_XAttrSetFlagProto <: ProtoEnum - XATTR_CREATE::Int32 - XATTR_REPLACE::Int32 - __enum_XAttrSetFlagProto() = new(1,2) -end #struct __enum_XAttrSetFlagProto -const XAttrSetFlagProto = __enum_XAttrSetFlagProto() - -struct __enum_XAttrProto_XAttrNamespaceProto <: ProtoEnum - USER::Int32 - TRUSTED::Int32 - SECURITY::Int32 - SYSTEM::Int32 - RAW::Int32 - __enum_XAttrProto_XAttrNamespaceProto() = new(0,1,2,3,4) -end #struct __enum_XAttrProto_XAttrNamespaceProto -const XAttrProto_XAttrNamespaceProto = __enum_XAttrProto_XAttrNamespaceProto() +const XAttrSetFlagProto = (;[ + Symbol("XATTR_CREATE") => Int32(1), + Symbol("XATTR_REPLACE") => Int32(2), +]...) + +const XAttrProto_XAttrNamespaceProto = (;[ + Symbol("USER") => Int32(0), + Symbol("TRUSTED") => Int32(1), + Symbol("SECURITY") => Int32(2), + Symbol("SYSTEM") => Int32(3), + Symbol("RAW") => Int32(4), +]...) mutable struct XAttrProto <: ProtoType - namespace::Int32 - name::AbstractString - value::Array{UInt8,1} - XAttrProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct XAttrProto -const __req_XAttrProto = Symbol[:namespace,:name] -meta(t::Type{XAttrProto}) = meta(t, __req_XAttrProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function XAttrProto(; kwargs...) + obj = new(meta(XAttrProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct XAttrProto +const __meta_XAttrProto = Ref{ProtoMeta}() +function meta(::Type{XAttrProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_XAttrProto) + __meta_XAttrProto[] = target = ProtoMeta(XAttrProto) + req = Symbol[:namespace,:name] + allflds = Pair{Symbol,Union{Type,String}}[:namespace => Int32, :name => AbstractString, :value => Array{UInt8,1}] + meta(target, XAttrProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_XAttrProto[] + end +end +function Base.getproperty(obj::XAttrProto, name::Symbol) + if name === :namespace + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :value + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct SetXAttrRequestProto <: ProtoType - src::AbstractString - xAttr::XAttrProto - flag::UInt32 - SetXAttrRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetXAttrRequestProto -const __req_SetXAttrRequestProto = Symbol[:src] -meta(t::Type{SetXAttrRequestProto}) = meta(t, __req_SetXAttrRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetXAttrRequestProto(; kwargs...) + obj = new(meta(SetXAttrRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetXAttrRequestProto +const __meta_SetXAttrRequestProto = Ref{ProtoMeta}() +function meta(::Type{SetXAttrRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetXAttrRequestProto) + __meta_SetXAttrRequestProto[] = target = ProtoMeta(SetXAttrRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :xAttr => XAttrProto, :flag => UInt32] + meta(target, SetXAttrRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetXAttrRequestProto[] + end +end +function Base.getproperty(obj::SetXAttrRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :xAttr + return (obj.__protobuf_jl_internal_values[name])::XAttrProto + elseif name === :flag + return (obj.__protobuf_jl_internal_values[name])::UInt32 + else + getfield(obj, name) + end +end mutable struct SetXAttrResponseProto <: ProtoType - SetXAttrResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SetXAttrResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SetXAttrResponseProto(; kwargs...) + obj = new(meta(SetXAttrResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SetXAttrResponseProto +const __meta_SetXAttrResponseProto = Ref{ProtoMeta}() +function meta(::Type{SetXAttrResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SetXAttrResponseProto) + __meta_SetXAttrResponseProto[] = target = ProtoMeta(SetXAttrResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SetXAttrResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SetXAttrResponseProto[] + end +end mutable struct GetXAttrsRequestProto <: ProtoType - src::AbstractString - xAttrs::Base.Vector{XAttrProto} - GetXAttrsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetXAttrsRequestProto -const __req_GetXAttrsRequestProto = Symbol[:src] -meta(t::Type{GetXAttrsRequestProto}) = meta(t, __req_GetXAttrsRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetXAttrsRequestProto(; kwargs...) + obj = new(meta(GetXAttrsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetXAttrsRequestProto +const __meta_GetXAttrsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetXAttrsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetXAttrsRequestProto) + __meta_GetXAttrsRequestProto[] = target = ProtoMeta(GetXAttrsRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :xAttrs => Base.Vector{XAttrProto}] + meta(target, GetXAttrsRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetXAttrsRequestProto[] + end +end +function Base.getproperty(obj::GetXAttrsRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :xAttrs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{XAttrProto} + else + getfield(obj, name) + end +end mutable struct GetXAttrsResponseProto <: ProtoType - xAttrs::Base.Vector{XAttrProto} - GetXAttrsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetXAttrsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetXAttrsResponseProto(; kwargs...) + obj = new(meta(GetXAttrsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetXAttrsResponseProto +const __meta_GetXAttrsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetXAttrsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetXAttrsResponseProto) + __meta_GetXAttrsResponseProto[] = target = ProtoMeta(GetXAttrsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:xAttrs => Base.Vector{XAttrProto}] + meta(target, GetXAttrsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetXAttrsResponseProto[] + end +end +function Base.getproperty(obj::GetXAttrsResponseProto, name::Symbol) + if name === :xAttrs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{XAttrProto} + else + getfield(obj, name) + end +end mutable struct ListXAttrsRequestProto <: ProtoType - src::AbstractString - ListXAttrsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListXAttrsRequestProto -const __req_ListXAttrsRequestProto = Symbol[:src] -meta(t::Type{ListXAttrsRequestProto}) = meta(t, __req_ListXAttrsRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListXAttrsRequestProto(; kwargs...) + obj = new(meta(ListXAttrsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListXAttrsRequestProto +const __meta_ListXAttrsRequestProto = Ref{ProtoMeta}() +function meta(::Type{ListXAttrsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListXAttrsRequestProto) + __meta_ListXAttrsRequestProto[] = target = ProtoMeta(ListXAttrsRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString] + meta(target, ListXAttrsRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListXAttrsRequestProto[] + end +end +function Base.getproperty(obj::ListXAttrsRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ListXAttrsResponseProto <: ProtoType - xAttrs::Base.Vector{XAttrProto} - ListXAttrsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ListXAttrsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ListXAttrsResponseProto(; kwargs...) + obj = new(meta(ListXAttrsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ListXAttrsResponseProto +const __meta_ListXAttrsResponseProto = Ref{ProtoMeta}() +function meta(::Type{ListXAttrsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ListXAttrsResponseProto) + __meta_ListXAttrsResponseProto[] = target = ProtoMeta(ListXAttrsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:xAttrs => Base.Vector{XAttrProto}] + meta(target, ListXAttrsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ListXAttrsResponseProto[] + end +end +function Base.getproperty(obj::ListXAttrsResponseProto, name::Symbol) + if name === :xAttrs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{XAttrProto} + else + getfield(obj, name) + end +end mutable struct RemoveXAttrRequestProto <: ProtoType - src::AbstractString - xAttr::XAttrProto - RemoveXAttrRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveXAttrRequestProto -const __req_RemoveXAttrRequestProto = Symbol[:src] -meta(t::Type{RemoveXAttrRequestProto}) = meta(t, __req_RemoveXAttrRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveXAttrRequestProto(; kwargs...) + obj = new(meta(RemoveXAttrRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveXAttrRequestProto +const __meta_RemoveXAttrRequestProto = Ref{ProtoMeta}() +function meta(::Type{RemoveXAttrRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveXAttrRequestProto) + __meta_RemoveXAttrRequestProto[] = target = ProtoMeta(RemoveXAttrRequestProto) + req = Symbol[:src] + allflds = Pair{Symbol,Union{Type,String}}[:src => AbstractString, :xAttr => XAttrProto] + meta(target, RemoveXAttrRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveXAttrRequestProto[] + end +end +function Base.getproperty(obj::RemoveXAttrRequestProto, name::Symbol) + if name === :src + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :xAttr + return (obj.__protobuf_jl_internal_values[name])::XAttrProto + else + getfield(obj, name) + end +end mutable struct RemoveXAttrResponseProto <: ProtoType - RemoveXAttrResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RemoveXAttrResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RemoveXAttrResponseProto(; kwargs...) + obj = new(meta(RemoveXAttrResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RemoveXAttrResponseProto +const __meta_RemoveXAttrResponseProto = Ref{ProtoMeta}() +function meta(::Type{RemoveXAttrResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RemoveXAttrResponseProto) + __meta_RemoveXAttrResponseProto[] = target = ProtoMeta(RemoveXAttrResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RemoveXAttrResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RemoveXAttrResponseProto[] + end +end export XAttrSetFlagProto, XAttrProto_XAttrNamespaceProto, XAttrProto, SetXAttrRequestProto, SetXAttrResponseProto, GetXAttrsRequestProto, GetXAttrsResponseProto, ListXAttrsRequestProto, ListXAttrsResponseProto, RemoveXAttrRequestProto, RemoveXAttrResponseProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/yarn_protos_pb.jl b/src/hadoop/yarn_protos_pb.jl index 9d92e34..d45da3e 100644 --- a/src/hadoop/yarn_protos_pb.jl +++ b/src/hadoop/yarn_protos_pb.jl @@ -1,780 +1,2876 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop -struct __enum_ResourceTypesProto <: ProtoEnum - COUNTABLE::Int32 - __enum_ResourceTypesProto() = new(0) -end #struct __enum_ResourceTypesProto -const ResourceTypesProto = __enum_ResourceTypesProto() - -struct __enum_ContainerStateProto <: ProtoEnum - C_NEW::Int32 - C_RUNNING::Int32 - C_COMPLETE::Int32 - __enum_ContainerStateProto() = new(1,2,3) -end #struct __enum_ContainerStateProto -const ContainerStateProto = __enum_ContainerStateProto() - -struct __enum_ContainerSubStateProto <: ProtoEnum - CSS_SCHEDULED::Int32 - CSS_RUNNING::Int32 - CSS_PAUSED::Int32 - CSS_COMPLETING::Int32 - CSS_DONE::Int32 - __enum_ContainerSubStateProto() = new(1,2,3,4,5) -end #struct __enum_ContainerSubStateProto -const ContainerSubStateProto = __enum_ContainerSubStateProto() - -struct __enum_YarnApplicationStateProto <: ProtoEnum - NEW::Int32 - NEW_SAVING::Int32 - SUBMITTED::Int32 - ACCEPTED::Int32 - RUNNING::Int32 - FINISHED::Int32 - FAILED::Int32 - KILLED::Int32 - __enum_YarnApplicationStateProto() = new(1,2,3,4,5,6,7,8) -end #struct __enum_YarnApplicationStateProto -const YarnApplicationStateProto = __enum_YarnApplicationStateProto() - -struct __enum_YarnApplicationAttemptStateProto <: ProtoEnum - APP_ATTEMPT_NEW::Int32 - APP_ATTEMPT_SUBMITTED::Int32 - APP_ATTEMPT_SCHEDULED::Int32 - APP_ATTEMPT_ALLOCATED_SAVING::Int32 - APP_ATTEMPT_ALLOCATED::Int32 - APP_ATTEMPT_LAUNCHED::Int32 - APP_ATTEMPT_FAILED::Int32 - APP_ATTEMPT_RUNNING::Int32 - APP_ATTEMPT_FINISHING::Int32 - APP_ATTEMPT_FINISHED::Int32 - APP_ATTEMPT_KILLED::Int32 - __enum_YarnApplicationAttemptStateProto() = new(1,2,3,4,5,6,7,8,9,10,11) -end #struct __enum_YarnApplicationAttemptStateProto -const YarnApplicationAttemptStateProto = __enum_YarnApplicationAttemptStateProto() - -struct __enum_FinalApplicationStatusProto <: ProtoEnum - APP_UNDEFINED::Int32 - APP_SUCCEEDED::Int32 - APP_FAILED::Int32 - APP_KILLED::Int32 - APP_ENDED::Int32 - __enum_FinalApplicationStatusProto() = new(0,1,2,3,4) -end #struct __enum_FinalApplicationStatusProto -const FinalApplicationStatusProto = __enum_FinalApplicationStatusProto() - -struct __enum_LocalResourceVisibilityProto <: ProtoEnum - PUBLIC::Int32 - PRIVATE::Int32 - APPLICATION::Int32 - __enum_LocalResourceVisibilityProto() = new(1,2,3) -end #struct __enum_LocalResourceVisibilityProto -const LocalResourceVisibilityProto = __enum_LocalResourceVisibilityProto() - -struct __enum_LocalResourceTypeProto <: ProtoEnum - ARCHIVE::Int32 - FILE::Int32 - PATTERN::Int32 - __enum_LocalResourceTypeProto() = new(1,2,3) -end #struct __enum_LocalResourceTypeProto -const LocalResourceTypeProto = __enum_LocalResourceTypeProto() - -struct __enum_LogAggregationStatusProto <: ProtoEnum - LOG_DISABLED::Int32 - LOG_NOT_START::Int32 - LOG_RUNNING::Int32 - LOG_SUCCEEDED::Int32 - LOG_FAILED::Int32 - LOG_TIME_OUT::Int32 - LOG_RUNNING_WITH_FAILURE::Int32 - __enum_LogAggregationStatusProto() = new(1,2,3,4,5,6,7) -end #struct __enum_LogAggregationStatusProto -const LogAggregationStatusProto = __enum_LogAggregationStatusProto() - -struct __enum_NodeStateProto <: ProtoEnum - NS_NEW::Int32 - NS_RUNNING::Int32 - NS_UNHEALTHY::Int32 - NS_DECOMMISSIONED::Int32 - NS_LOST::Int32 - NS_REBOOTED::Int32 - NS_DECOMMISSIONING::Int32 - NS_SHUTDOWN::Int32 - __enum_NodeStateProto() = new(1,2,3,4,5,6,7,8) -end #struct __enum_NodeStateProto -const NodeStateProto = __enum_NodeStateProto() - -struct __enum_ContainerTypeProto <: ProtoEnum - APPLICATION_MASTER::Int32 - TASK::Int32 - __enum_ContainerTypeProto() = new(1,2) -end #struct __enum_ContainerTypeProto -const ContainerTypeProto = __enum_ContainerTypeProto() - -struct __enum_ExecutionTypeProto <: ProtoEnum - GUARANTEED::Int32 - OPPORTUNISTIC::Int32 - __enum_ExecutionTypeProto() = new(1,2) -end #struct __enum_ExecutionTypeProto -const ExecutionTypeProto = __enum_ExecutionTypeProto() - -struct __enum_AMCommandProto <: ProtoEnum - AM_RESYNC::Int32 - AM_SHUTDOWN::Int32 - __enum_AMCommandProto() = new(1,2) -end #struct __enum_AMCommandProto -const AMCommandProto = __enum_AMCommandProto() - -struct __enum_ApplicationTimeoutTypeProto <: ProtoEnum - APP_TIMEOUT_LIFETIME::Int32 - __enum_ApplicationTimeoutTypeProto() = new(1) -end #struct __enum_ApplicationTimeoutTypeProto -const ApplicationTimeoutTypeProto = __enum_ApplicationTimeoutTypeProto() - -struct __enum_ApplicationAccessTypeProto <: ProtoEnum - APPACCESS_VIEW_APP::Int32 - APPACCESS_MODIFY_APP::Int32 - __enum_ApplicationAccessTypeProto() = new(1,2) -end #struct __enum_ApplicationAccessTypeProto -const ApplicationAccessTypeProto = __enum_ApplicationAccessTypeProto() - -struct __enum_QueueStateProto <: ProtoEnum - Q_STOPPED::Int32 - Q_RUNNING::Int32 - Q_DRAINING::Int32 - __enum_QueueStateProto() = new(1,2,3) -end #struct __enum_QueueStateProto -const QueueStateProto = __enum_QueueStateProto() - -struct __enum_QueueACLProto <: ProtoEnum - QACL_SUBMIT_APPLICATIONS::Int32 - QACL_ADMINISTER_QUEUE::Int32 - __enum_QueueACLProto() = new(1,2) -end #struct __enum_QueueACLProto -const QueueACLProto = __enum_QueueACLProto() - -struct __enum_SignalContainerCommandProto <: ProtoEnum - OUTPUT_THREAD_DUMP::Int32 - GRACEFUL_SHUTDOWN::Int32 - FORCEFUL_SHUTDOWN::Int32 - __enum_SignalContainerCommandProto() = new(1,2,3) -end #struct __enum_SignalContainerCommandProto -const SignalContainerCommandProto = __enum_SignalContainerCommandProto() - -struct __enum_ReservationRequestInterpreterProto <: ProtoEnum - R_ANY::Int32 - R_ALL::Int32 - R_ORDER::Int32 - R_ORDER_NO_GAP::Int32 - __enum_ReservationRequestInterpreterProto() = new(0,1,2,3) -end #struct __enum_ReservationRequestInterpreterProto -const ReservationRequestInterpreterProto = __enum_ReservationRequestInterpreterProto() - -struct __enum_ContainerExitStatusProto <: ProtoEnum - SUCCESS::Int32 - INVALID::Int32 - ABORTED::Int32 - DISKS_FAILED::Int32 - __enum_ContainerExitStatusProto() = new(0,-1000,-100,-101) -end #struct __enum_ContainerExitStatusProto -const ContainerExitStatusProto = __enum_ContainerExitStatusProto() - -struct __enum_ContainerRetryPolicyProto <: ProtoEnum - NEVER_RETRY::Int32 - RETRY_ON_ALL_ERRORS::Int32 - RETRY_ON_SPECIFIC_ERROR_CODES::Int32 - __enum_ContainerRetryPolicyProto() = new(0,1,2) -end #struct __enum_ContainerRetryPolicyProto -const ContainerRetryPolicyProto = __enum_ContainerRetryPolicyProto() +const ResourceTypesProto = (;[ + Symbol("COUNTABLE") => Int32(0), +]...) + +const ContainerStateProto = (;[ + Symbol("C_NEW") => Int32(1), + Symbol("C_RUNNING") => Int32(2), + Symbol("C_COMPLETE") => Int32(3), +]...) + +const ContainerSubStateProto = (;[ + Symbol("CSS_SCHEDULED") => Int32(1), + Symbol("CSS_RUNNING") => Int32(2), + Symbol("CSS_PAUSED") => Int32(3), + Symbol("CSS_COMPLETING") => Int32(4), + Symbol("CSS_DONE") => Int32(5), +]...) + +const YarnApplicationStateProto = (;[ + Symbol("NEW") => Int32(1), + Symbol("NEW_SAVING") => Int32(2), + Symbol("SUBMITTED") => Int32(3), + Symbol("ACCEPTED") => Int32(4), + Symbol("RUNNING") => Int32(5), + Symbol("FINISHED") => Int32(6), + Symbol("FAILED") => Int32(7), + Symbol("KILLED") => Int32(8), +]...) + +const YarnApplicationAttemptStateProto = (;[ + Symbol("APP_ATTEMPT_NEW") => Int32(1), + Symbol("APP_ATTEMPT_SUBMITTED") => Int32(2), + Symbol("APP_ATTEMPT_SCHEDULED") => Int32(3), + Symbol("APP_ATTEMPT_ALLOCATED_SAVING") => Int32(4), + Symbol("APP_ATTEMPT_ALLOCATED") => Int32(5), + Symbol("APP_ATTEMPT_LAUNCHED") => Int32(6), + Symbol("APP_ATTEMPT_FAILED") => Int32(7), + Symbol("APP_ATTEMPT_RUNNING") => Int32(8), + Symbol("APP_ATTEMPT_FINISHING") => Int32(9), + Symbol("APP_ATTEMPT_FINISHED") => Int32(10), + Symbol("APP_ATTEMPT_KILLED") => Int32(11), +]...) + +const FinalApplicationStatusProto = (;[ + Symbol("APP_UNDEFINED") => Int32(0), + Symbol("APP_SUCCEEDED") => Int32(1), + Symbol("APP_FAILED") => Int32(2), + Symbol("APP_KILLED") => Int32(3), + Symbol("APP_ENDED") => Int32(4), +]...) + +const LocalResourceVisibilityProto = (;[ + Symbol("PUBLIC") => Int32(1), + Symbol("PRIVATE") => Int32(2), + Symbol("APPLICATION") => Int32(3), +]...) + +const LocalResourceTypeProto = (;[ + Symbol("ARCHIVE") => Int32(1), + Symbol("FILE") => Int32(2), + Symbol("PATTERN") => Int32(3), +]...) + +const LogAggregationStatusProto = (;[ + Symbol("LOG_DISABLED") => Int32(1), + Symbol("LOG_NOT_START") => Int32(2), + Symbol("LOG_RUNNING") => Int32(3), + Symbol("LOG_SUCCEEDED") => Int32(4), + Symbol("LOG_FAILED") => Int32(5), + Symbol("LOG_TIME_OUT") => Int32(6), + Symbol("LOG_RUNNING_WITH_FAILURE") => Int32(7), +]...) + +const NodeStateProto = (;[ + Symbol("NS_NEW") => Int32(1), + Symbol("NS_RUNNING") => Int32(2), + Symbol("NS_UNHEALTHY") => Int32(3), + Symbol("NS_DECOMMISSIONED") => Int32(4), + Symbol("NS_LOST") => Int32(5), + Symbol("NS_REBOOTED") => Int32(6), + Symbol("NS_DECOMMISSIONING") => Int32(7), + Symbol("NS_SHUTDOWN") => Int32(8), +]...) + +const ContainerTypeProto = (;[ + Symbol("APPLICATION_MASTER") => Int32(1), + Symbol("TASK") => Int32(2), +]...) + +const ExecutionTypeProto = (;[ + Symbol("GUARANTEED") => Int32(1), + Symbol("OPPORTUNISTIC") => Int32(2), +]...) + +const AMCommandProto = (;[ + Symbol("AM_RESYNC") => Int32(1), + Symbol("AM_SHUTDOWN") => Int32(2), +]...) + +const ApplicationTimeoutTypeProto = (;[ + Symbol("APP_TIMEOUT_LIFETIME") => Int32(1), +]...) + +const ApplicationAccessTypeProto = (;[ + Symbol("APPACCESS_VIEW_APP") => Int32(1), + Symbol("APPACCESS_MODIFY_APP") => Int32(2), +]...) + +const QueueStateProto = (;[ + Symbol("Q_STOPPED") => Int32(1), + Symbol("Q_RUNNING") => Int32(2), + Symbol("Q_DRAINING") => Int32(3), +]...) + +const QueueACLProto = (;[ + Symbol("QACL_SUBMIT_APPLICATIONS") => Int32(1), + Symbol("QACL_ADMINISTER_QUEUE") => Int32(2), +]...) + +const SignalContainerCommandProto = (;[ + Symbol("OUTPUT_THREAD_DUMP") => Int32(1), + Symbol("GRACEFUL_SHUTDOWN") => Int32(2), + Symbol("FORCEFUL_SHUTDOWN") => Int32(3), +]...) + +const ReservationRequestInterpreterProto = (;[ + Symbol("R_ANY") => Int32(0), + Symbol("R_ALL") => Int32(1), + Symbol("R_ORDER") => Int32(2), + Symbol("R_ORDER_NO_GAP") => Int32(3), +]...) + +const ContainerExitStatusProto = (;[ + Symbol("SUCCESS") => Int32(0), + Symbol("INVALID") => Int32(-1000), + Symbol("ABORTED") => Int32(-100), + Symbol("DISKS_FAILED") => Int32(-101), +]...) + +const ContainerRetryPolicyProto = (;[ + Symbol("NEVER_RETRY") => Int32(0), + Symbol("RETRY_ON_ALL_ERRORS") => Int32(1), + Symbol("RETRY_ON_SPECIFIC_ERROR_CODES") => Int32(2), +]...) mutable struct SerializedExceptionProto <: ProtoType - message::AbstractString - trace::AbstractString - class_name::AbstractString - cause::SerializedExceptionProto - SerializedExceptionProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SerializedExceptionProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SerializedExceptionProto(; kwargs...) + obj = new(meta(SerializedExceptionProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SerializedExceptionProto +const __meta_SerializedExceptionProto = Ref{ProtoMeta}() +function meta(::Type{SerializedExceptionProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SerializedExceptionProto) + __meta_SerializedExceptionProto[] = target = ProtoMeta(SerializedExceptionProto) + allflds = Pair{Symbol,Union{Type,String}}[:message => AbstractString, :trace => AbstractString, :class_name => AbstractString, :cause => SerializedExceptionProto] + meta(target, SerializedExceptionProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SerializedExceptionProto[] + end +end +function Base.getproperty(obj::SerializedExceptionProto, name::Symbol) + if name === :message + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :trace + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :class_name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :cause + return (obj.__protobuf_jl_internal_values[name])::SerializedExceptionProto + else + getfield(obj, name) + end +end mutable struct ApplicationIdProto <: ProtoType - id::Int32 - cluster_timestamp::Int64 - ApplicationIdProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationIdProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationIdProto(; kwargs...) + obj = new(meta(ApplicationIdProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationIdProto +const __meta_ApplicationIdProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationIdProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationIdProto) + __meta_ApplicationIdProto[] = target = ProtoMeta(ApplicationIdProto) + allflds = Pair{Symbol,Union{Type,String}}[:id => Int32, :cluster_timestamp => Int64] + meta(target, ApplicationIdProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationIdProto[] + end +end +function Base.getproperty(obj::ApplicationIdProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :cluster_timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ApplicationAttemptIdProto <: ProtoType - application_id::ApplicationIdProto - attemptId::Int32 - ApplicationAttemptIdProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationAttemptIdProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationAttemptIdProto(; kwargs...) + obj = new(meta(ApplicationAttemptIdProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationAttemptIdProto +const __meta_ApplicationAttemptIdProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationAttemptIdProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationAttemptIdProto) + __meta_ApplicationAttemptIdProto[] = target = ProtoMeta(ApplicationAttemptIdProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto, :attemptId => Int32] + meta(target, ApplicationAttemptIdProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationAttemptIdProto[] + end +end +function Base.getproperty(obj::ApplicationAttemptIdProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :attemptId + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct ContainerIdProto <: ProtoType - app_id::ApplicationIdProto - app_attempt_id::ApplicationAttemptIdProto - id::Int64 - ContainerIdProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerIdProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerIdProto(; kwargs...) + obj = new(meta(ContainerIdProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerIdProto +const __meta_ContainerIdProto = Ref{ProtoMeta}() +function meta(::Type{ContainerIdProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerIdProto) + __meta_ContainerIdProto[] = target = ProtoMeta(ContainerIdProto) + allflds = Pair{Symbol,Union{Type,String}}[:app_id => ApplicationIdProto, :app_attempt_id => ApplicationAttemptIdProto, :id => Int64] + meta(target, ContainerIdProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerIdProto[] + end +end +function Base.getproperty(obj::ContainerIdProto, name::Symbol) + if name === :app_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :app_attempt_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptIdProto + elseif name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ResourceInformationProto <: ProtoType - key::AbstractString - value::Int64 - units::AbstractString - _type::Int32 - ResourceInformationProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceInformationProto -const __req_ResourceInformationProto = Symbol[:key] -meta(t::Type{ResourceInformationProto}) = meta(t, __req_ResourceInformationProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceInformationProto(; kwargs...) + obj = new(meta(ResourceInformationProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceInformationProto +const __meta_ResourceInformationProto = Ref{ProtoMeta}() +function meta(::Type{ResourceInformationProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceInformationProto) + __meta_ResourceInformationProto[] = target = ProtoMeta(ResourceInformationProto) + req = Symbol[:key] + allflds = Pair{Symbol,Union{Type,String}}[:key => AbstractString, :value => Int64, :units => AbstractString, :_type => Int32] + meta(target, ResourceInformationProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceInformationProto[] + end +end +function Base.getproperty(obj::ResourceInformationProto, name::Symbol) + if name === :key + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :value + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :units + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct ResourceTypeInfoProto <: ProtoType - name::AbstractString - units::AbstractString - _type::Int32 - ResourceTypeInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceTypeInfoProto -const __req_ResourceTypeInfoProto = Symbol[:name] -meta(t::Type{ResourceTypeInfoProto}) = meta(t, __req_ResourceTypeInfoProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceTypeInfoProto(; kwargs...) + obj = new(meta(ResourceTypeInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceTypeInfoProto +const __meta_ResourceTypeInfoProto = Ref{ProtoMeta}() +function meta(::Type{ResourceTypeInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceTypeInfoProto) + __meta_ResourceTypeInfoProto[] = target = ProtoMeta(ResourceTypeInfoProto) + req = Symbol[:name] + allflds = Pair{Symbol,Union{Type,String}}[:name => AbstractString, :units => AbstractString, :_type => Int32] + meta(target, ResourceTypeInfoProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceTypeInfoProto[] + end +end +function Base.getproperty(obj::ResourceTypeInfoProto, name::Symbol) + if name === :name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :units + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct ResourceProto <: ProtoType - memory::Int64 - virtual_cores::Int32 - resource_value_map::Base.Vector{ResourceInformationProto} - ResourceProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceProto(; kwargs...) + obj = new(meta(ResourceProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceProto +const __meta_ResourceProto = Ref{ProtoMeta}() +function meta(::Type{ResourceProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceProto) + __meta_ResourceProto[] = target = ProtoMeta(ResourceProto) + allflds = Pair{Symbol,Union{Type,String}}[:memory => Int64, :virtual_cores => Int32, :resource_value_map => Base.Vector{ResourceInformationProto}] + meta(target, ResourceProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceProto[] + end +end +function Base.getproperty(obj::ResourceProto, name::Symbol) + if name === :memory + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :virtual_cores + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :resource_value_map + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ResourceInformationProto} + else + getfield(obj, name) + end +end mutable struct ResourceUtilizationProto <: ProtoType - pmem::Int32 - vmem::Int32 - cpu::Float32 - ResourceUtilizationProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceUtilizationProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceUtilizationProto(; kwargs...) + obj = new(meta(ResourceUtilizationProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceUtilizationProto +const __meta_ResourceUtilizationProto = Ref{ProtoMeta}() +function meta(::Type{ResourceUtilizationProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceUtilizationProto) + __meta_ResourceUtilizationProto[] = target = ProtoMeta(ResourceUtilizationProto) + allflds = Pair{Symbol,Union{Type,String}}[:pmem => Int32, :vmem => Int32, :cpu => Float32] + meta(target, ResourceUtilizationProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceUtilizationProto[] + end +end +function Base.getproperty(obj::ResourceUtilizationProto, name::Symbol) + if name === :pmem + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :vmem + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :cpu + return (obj.__protobuf_jl_internal_values[name])::Float32 + else + getfield(obj, name) + end +end mutable struct ResourceOptionProto <: ProtoType - resource::ResourceProto - over_commit_timeout::Int32 - ResourceOptionProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceOptionProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceOptionProto(; kwargs...) + obj = new(meta(ResourceOptionProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceOptionProto +const __meta_ResourceOptionProto = Ref{ProtoMeta}() +function meta(::Type{ResourceOptionProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceOptionProto) + __meta_ResourceOptionProto[] = target = ProtoMeta(ResourceOptionProto) + allflds = Pair{Symbol,Union{Type,String}}[:resource => ResourceProto, :over_commit_timeout => Int32] + meta(target, ResourceOptionProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceOptionProto[] + end +end +function Base.getproperty(obj::ResourceOptionProto, name::Symbol) + if name === :resource + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :over_commit_timeout + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct PriorityProto <: ProtoType - priority::Int32 - PriorityProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PriorityProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PriorityProto(; kwargs...) + obj = new(meta(PriorityProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PriorityProto +const __meta_PriorityProto = Ref{ProtoMeta}() +function meta(::Type{PriorityProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PriorityProto) + __meta_PriorityProto[] = target = ProtoMeta(PriorityProto) + allflds = Pair{Symbol,Union{Type,String}}[:priority => Int32] + meta(target, PriorityProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PriorityProto[] + end +end +function Base.getproperty(obj::PriorityProto, name::Symbol) + if name === :priority + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct URLProto <: ProtoType - scheme::AbstractString - host::AbstractString - port::Int32 - file::AbstractString - userInfo::AbstractString - URLProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct URLProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function URLProto(; kwargs...) + obj = new(meta(URLProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct URLProto +const __meta_URLProto = Ref{ProtoMeta}() +function meta(::Type{URLProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_URLProto) + __meta_URLProto[] = target = ProtoMeta(URLProto) + allflds = Pair{Symbol,Union{Type,String}}[:scheme => AbstractString, :host => AbstractString, :port => Int32, :file => AbstractString, :userInfo => AbstractString] + meta(target, URLProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_URLProto[] + end +end +function Base.getproperty(obj::URLProto, name::Symbol) + if name === :scheme + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :host + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :port + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :file + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :userInfo + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct LocalResourceProto <: ProtoType - resource::URLProto - size::Int64 - timestamp::Int64 - _type::Int32 - visibility::Int32 - pattern::AbstractString - should_be_uploaded_to_shared_cache::Bool - LocalResourceProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct LocalResourceProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function LocalResourceProto(; kwargs...) + obj = new(meta(LocalResourceProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct LocalResourceProto +const __meta_LocalResourceProto = Ref{ProtoMeta}() +function meta(::Type{LocalResourceProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_LocalResourceProto) + __meta_LocalResourceProto[] = target = ProtoMeta(LocalResourceProto) + allflds = Pair{Symbol,Union{Type,String}}[:resource => URLProto, :size => Int64, :timestamp => Int64, :_type => Int32, :visibility => Int32, :pattern => AbstractString, :should_be_uploaded_to_shared_cache => Bool] + meta(target, LocalResourceProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_LocalResourceProto[] + end +end +function Base.getproperty(obj::LocalResourceProto, name::Symbol) + if name === :resource + return (obj.__protobuf_jl_internal_values[name])::URLProto + elseif name === :size + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :visibility + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :pattern + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :should_be_uploaded_to_shared_cache + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct StringLongMapProto <: ProtoType - key::AbstractString - value::Int64 - StringLongMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StringLongMapProto -const __req_StringLongMapProto = Symbol[:key,:value] -meta(t::Type{StringLongMapProto}) = meta(t, __req_StringLongMapProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StringLongMapProto(; kwargs...) + obj = new(meta(StringLongMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StringLongMapProto +const __meta_StringLongMapProto = Ref{ProtoMeta}() +function meta(::Type{StringLongMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StringLongMapProto) + __meta_StringLongMapProto[] = target = ProtoMeta(StringLongMapProto) + req = Symbol[:key,:value] + allflds = Pair{Symbol,Union{Type,String}}[:key => AbstractString, :value => Int64] + meta(target, StringLongMapProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StringLongMapProto[] + end +end +function Base.getproperty(obj::StringLongMapProto, name::Symbol) + if name === :key + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :value + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ApplicationResourceUsageReportProto <: ProtoType - num_used_containers::Int32 - num_reserved_containers::Int32 - used_resources::ResourceProto - reserved_resources::ResourceProto - needed_resources::ResourceProto - memory_seconds::Int64 - vcore_seconds::Int64 - queue_usage_percentage::Float32 - cluster_usage_percentage::Float32 - preempted_memory_seconds::Int64 - preempted_vcore_seconds::Int64 - application_resource_usage_map::Base.Vector{StringLongMapProto} - application_preempted_resource_usage_map::Base.Vector{StringLongMapProto} - ApplicationResourceUsageReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationResourceUsageReportProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationResourceUsageReportProto(; kwargs...) + obj = new(meta(ApplicationResourceUsageReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationResourceUsageReportProto +const __meta_ApplicationResourceUsageReportProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationResourceUsageReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationResourceUsageReportProto) + __meta_ApplicationResourceUsageReportProto[] = target = ProtoMeta(ApplicationResourceUsageReportProto) + allflds = Pair{Symbol,Union{Type,String}}[:num_used_containers => Int32, :num_reserved_containers => Int32, :used_resources => ResourceProto, :reserved_resources => ResourceProto, :needed_resources => ResourceProto, :memory_seconds => Int64, :vcore_seconds => Int64, :queue_usage_percentage => Float32, :cluster_usage_percentage => Float32, :preempted_memory_seconds => Int64, :preempted_vcore_seconds => Int64, :application_resource_usage_map => Base.Vector{StringLongMapProto}, :application_preempted_resource_usage_map => Base.Vector{StringLongMapProto}] + meta(target, ApplicationResourceUsageReportProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationResourceUsageReportProto[] + end +end +function Base.getproperty(obj::ApplicationResourceUsageReportProto, name::Symbol) + if name === :num_used_containers + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :num_reserved_containers + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :used_resources + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :reserved_resources + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :needed_resources + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :memory_seconds + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :vcore_seconds + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :queue_usage_percentage + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :cluster_usage_percentage + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :preempted_memory_seconds + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :preempted_vcore_seconds + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :application_resource_usage_map + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringLongMapProto} + elseif name === :application_preempted_resource_usage_map + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringLongMapProto} + else + getfield(obj, name) + end +end mutable struct ApplicationTimeoutProto <: ProtoType - application_timeout_type::Int32 - expire_time::AbstractString - remaining_time::Int64 - ApplicationTimeoutProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationTimeoutProto -const __req_ApplicationTimeoutProto = Symbol[:application_timeout_type] -meta(t::Type{ApplicationTimeoutProto}) = meta(t, __req_ApplicationTimeoutProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationTimeoutProto(; kwargs...) + obj = new(meta(ApplicationTimeoutProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationTimeoutProto +const __meta_ApplicationTimeoutProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationTimeoutProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationTimeoutProto) + __meta_ApplicationTimeoutProto[] = target = ProtoMeta(ApplicationTimeoutProto) + req = Symbol[:application_timeout_type] + allflds = Pair{Symbol,Union{Type,String}}[:application_timeout_type => Int32, :expire_time => AbstractString, :remaining_time => Int64] + meta(target, ApplicationTimeoutProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationTimeoutProto[] + end +end +function Base.getproperty(obj::ApplicationTimeoutProto, name::Symbol) + if name === :application_timeout_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :expire_time + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :remaining_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct AppTimeoutsMapProto <: ProtoType - application_timeout_type::Int32 - application_timeout::ApplicationTimeoutProto - AppTimeoutsMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AppTimeoutsMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AppTimeoutsMapProto(; kwargs...) + obj = new(meta(AppTimeoutsMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AppTimeoutsMapProto +const __meta_AppTimeoutsMapProto = Ref{ProtoMeta}() +function meta(::Type{AppTimeoutsMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AppTimeoutsMapProto) + __meta_AppTimeoutsMapProto[] = target = ProtoMeta(AppTimeoutsMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_timeout_type => Int32, :application_timeout => ApplicationTimeoutProto] + meta(target, AppTimeoutsMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AppTimeoutsMapProto[] + end +end +function Base.getproperty(obj::AppTimeoutsMapProto, name::Symbol) + if name === :application_timeout_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :application_timeout + return (obj.__protobuf_jl_internal_values[name])::ApplicationTimeoutProto + else + getfield(obj, name) + end +end mutable struct ApplicationReportProto <: ProtoType - applicationId::ApplicationIdProto - user::AbstractString - queue::AbstractString - name::AbstractString - host::AbstractString - rpc_port::Int32 - client_to_am_token::hadoop.common.TokenProto - yarn_application_state::Int32 - trackingUrl::AbstractString - diagnostics::AbstractString - startTime::Int64 - finishTime::Int64 - final_application_status::Int32 - app_resource_Usage::ApplicationResourceUsageReportProto - originalTrackingUrl::AbstractString - currentApplicationAttemptId::ApplicationAttemptIdProto - progress::Float32 - applicationType::AbstractString - am_rm_token::hadoop.common.TokenProto - applicationTags::Base.Vector{AbstractString} - log_aggregation_status::Int32 - unmanaged_application::Bool - priority::PriorityProto - appNodeLabelExpression::AbstractString - amNodeLabelExpression::AbstractString - appTimeouts::Base.Vector{AppTimeoutsMapProto} - launchTime::Int64 - submitTime::Int64 - ApplicationReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationReportProto -const __val_ApplicationReportProto = Dict(:diagnostics => "N/A", :unmanaged_application => false) -meta(t::Type{ApplicationReportProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ApplicationReportProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationReportProto(; kwargs...) + obj = new(meta(ApplicationReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationReportProto +const __meta_ApplicationReportProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationReportProto) + __meta_ApplicationReportProto[] = target = ProtoMeta(ApplicationReportProto) + val = Dict{Symbol,Any}(:diagnostics => "N/A", :unmanaged_application => false) + allflds = Pair{Symbol,Union{Type,String}}[:applicationId => ApplicationIdProto, :user => AbstractString, :queue => AbstractString, :name => AbstractString, :host => AbstractString, :rpc_port => Int32, :client_to_am_token => hadoop.common.TokenProto, :yarn_application_state => Int32, :trackingUrl => AbstractString, :diagnostics => AbstractString, :startTime => Int64, :finishTime => Int64, :final_application_status => Int32, :app_resource_Usage => ApplicationResourceUsageReportProto, :originalTrackingUrl => AbstractString, :currentApplicationAttemptId => ApplicationAttemptIdProto, :progress => Float32, :applicationType => AbstractString, :am_rm_token => hadoop.common.TokenProto, :applicationTags => Base.Vector{AbstractString}, :log_aggregation_status => Int32, :unmanaged_application => Bool, :priority => PriorityProto, :appNodeLabelExpression => AbstractString, :amNodeLabelExpression => AbstractString, :appTimeouts => Base.Vector{AppTimeoutsMapProto}, :launchTime => Int64, :submitTime => Int64] + meta(target, ApplicationReportProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationReportProto[] + end +end +function Base.getproperty(obj::ApplicationReportProto, name::Symbol) + if name === :applicationId + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :user + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :queue + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :host + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :rpc_port + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :client_to_am_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + elseif name === :yarn_application_state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :trackingUrl + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :diagnostics + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :startTime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :finishTime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :final_application_status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :app_resource_Usage + return (obj.__protobuf_jl_internal_values[name])::ApplicationResourceUsageReportProto + elseif name === :originalTrackingUrl + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :currentApplicationAttemptId + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptIdProto + elseif name === :progress + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :applicationType + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :am_rm_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + elseif name === :applicationTags + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :log_aggregation_status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :unmanaged_application + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + elseif name === :appNodeLabelExpression + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :amNodeLabelExpression + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :appTimeouts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AppTimeoutsMapProto} + elseif name === :launchTime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :submitTime + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ApplicationAttemptReportProto <: ProtoType - application_attempt_id::ApplicationAttemptIdProto - host::AbstractString - rpc_port::Int32 - tracking_url::AbstractString - diagnostics::AbstractString - yarn_application_attempt_state::Int32 - am_container_id::ContainerIdProto - original_tracking_url::AbstractString - startTime::Int64 - finishTime::Int64 - ApplicationAttemptReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationAttemptReportProto -const __val_ApplicationAttemptReportProto = Dict(:diagnostics => "N/A") -meta(t::Type{ApplicationAttemptReportProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ApplicationAttemptReportProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationAttemptReportProto(; kwargs...) + obj = new(meta(ApplicationAttemptReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationAttemptReportProto +const __meta_ApplicationAttemptReportProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationAttemptReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationAttemptReportProto) + __meta_ApplicationAttemptReportProto[] = target = ProtoMeta(ApplicationAttemptReportProto) + val = Dict{Symbol,Any}(:diagnostics => "N/A") + allflds = Pair{Symbol,Union{Type,String}}[:application_attempt_id => ApplicationAttemptIdProto, :host => AbstractString, :rpc_port => Int32, :tracking_url => AbstractString, :diagnostics => AbstractString, :yarn_application_attempt_state => Int32, :am_container_id => ContainerIdProto, :original_tracking_url => AbstractString, :startTime => Int64, :finishTime => Int64] + meta(target, ApplicationAttemptReportProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationAttemptReportProto[] + end +end +function Base.getproperty(obj::ApplicationAttemptReportProto, name::Symbol) + if name === :application_attempt_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptIdProto + elseif name === :host + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :rpc_port + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :tracking_url + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :diagnostics + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :yarn_application_attempt_state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :am_container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :original_tracking_url + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :startTime + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :finishTime + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct NodeIdProto <: ProtoType - host::AbstractString - port::Int32 - NodeIdProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct NodeIdProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function NodeIdProto(; kwargs...) + obj = new(meta(NodeIdProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct NodeIdProto +const __meta_NodeIdProto = Ref{ProtoMeta}() +function meta(::Type{NodeIdProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_NodeIdProto) + __meta_NodeIdProto[] = target = ProtoMeta(NodeIdProto) + allflds = Pair{Symbol,Union{Type,String}}[:host => AbstractString, :port => Int32] + meta(target, NodeIdProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_NodeIdProto[] + end +end +function Base.getproperty(obj::NodeIdProto, name::Symbol) + if name === :host + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :port + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct NodeResourceMapProto <: ProtoType - node_id::NodeIdProto - resource_option::ResourceOptionProto - NodeResourceMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct NodeResourceMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function NodeResourceMapProto(; kwargs...) + obj = new(meta(NodeResourceMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct NodeResourceMapProto +const __meta_NodeResourceMapProto = Ref{ProtoMeta}() +function meta(::Type{NodeResourceMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_NodeResourceMapProto) + __meta_NodeResourceMapProto[] = target = ProtoMeta(NodeResourceMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:node_id => NodeIdProto, :resource_option => ResourceOptionProto] + meta(target, NodeResourceMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_NodeResourceMapProto[] + end +end +function Base.getproperty(obj::NodeResourceMapProto, name::Symbol) + if name === :node_id + return (obj.__protobuf_jl_internal_values[name])::NodeIdProto + elseif name === :resource_option + return (obj.__protobuf_jl_internal_values[name])::ResourceOptionProto + else + getfield(obj, name) + end +end mutable struct ContainerReportProto <: ProtoType - container_id::ContainerIdProto - resource::ResourceProto - node_id::NodeIdProto - priority::PriorityProto - creation_time::Int64 - finish_time::Int64 - diagnostics_info::AbstractString - log_url::AbstractString - container_exit_status::Int32 - container_state::Int32 - node_http_address::AbstractString - executionType::Int32 - ContainerReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerReportProto -const __val_ContainerReportProto = Dict(:diagnostics_info => "N/A", :executionType => ExecutionTypeProto.GUARANTEED) -meta(t::Type{ContainerReportProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ContainerReportProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerReportProto(; kwargs...) + obj = new(meta(ContainerReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerReportProto +const __meta_ContainerReportProto = Ref{ProtoMeta}() +function meta(::Type{ContainerReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerReportProto) + __meta_ContainerReportProto[] = target = ProtoMeta(ContainerReportProto) + val = Dict{Symbol,Any}(:diagnostics_info => "N/A", :executionType => ExecutionTypeProto.GUARANTEED) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :resource => ResourceProto, :node_id => NodeIdProto, :priority => PriorityProto, :creation_time => Int64, :finish_time => Int64, :diagnostics_info => AbstractString, :log_url => AbstractString, :container_exit_status => Int32, :container_state => Int32, :node_http_address => AbstractString, :executionType => Int32] + meta(target, ContainerReportProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerReportProto[] + end +end +function Base.getproperty(obj::ContainerReportProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :resource + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :node_id + return (obj.__protobuf_jl_internal_values[name])::NodeIdProto + elseif name === :priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + elseif name === :creation_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :finish_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :diagnostics_info + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :log_url + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :container_exit_status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :container_state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :node_http_address + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :executionType + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct ContainerProto <: ProtoType - id::ContainerIdProto - nodeId::NodeIdProto - node_http_address::AbstractString - resource::ResourceProto - priority::PriorityProto - container_token::hadoop.common.TokenProto - execution_type::Int32 - allocation_request_id::Int64 - version::Int32 - ContainerProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerProto -const __val_ContainerProto = Dict(:execution_type => ExecutionTypeProto.GUARANTEED, :allocation_request_id => -1, :version => 0) -meta(t::Type{ContainerProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ContainerProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerProto(; kwargs...) + obj = new(meta(ContainerProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerProto +const __meta_ContainerProto = Ref{ProtoMeta}() +function meta(::Type{ContainerProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerProto) + __meta_ContainerProto[] = target = ProtoMeta(ContainerProto) + val = Dict{Symbol,Any}(:execution_type => ExecutionTypeProto.GUARANTEED, :allocation_request_id => -1, :version => 0) + allflds = Pair{Symbol,Union{Type,String}}[:id => ContainerIdProto, :nodeId => NodeIdProto, :node_http_address => AbstractString, :resource => ResourceProto, :priority => PriorityProto, :container_token => hadoop.common.TokenProto, :execution_type => Int32, :allocation_request_id => Int64, :version => Int32] + meta(target, ContainerProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerProto[] + end +end +function Base.getproperty(obj::ContainerProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :nodeId + return (obj.__protobuf_jl_internal_values[name])::NodeIdProto + elseif name === :node_http_address + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :resource + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + elseif name === :container_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + elseif name === :execution_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :allocation_request_id + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :version + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct NodeReportProto <: ProtoType - nodeId::NodeIdProto - httpAddress::AbstractString - rackName::AbstractString - used::ResourceProto - capability::ResourceProto - numContainers::Int32 - node_state::Int32 - health_report::AbstractString - last_health_report_time::Int64 - node_labels::Base.Vector{AbstractString} - containers_utilization::ResourceUtilizationProto - node_utilization::ResourceUtilizationProto - NodeReportProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct NodeReportProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function NodeReportProto(; kwargs...) + obj = new(meta(NodeReportProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct NodeReportProto +const __meta_NodeReportProto = Ref{ProtoMeta}() +function meta(::Type{NodeReportProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_NodeReportProto) + __meta_NodeReportProto[] = target = ProtoMeta(NodeReportProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeId => NodeIdProto, :httpAddress => AbstractString, :rackName => AbstractString, :used => ResourceProto, :capability => ResourceProto, :numContainers => Int32, :node_state => Int32, :health_report => AbstractString, :last_health_report_time => Int64, :node_labels => Base.Vector{AbstractString}, :containers_utilization => ResourceUtilizationProto, :node_utilization => ResourceUtilizationProto] + meta(target, NodeReportProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_NodeReportProto[] + end +end +function Base.getproperty(obj::NodeReportProto, name::Symbol) + if name === :nodeId + return (obj.__protobuf_jl_internal_values[name])::NodeIdProto + elseif name === :httpAddress + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :rackName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :used + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :numContainers + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :node_state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :health_report + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :last_health_report_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :node_labels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :containers_utilization + return (obj.__protobuf_jl_internal_values[name])::ResourceUtilizationProto + elseif name === :node_utilization + return (obj.__protobuf_jl_internal_values[name])::ResourceUtilizationProto + else + getfield(obj, name) + end +end mutable struct NodeIdToLabelsProto <: ProtoType - nodeId::NodeIdProto - nodeLabels::Base.Vector{AbstractString} - NodeIdToLabelsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct NodeIdToLabelsProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function NodeIdToLabelsProto(; kwargs...) + obj = new(meta(NodeIdToLabelsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct NodeIdToLabelsProto +const __meta_NodeIdToLabelsProto = Ref{ProtoMeta}() +function meta(::Type{NodeIdToLabelsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_NodeIdToLabelsProto) + __meta_NodeIdToLabelsProto[] = target = ProtoMeta(NodeIdToLabelsProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeId => NodeIdProto, :nodeLabels => Base.Vector{AbstractString}] + meta(target, NodeIdToLabelsProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_NodeIdToLabelsProto[] + end +end +function Base.getproperty(obj::NodeIdToLabelsProto, name::Symbol) + if name === :nodeId + return (obj.__protobuf_jl_internal_values[name])::NodeIdProto + elseif name === :nodeLabels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + else + getfield(obj, name) + end +end mutable struct LabelsToNodeIdsProto <: ProtoType - nodeLabels::AbstractString - nodeId::Base.Vector{NodeIdProto} - LabelsToNodeIdsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct LabelsToNodeIdsProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function LabelsToNodeIdsProto(; kwargs...) + obj = new(meta(LabelsToNodeIdsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct LabelsToNodeIdsProto +const __meta_LabelsToNodeIdsProto = Ref{ProtoMeta}() +function meta(::Type{LabelsToNodeIdsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_LabelsToNodeIdsProto) + __meta_LabelsToNodeIdsProto[] = target = ProtoMeta(LabelsToNodeIdsProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeLabels => AbstractString, :nodeId => Base.Vector{NodeIdProto}] + meta(target, LabelsToNodeIdsProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_LabelsToNodeIdsProto[] + end +end +function Base.getproperty(obj::LabelsToNodeIdsProto, name::Symbol) + if name === :nodeLabels + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :nodeId + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NodeIdProto} + else + getfield(obj, name) + end +end mutable struct NodeLabelProto <: ProtoType - name::AbstractString - isExclusive::Bool - NodeLabelProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct NodeLabelProto -const __val_NodeLabelProto = Dict(:isExclusive => true) -meta(t::Type{NodeLabelProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_NodeLabelProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function NodeLabelProto(; kwargs...) + obj = new(meta(NodeLabelProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct NodeLabelProto +const __meta_NodeLabelProto = Ref{ProtoMeta}() +function meta(::Type{NodeLabelProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_NodeLabelProto) + __meta_NodeLabelProto[] = target = ProtoMeta(NodeLabelProto) + val = Dict{Symbol,Any}(:isExclusive => true) + allflds = Pair{Symbol,Union{Type,String}}[:name => AbstractString, :isExclusive => Bool] + meta(target, NodeLabelProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_NodeLabelProto[] + end +end +function Base.getproperty(obj::NodeLabelProto, name::Symbol) + if name === :name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :isExclusive + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct AMBlackListingRequestProto <: ProtoType - blacklisting_enabled::Bool - blacklisting_failure_threshold::Float32 - AMBlackListingRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AMBlackListingRequestProto -const __val_AMBlackListingRequestProto = Dict(:blacklisting_enabled => false) -meta(t::Type{AMBlackListingRequestProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_AMBlackListingRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AMBlackListingRequestProto(; kwargs...) + obj = new(meta(AMBlackListingRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AMBlackListingRequestProto +const __meta_AMBlackListingRequestProto = Ref{ProtoMeta}() +function meta(::Type{AMBlackListingRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AMBlackListingRequestProto) + __meta_AMBlackListingRequestProto[] = target = ProtoMeta(AMBlackListingRequestProto) + val = Dict{Symbol,Any}(:blacklisting_enabled => false) + allflds = Pair{Symbol,Union{Type,String}}[:blacklisting_enabled => Bool, :blacklisting_failure_threshold => Float32] + meta(target, AMBlackListingRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AMBlackListingRequestProto[] + end +end +function Base.getproperty(obj::AMBlackListingRequestProto, name::Symbol) + if name === :blacklisting_enabled + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :blacklisting_failure_threshold + return (obj.__protobuf_jl_internal_values[name])::Float32 + else + getfield(obj, name) + end +end mutable struct ExecutionTypeRequestProto <: ProtoType - execution_type::Int32 - enforce_execution_type::Bool - ExecutionTypeRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ExecutionTypeRequestProto -const __val_ExecutionTypeRequestProto = Dict(:execution_type => ExecutionTypeProto.GUARANTEED, :enforce_execution_type => false) -meta(t::Type{ExecutionTypeRequestProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ExecutionTypeRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ExecutionTypeRequestProto(; kwargs...) + obj = new(meta(ExecutionTypeRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ExecutionTypeRequestProto +const __meta_ExecutionTypeRequestProto = Ref{ProtoMeta}() +function meta(::Type{ExecutionTypeRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ExecutionTypeRequestProto) + __meta_ExecutionTypeRequestProto[] = target = ProtoMeta(ExecutionTypeRequestProto) + val = Dict{Symbol,Any}(:execution_type => ExecutionTypeProto.GUARANTEED, :enforce_execution_type => false) + allflds = Pair{Symbol,Union{Type,String}}[:execution_type => Int32, :enforce_execution_type => Bool] + meta(target, ExecutionTypeRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ExecutionTypeRequestProto[] + end +end +function Base.getproperty(obj::ExecutionTypeRequestProto, name::Symbol) + if name === :execution_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :enforce_execution_type + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct ResourceRequestProto <: ProtoType - priority::PriorityProto - resource_name::AbstractString - capability::ResourceProto - num_containers::Int32 - relax_locality::Bool - node_label_expression::AbstractString - execution_type_request::ExecutionTypeRequestProto - allocation_request_id::Int64 - ResourceRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceRequestProto -const __val_ResourceRequestProto = Dict(:relax_locality => true, :allocation_request_id => 0) -meta(t::Type{ResourceRequestProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ResourceRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceRequestProto(; kwargs...) + obj = new(meta(ResourceRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceRequestProto +const __meta_ResourceRequestProto = Ref{ProtoMeta}() +function meta(::Type{ResourceRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceRequestProto) + __meta_ResourceRequestProto[] = target = ProtoMeta(ResourceRequestProto) + val = Dict{Symbol,Any}(:relax_locality => true, :allocation_request_id => 0) + allflds = Pair{Symbol,Union{Type,String}}[:priority => PriorityProto, :resource_name => AbstractString, :capability => ResourceProto, :num_containers => Int32, :relax_locality => Bool, :node_label_expression => AbstractString, :execution_type_request => ExecutionTypeRequestProto, :allocation_request_id => Int64] + meta(target, ResourceRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceRequestProto[] + end +end +function Base.getproperty(obj::ResourceRequestProto, name::Symbol) + if name === :priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + elseif name === :resource_name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :num_containers + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :relax_locality + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :node_label_expression + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :execution_type_request + return (obj.__protobuf_jl_internal_values[name])::ExecutionTypeRequestProto + elseif name === :allocation_request_id + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct PreemptionContainerProto <: ProtoType - id::ContainerIdProto - PreemptionContainerProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PreemptionContainerProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PreemptionContainerProto(; kwargs...) + obj = new(meta(PreemptionContainerProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PreemptionContainerProto +const __meta_PreemptionContainerProto = Ref{ProtoMeta}() +function meta(::Type{PreemptionContainerProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PreemptionContainerProto) + __meta_PreemptionContainerProto[] = target = ProtoMeta(PreemptionContainerProto) + allflds = Pair{Symbol,Union{Type,String}}[:id => ContainerIdProto] + meta(target, PreemptionContainerProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PreemptionContainerProto[] + end +end +function Base.getproperty(obj::PreemptionContainerProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + else + getfield(obj, name) + end +end mutable struct StrictPreemptionContractProto <: ProtoType - container::Base.Vector{PreemptionContainerProto} - StrictPreemptionContractProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StrictPreemptionContractProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StrictPreemptionContractProto(; kwargs...) + obj = new(meta(StrictPreemptionContractProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StrictPreemptionContractProto +const __meta_StrictPreemptionContractProto = Ref{ProtoMeta}() +function meta(::Type{StrictPreemptionContractProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StrictPreemptionContractProto) + __meta_StrictPreemptionContractProto[] = target = ProtoMeta(StrictPreemptionContractProto) + allflds = Pair{Symbol,Union{Type,String}}[:container => Base.Vector{PreemptionContainerProto}] + meta(target, StrictPreemptionContractProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StrictPreemptionContractProto[] + end +end +function Base.getproperty(obj::StrictPreemptionContractProto, name::Symbol) + if name === :container + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{PreemptionContainerProto} + else + getfield(obj, name) + end +end mutable struct PreemptionResourceRequestProto <: ProtoType - resource::ResourceRequestProto - PreemptionResourceRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PreemptionResourceRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PreemptionResourceRequestProto(; kwargs...) + obj = new(meta(PreemptionResourceRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PreemptionResourceRequestProto +const __meta_PreemptionResourceRequestProto = Ref{ProtoMeta}() +function meta(::Type{PreemptionResourceRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PreemptionResourceRequestProto) + __meta_PreemptionResourceRequestProto[] = target = ProtoMeta(PreemptionResourceRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:resource => ResourceRequestProto] + meta(target, PreemptionResourceRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PreemptionResourceRequestProto[] + end +end +function Base.getproperty(obj::PreemptionResourceRequestProto, name::Symbol) + if name === :resource + return (obj.__protobuf_jl_internal_values[name])::ResourceRequestProto + else + getfield(obj, name) + end +end mutable struct PreemptionContractProto <: ProtoType - resource::Base.Vector{PreemptionResourceRequestProto} - container::Base.Vector{PreemptionContainerProto} - PreemptionContractProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PreemptionContractProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PreemptionContractProto(; kwargs...) + obj = new(meta(PreemptionContractProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PreemptionContractProto +const __meta_PreemptionContractProto = Ref{ProtoMeta}() +function meta(::Type{PreemptionContractProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PreemptionContractProto) + __meta_PreemptionContractProto[] = target = ProtoMeta(PreemptionContractProto) + allflds = Pair{Symbol,Union{Type,String}}[:resource => Base.Vector{PreemptionResourceRequestProto}, :container => Base.Vector{PreemptionContainerProto}] + meta(target, PreemptionContractProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PreemptionContractProto[] + end +end +function Base.getproperty(obj::PreemptionContractProto, name::Symbol) + if name === :resource + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{PreemptionResourceRequestProto} + elseif name === :container + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{PreemptionContainerProto} + else + getfield(obj, name) + end +end mutable struct PreemptionMessageProto <: ProtoType - strictContract::StrictPreemptionContractProto - contract::PreemptionContractProto - PreemptionMessageProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct PreemptionMessageProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function PreemptionMessageProto(; kwargs...) + obj = new(meta(PreemptionMessageProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct PreemptionMessageProto +const __meta_PreemptionMessageProto = Ref{ProtoMeta}() +function meta(::Type{PreemptionMessageProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_PreemptionMessageProto) + __meta_PreemptionMessageProto[] = target = ProtoMeta(PreemptionMessageProto) + allflds = Pair{Symbol,Union{Type,String}}[:strictContract => StrictPreemptionContractProto, :contract => PreemptionContractProto] + meta(target, PreemptionMessageProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_PreemptionMessageProto[] + end +end +function Base.getproperty(obj::PreemptionMessageProto, name::Symbol) + if name === :strictContract + return (obj.__protobuf_jl_internal_values[name])::StrictPreemptionContractProto + elseif name === :contract + return (obj.__protobuf_jl_internal_values[name])::PreemptionContractProto + else + getfield(obj, name) + end +end mutable struct ResourceBlacklistRequestProto <: ProtoType - blacklist_additions::Base.Vector{AbstractString} - blacklist_removals::Base.Vector{AbstractString} - ResourceBlacklistRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceBlacklistRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceBlacklistRequestProto(; kwargs...) + obj = new(meta(ResourceBlacklistRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceBlacklistRequestProto +const __meta_ResourceBlacklistRequestProto = Ref{ProtoMeta}() +function meta(::Type{ResourceBlacklistRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceBlacklistRequestProto) + __meta_ResourceBlacklistRequestProto[] = target = ProtoMeta(ResourceBlacklistRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:blacklist_additions => Base.Vector{AbstractString}, :blacklist_removals => Base.Vector{AbstractString}] + meta(target, ResourceBlacklistRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceBlacklistRequestProto[] + end +end +function Base.getproperty(obj::ResourceBlacklistRequestProto, name::Symbol) + if name === :blacklist_additions + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :blacklist_removals + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + else + getfield(obj, name) + end +end mutable struct ApplicationTimeoutMapProto <: ProtoType - application_timeout_type::Int32 - timeout::Int64 - ApplicationTimeoutMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationTimeoutMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationTimeoutMapProto(; kwargs...) + obj = new(meta(ApplicationTimeoutMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationTimeoutMapProto +const __meta_ApplicationTimeoutMapProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationTimeoutMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationTimeoutMapProto) + __meta_ApplicationTimeoutMapProto[] = target = ProtoMeta(ApplicationTimeoutMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_timeout_type => Int32, :timeout => Int64] + meta(target, ApplicationTimeoutMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationTimeoutMapProto[] + end +end +function Base.getproperty(obj::ApplicationTimeoutMapProto, name::Symbol) + if name === :application_timeout_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :timeout + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ApplicationUpdateTimeoutMapProto <: ProtoType - application_timeout_type::Int32 - expire_time::AbstractString - ApplicationUpdateTimeoutMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationUpdateTimeoutMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationUpdateTimeoutMapProto(; kwargs...) + obj = new(meta(ApplicationUpdateTimeoutMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationUpdateTimeoutMapProto +const __meta_ApplicationUpdateTimeoutMapProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationUpdateTimeoutMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationUpdateTimeoutMapProto) + __meta_ApplicationUpdateTimeoutMapProto[] = target = ProtoMeta(ApplicationUpdateTimeoutMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_timeout_type => Int32, :expire_time => AbstractString] + meta(target, ApplicationUpdateTimeoutMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationUpdateTimeoutMapProto[] + end +end +function Base.getproperty(obj::ApplicationUpdateTimeoutMapProto, name::Symbol) + if name === :application_timeout_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :expire_time + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct LogAggregationContextProto <: ProtoType - include_pattern::AbstractString - exclude_pattern::AbstractString - rolled_logs_include_pattern::AbstractString - rolled_logs_exclude_pattern::AbstractString - log_aggregation_policy_class_name::AbstractString - log_aggregation_policy_parameters::AbstractString - LogAggregationContextProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct LogAggregationContextProto -const __val_LogAggregationContextProto = Dict(:include_pattern => ".*", :rolled_logs_exclude_pattern => ".*") -meta(t::Type{LogAggregationContextProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_LogAggregationContextProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function LogAggregationContextProto(; kwargs...) + obj = new(meta(LogAggregationContextProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct LogAggregationContextProto +const __meta_LogAggregationContextProto = Ref{ProtoMeta}() +function meta(::Type{LogAggregationContextProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_LogAggregationContextProto) + __meta_LogAggregationContextProto[] = target = ProtoMeta(LogAggregationContextProto) + val = Dict{Symbol,Any}(:include_pattern => ".*", :rolled_logs_exclude_pattern => ".*") + allflds = Pair{Symbol,Union{Type,String}}[:include_pattern => AbstractString, :exclude_pattern => AbstractString, :rolled_logs_include_pattern => AbstractString, :rolled_logs_exclude_pattern => AbstractString, :log_aggregation_policy_class_name => AbstractString, :log_aggregation_policy_parameters => AbstractString] + meta(target, LogAggregationContextProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_LogAggregationContextProto[] + end +end +function Base.getproperty(obj::LogAggregationContextProto, name::Symbol) + if name === :include_pattern + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :exclude_pattern + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :rolled_logs_include_pattern + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :rolled_logs_exclude_pattern + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :log_aggregation_policy_class_name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :log_aggregation_policy_parameters + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ApplicationACLMapProto <: ProtoType - accessType::Int32 - acl::AbstractString - ApplicationACLMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationACLMapProto -const __val_ApplicationACLMapProto = Dict(:acl => " ") -meta(t::Type{ApplicationACLMapProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ApplicationACLMapProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationACLMapProto(; kwargs...) + obj = new(meta(ApplicationACLMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationACLMapProto +const __meta_ApplicationACLMapProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationACLMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationACLMapProto) + __meta_ApplicationACLMapProto[] = target = ProtoMeta(ApplicationACLMapProto) + val = Dict{Symbol,Any}(:acl => " ") + allflds = Pair{Symbol,Union{Type,String}}[:accessType => Int32, :acl => AbstractString] + meta(target, ApplicationACLMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationACLMapProto[] + end +end +function Base.getproperty(obj::ApplicationACLMapProto, name::Symbol) + if name === :accessType + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :acl + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct YarnClusterMetricsProto <: ProtoType - num_node_managers::Int32 - num_decommissioned_nms::Int32 - num_active_nms::Int32 - num_lost_nms::Int32 - num_unhealthy_nms::Int32 - num_rebooted_nms::Int32 - YarnClusterMetricsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct YarnClusterMetricsProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function YarnClusterMetricsProto(; kwargs...) + obj = new(meta(YarnClusterMetricsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct YarnClusterMetricsProto +const __meta_YarnClusterMetricsProto = Ref{ProtoMeta}() +function meta(::Type{YarnClusterMetricsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_YarnClusterMetricsProto) + __meta_YarnClusterMetricsProto[] = target = ProtoMeta(YarnClusterMetricsProto) + allflds = Pair{Symbol,Union{Type,String}}[:num_node_managers => Int32, :num_decommissioned_nms => Int32, :num_active_nms => Int32, :num_lost_nms => Int32, :num_unhealthy_nms => Int32, :num_rebooted_nms => Int32] + meta(target, YarnClusterMetricsProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_YarnClusterMetricsProto[] + end +end +function Base.getproperty(obj::YarnClusterMetricsProto, name::Symbol) + if name === :num_node_managers + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :num_decommissioned_nms + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :num_active_nms + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :num_lost_nms + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :num_unhealthy_nms + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :num_rebooted_nms + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct QueueStatisticsProto <: ProtoType - numAppsSubmitted::Int64 - numAppsRunning::Int64 - numAppsPending::Int64 - numAppsCompleted::Int64 - numAppsKilled::Int64 - numAppsFailed::Int64 - numActiveUsers::Int64 - availableMemoryMB::Int64 - allocatedMemoryMB::Int64 - pendingMemoryMB::Int64 - reservedMemoryMB::Int64 - availableVCores::Int64 - allocatedVCores::Int64 - pendingVCores::Int64 - reservedVCores::Int64 - allocatedContainers::Int64 - pendingContainers::Int64 - reservedContainers::Int64 - QueueStatisticsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct QueueStatisticsProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function QueueStatisticsProto(; kwargs...) + obj = new(meta(QueueStatisticsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct QueueStatisticsProto +const __meta_QueueStatisticsProto = Ref{ProtoMeta}() +function meta(::Type{QueueStatisticsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_QueueStatisticsProto) + __meta_QueueStatisticsProto[] = target = ProtoMeta(QueueStatisticsProto) + allflds = Pair{Symbol,Union{Type,String}}[:numAppsSubmitted => Int64, :numAppsRunning => Int64, :numAppsPending => Int64, :numAppsCompleted => Int64, :numAppsKilled => Int64, :numAppsFailed => Int64, :numActiveUsers => Int64, :availableMemoryMB => Int64, :allocatedMemoryMB => Int64, :pendingMemoryMB => Int64, :reservedMemoryMB => Int64, :availableVCores => Int64, :allocatedVCores => Int64, :pendingVCores => Int64, :reservedVCores => Int64, :allocatedContainers => Int64, :pendingContainers => Int64, :reservedContainers => Int64] + meta(target, QueueStatisticsProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_QueueStatisticsProto[] + end +end +function Base.getproperty(obj::QueueStatisticsProto, name::Symbol) + if name === :numAppsSubmitted + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :numAppsRunning + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :numAppsPending + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :numAppsCompleted + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :numAppsKilled + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :numAppsFailed + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :numActiveUsers + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :availableMemoryMB + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :allocatedMemoryMB + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :pendingMemoryMB + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :reservedMemoryMB + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :availableVCores + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :allocatedVCores + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :pendingVCores + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :reservedVCores + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :allocatedContainers + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :pendingContainers + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :reservedContainers + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct QueueConfigurationsProto <: ProtoType - capacity::Float32 - absoluteCapacity::Float32 - maxCapacity::Float32 - absoluteMaxCapacity::Float32 - maxAMPercentage::Float32 - QueueConfigurationsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct QueueConfigurationsProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function QueueConfigurationsProto(; kwargs...) + obj = new(meta(QueueConfigurationsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct QueueConfigurationsProto +const __meta_QueueConfigurationsProto = Ref{ProtoMeta}() +function meta(::Type{QueueConfigurationsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_QueueConfigurationsProto) + __meta_QueueConfigurationsProto[] = target = ProtoMeta(QueueConfigurationsProto) + allflds = Pair{Symbol,Union{Type,String}}[:capacity => Float32, :absoluteCapacity => Float32, :maxCapacity => Float32, :absoluteMaxCapacity => Float32, :maxAMPercentage => Float32] + meta(target, QueueConfigurationsProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_QueueConfigurationsProto[] + end +end +function Base.getproperty(obj::QueueConfigurationsProto, name::Symbol) + if name === :capacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :absoluteCapacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :maxCapacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :absoluteMaxCapacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :maxAMPercentage + return (obj.__protobuf_jl_internal_values[name])::Float32 + else + getfield(obj, name) + end +end mutable struct QueueConfigurationsMapProto <: ProtoType - partitionName::AbstractString - queueConfigurations::QueueConfigurationsProto - QueueConfigurationsMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct QueueConfigurationsMapProto -const __req_QueueConfigurationsMapProto = Symbol[:partitionName] -meta(t::Type{QueueConfigurationsMapProto}) = meta(t, __req_QueueConfigurationsMapProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function QueueConfigurationsMapProto(; kwargs...) + obj = new(meta(QueueConfigurationsMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct QueueConfigurationsMapProto +const __meta_QueueConfigurationsMapProto = Ref{ProtoMeta}() +function meta(::Type{QueueConfigurationsMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_QueueConfigurationsMapProto) + __meta_QueueConfigurationsMapProto[] = target = ProtoMeta(QueueConfigurationsMapProto) + req = Symbol[:partitionName] + allflds = Pair{Symbol,Union{Type,String}}[:partitionName => AbstractString, :queueConfigurations => QueueConfigurationsProto] + meta(target, QueueConfigurationsMapProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_QueueConfigurationsMapProto[] + end +end +function Base.getproperty(obj::QueueConfigurationsMapProto, name::Symbol) + if name === :partitionName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :queueConfigurations + return (obj.__protobuf_jl_internal_values[name])::QueueConfigurationsProto + else + getfield(obj, name) + end +end mutable struct QueueInfoProto <: ProtoType - queueName::AbstractString - capacity::Float32 - maximumCapacity::Float32 - currentCapacity::Float32 - state::Int32 - childQueues::Base.Vector{QueueInfoProto} - applications::Base.Vector{ApplicationReportProto} - accessibleNodeLabels::Base.Vector{AbstractString} - defaultNodeLabelExpression::AbstractString - queueStatistics::QueueStatisticsProto - preemptionDisabled::Bool - queueConfigurationsMap::Base.Vector{QueueConfigurationsMapProto} - intraQueuePreemptionDisabled::Bool - QueueInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct QueueInfoProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function QueueInfoProto(; kwargs...) + obj = new(meta(QueueInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct QueueInfoProto +const __meta_QueueInfoProto = Ref{ProtoMeta}() +function meta(::Type{QueueInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_QueueInfoProto) + __meta_QueueInfoProto[] = target = ProtoMeta(QueueInfoProto) + allflds = Pair{Symbol,Union{Type,String}}[:queueName => AbstractString, :capacity => Float32, :maximumCapacity => Float32, :currentCapacity => Float32, :state => Int32, :childQueues => Base.Vector{QueueInfoProto}, :applications => Base.Vector{ApplicationReportProto}, :accessibleNodeLabels => Base.Vector{AbstractString}, :defaultNodeLabelExpression => AbstractString, :queueStatistics => QueueStatisticsProto, :preemptionDisabled => Bool, :queueConfigurationsMap => Base.Vector{QueueConfigurationsMapProto}, :intraQueuePreemptionDisabled => Bool] + meta(target, QueueInfoProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_QueueInfoProto[] + end +end +function Base.getproperty(obj::QueueInfoProto, name::Symbol) + if name === :queueName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :capacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :maximumCapacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :currentCapacity + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :childQueues + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{QueueInfoProto} + elseif name === :applications + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationReportProto} + elseif name === :accessibleNodeLabels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :defaultNodeLabelExpression + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :queueStatistics + return (obj.__protobuf_jl_internal_values[name])::QueueStatisticsProto + elseif name === :preemptionDisabled + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :queueConfigurationsMap + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{QueueConfigurationsMapProto} + elseif name === :intraQueuePreemptionDisabled + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct QueueUserACLInfoProto <: ProtoType - queueName::AbstractString - userAcls::Base.Vector{Int32} - QueueUserACLInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct QueueUserACLInfoProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function QueueUserACLInfoProto(; kwargs...) + obj = new(meta(QueueUserACLInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct QueueUserACLInfoProto +const __meta_QueueUserACLInfoProto = Ref{ProtoMeta}() +function meta(::Type{QueueUserACLInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_QueueUserACLInfoProto) + __meta_QueueUserACLInfoProto[] = target = ProtoMeta(QueueUserACLInfoProto) + allflds = Pair{Symbol,Union{Type,String}}[:queueName => AbstractString, :userAcls => Base.Vector{Int32}] + meta(target, QueueUserACLInfoProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_QueueUserACLInfoProto[] + end +end +function Base.getproperty(obj::QueueUserACLInfoProto, name::Symbol) + if name === :queueName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :userAcls + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct ReservationIdProto <: ProtoType - id::Int64 - cluster_timestamp::Int64 - ReservationIdProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationIdProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationIdProto(; kwargs...) + obj = new(meta(ReservationIdProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationIdProto +const __meta_ReservationIdProto = Ref{ProtoMeta}() +function meta(::Type{ReservationIdProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationIdProto) + __meta_ReservationIdProto[] = target = ProtoMeta(ReservationIdProto) + allflds = Pair{Symbol,Union{Type,String}}[:id => Int64, :cluster_timestamp => Int64] + meta(target, ReservationIdProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationIdProto[] + end +end +function Base.getproperty(obj::ReservationIdProto, name::Symbol) + if name === :id + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :cluster_timestamp + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ReservationRequestProto <: ProtoType - capability::ResourceProto - num_containers::Int32 - concurrency::Int32 - duration::Int64 - ReservationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationRequestProto -const __val_ReservationRequestProto = Dict(:num_containers => 1, :concurrency => 1, :duration => -1) -meta(t::Type{ReservationRequestProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ReservationRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationRequestProto(; kwargs...) + obj = new(meta(ReservationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationRequestProto +const __meta_ReservationRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReservationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationRequestProto) + __meta_ReservationRequestProto[] = target = ProtoMeta(ReservationRequestProto) + val = Dict{Symbol,Any}(:num_containers => 1, :concurrency => 1, :duration => -1) + allflds = Pair{Symbol,Union{Type,String}}[:capability => ResourceProto, :num_containers => Int32, :concurrency => Int32, :duration => Int64] + meta(target, ReservationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationRequestProto[] + end +end +function Base.getproperty(obj::ReservationRequestProto, name::Symbol) + if name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :num_containers + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :concurrency + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :duration + return (obj.__protobuf_jl_internal_values[name])::Int64 + else + getfield(obj, name) + end +end mutable struct ReservationRequestsProto <: ProtoType - reservation_resources::Base.Vector{ReservationRequestProto} - interpreter::Int32 - ReservationRequestsProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationRequestsProto -const __val_ReservationRequestsProto = Dict(:interpreter => ReservationRequestInterpreterProto.R_ALL) -meta(t::Type{ReservationRequestsProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ReservationRequestsProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationRequestsProto(; kwargs...) + obj = new(meta(ReservationRequestsProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationRequestsProto +const __meta_ReservationRequestsProto = Ref{ProtoMeta}() +function meta(::Type{ReservationRequestsProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationRequestsProto) + __meta_ReservationRequestsProto[] = target = ProtoMeta(ReservationRequestsProto) + val = Dict{Symbol,Any}(:interpreter => ReservationRequestInterpreterProto.R_ALL) + allflds = Pair{Symbol,Union{Type,String}}[:reservation_resources => Base.Vector{ReservationRequestProto}, :interpreter => Int32] + meta(target, ReservationRequestsProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationRequestsProto[] + end +end +function Base.getproperty(obj::ReservationRequestsProto, name::Symbol) + if name === :reservation_resources + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ReservationRequestProto} + elseif name === :interpreter + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct ReservationDefinitionProto <: ProtoType - reservation_requests::ReservationRequestsProto - arrival::Int64 - deadline::Int64 - reservation_name::AbstractString - recurrence_expression::AbstractString - priority::PriorityProto - ReservationDefinitionProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationDefinitionProto -const __val_ReservationDefinitionProto = Dict(:recurrence_expression => "0") -meta(t::Type{ReservationDefinitionProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ReservationDefinitionProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationDefinitionProto(; kwargs...) + obj = new(meta(ReservationDefinitionProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationDefinitionProto +const __meta_ReservationDefinitionProto = Ref{ProtoMeta}() +function meta(::Type{ReservationDefinitionProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationDefinitionProto) + __meta_ReservationDefinitionProto[] = target = ProtoMeta(ReservationDefinitionProto) + val = Dict{Symbol,Any}(:recurrence_expression => "0") + allflds = Pair{Symbol,Union{Type,String}}[:reservation_requests => ReservationRequestsProto, :arrival => Int64, :deadline => Int64, :reservation_name => AbstractString, :recurrence_expression => AbstractString, :priority => PriorityProto] + meta(target, ReservationDefinitionProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationDefinitionProto[] + end +end +function Base.getproperty(obj::ReservationDefinitionProto, name::Symbol) + if name === :reservation_requests + return (obj.__protobuf_jl_internal_values[name])::ReservationRequestsProto + elseif name === :arrival + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :deadline + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :reservation_name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :recurrence_expression + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + else + getfield(obj, name) + end +end mutable struct ResourceAllocationRequestProto <: ProtoType - start_time::Int64 - end_time::Int64 - resource::ResourceProto - ResourceAllocationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceAllocationRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceAllocationRequestProto(; kwargs...) + obj = new(meta(ResourceAllocationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceAllocationRequestProto +const __meta_ResourceAllocationRequestProto = Ref{ProtoMeta}() +function meta(::Type{ResourceAllocationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceAllocationRequestProto) + __meta_ResourceAllocationRequestProto[] = target = ProtoMeta(ResourceAllocationRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:start_time => Int64, :end_time => Int64, :resource => ResourceProto] + meta(target, ResourceAllocationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceAllocationRequestProto[] + end +end +function Base.getproperty(obj::ResourceAllocationRequestProto, name::Symbol) + if name === :start_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :end_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :resource + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + else + getfield(obj, name) + end +end mutable struct ReservationAllocationStateProto <: ProtoType - reservation_definition::ReservationDefinitionProto - allocation_requests::Base.Vector{ResourceAllocationRequestProto} - start_time::Int64 - end_time::Int64 - user::AbstractString - contains_gangs::Bool - acceptance_time::Int64 - reservation_id::ReservationIdProto - ReservationAllocationStateProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationAllocationStateProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationAllocationStateProto(; kwargs...) + obj = new(meta(ReservationAllocationStateProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationAllocationStateProto +const __meta_ReservationAllocationStateProto = Ref{ProtoMeta}() +function meta(::Type{ReservationAllocationStateProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationAllocationStateProto) + __meta_ReservationAllocationStateProto[] = target = ProtoMeta(ReservationAllocationStateProto) + allflds = Pair{Symbol,Union{Type,String}}[:reservation_definition => ReservationDefinitionProto, :allocation_requests => Base.Vector{ResourceAllocationRequestProto}, :start_time => Int64, :end_time => Int64, :user => AbstractString, :contains_gangs => Bool, :acceptance_time => Int64, :reservation_id => ReservationIdProto] + meta(target, ReservationAllocationStateProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationAllocationStateProto[] + end +end +function Base.getproperty(obj::ReservationAllocationStateProto, name::Symbol) + if name === :reservation_definition + return (obj.__protobuf_jl_internal_values[name])::ReservationDefinitionProto + elseif name === :allocation_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ResourceAllocationRequestProto} + elseif name === :start_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :end_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :user + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :contains_gangs + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :acceptance_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::ReservationIdProto + else + getfield(obj, name) + end +end mutable struct ContainerRetryContextProto <: ProtoType - retry_policy::Int32 - error_codes::Base.Vector{Int32} - max_retries::Int32 - retry_interval::Int32 - ContainerRetryContextProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerRetryContextProto -const __val_ContainerRetryContextProto = Dict(:retry_policy => ContainerRetryPolicyProto.NEVER_RETRY, :max_retries => 0, :retry_interval => 0) -meta(t::Type{ContainerRetryContextProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ContainerRetryContextProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerRetryContextProto(; kwargs...) + obj = new(meta(ContainerRetryContextProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerRetryContextProto +const __meta_ContainerRetryContextProto = Ref{ProtoMeta}() +function meta(::Type{ContainerRetryContextProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerRetryContextProto) + __meta_ContainerRetryContextProto[] = target = ProtoMeta(ContainerRetryContextProto) + val = Dict{Symbol,Any}(:retry_policy => ContainerRetryPolicyProto.NEVER_RETRY, :max_retries => 0, :retry_interval => 0) + allflds = Pair{Symbol,Union{Type,String}}[:retry_policy => Int32, :error_codes => Base.Vector{Int32}, :max_retries => Int32, :retry_interval => Int32] + meta(target, ContainerRetryContextProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerRetryContextProto[] + end +end +function Base.getproperty(obj::ContainerRetryContextProto, name::Symbol) + if name === :retry_policy + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :error_codes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + elseif name === :max_retries + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :retry_interval + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct StringLocalResourceMapProto <: ProtoType - key::AbstractString - value::LocalResourceProto - StringLocalResourceMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StringLocalResourceMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StringLocalResourceMapProto(; kwargs...) + obj = new(meta(StringLocalResourceMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StringLocalResourceMapProto +const __meta_StringLocalResourceMapProto = Ref{ProtoMeta}() +function meta(::Type{StringLocalResourceMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StringLocalResourceMapProto) + __meta_StringLocalResourceMapProto[] = target = ProtoMeta(StringLocalResourceMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:key => AbstractString, :value => LocalResourceProto] + meta(target, StringLocalResourceMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StringLocalResourceMapProto[] + end +end +function Base.getproperty(obj::StringLocalResourceMapProto, name::Symbol) + if name === :key + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :value + return (obj.__protobuf_jl_internal_values[name])::LocalResourceProto + else + getfield(obj, name) + end +end mutable struct StringStringMapProto <: ProtoType - key::AbstractString - value::AbstractString - StringStringMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StringStringMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StringStringMapProto(; kwargs...) + obj = new(meta(StringStringMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StringStringMapProto +const __meta_StringStringMapProto = Ref{ProtoMeta}() +function meta(::Type{StringStringMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StringStringMapProto) + __meta_StringStringMapProto[] = target = ProtoMeta(StringStringMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:key => AbstractString, :value => AbstractString] + meta(target, StringStringMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StringStringMapProto[] + end +end +function Base.getproperty(obj::StringStringMapProto, name::Symbol) + if name === :key + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :value + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ContainerStatusProto <: ProtoType - container_id::ContainerIdProto - state::Int32 - diagnostics::AbstractString - exit_status::Int32 - capability::ResourceProto - executionType::Int32 - container_attributes::Base.Vector{StringStringMapProto} - container_sub_state::Int32 - ContainerStatusProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerStatusProto -const __val_ContainerStatusProto = Dict(:diagnostics => "N/A", :exit_status => -1000, :executionType => ExecutionTypeProto.GUARANTEED) -meta(t::Type{ContainerStatusProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ContainerStatusProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerStatusProto(; kwargs...) + obj = new(meta(ContainerStatusProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerStatusProto +const __meta_ContainerStatusProto = Ref{ProtoMeta}() +function meta(::Type{ContainerStatusProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerStatusProto) + __meta_ContainerStatusProto[] = target = ProtoMeta(ContainerStatusProto) + val = Dict{Symbol,Any}(:diagnostics => "N/A", :exit_status => -1000, :executionType => ExecutionTypeProto.GUARANTEED) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :state => Int32, :diagnostics => AbstractString, :exit_status => Int32, :capability => ResourceProto, :executionType => Int32, :container_attributes => Base.Vector{StringStringMapProto}, :container_sub_state => Int32] + meta(target, ContainerStatusProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerStatusProto[] + end +end +function Base.getproperty(obj::ContainerStatusProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :state + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :diagnostics + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :exit_status + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :executionType + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :container_attributes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringStringMapProto} + elseif name === :container_sub_state + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct StringBytesMapProto <: ProtoType - key::AbstractString - value::Array{UInt8,1} - StringBytesMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StringBytesMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StringBytesMapProto(; kwargs...) + obj = new(meta(StringBytesMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StringBytesMapProto +const __meta_StringBytesMapProto = Ref{ProtoMeta}() +function meta(::Type{StringBytesMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StringBytesMapProto) + __meta_StringBytesMapProto[] = target = ProtoMeta(StringBytesMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:key => AbstractString, :value => Array{UInt8,1}] + meta(target, StringBytesMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StringBytesMapProto[] + end +end +function Base.getproperty(obj::StringBytesMapProto, name::Symbol) + if name === :key + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :value + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct ContainerLaunchContextProto <: ProtoType - localResources::Base.Vector{StringLocalResourceMapProto} - tokens::Array{UInt8,1} - service_data::Base.Vector{StringBytesMapProto} - environment::Base.Vector{StringStringMapProto} - command::Base.Vector{AbstractString} - application_ACLs::Base.Vector{ApplicationACLMapProto} - container_retry_context::ContainerRetryContextProto - tokens_conf::Array{UInt8,1} - ContainerLaunchContextProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerLaunchContextProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerLaunchContextProto(; kwargs...) + obj = new(meta(ContainerLaunchContextProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerLaunchContextProto +const __meta_ContainerLaunchContextProto = Ref{ProtoMeta}() +function meta(::Type{ContainerLaunchContextProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerLaunchContextProto) + __meta_ContainerLaunchContextProto[] = target = ProtoMeta(ContainerLaunchContextProto) + allflds = Pair{Symbol,Union{Type,String}}[:localResources => Base.Vector{StringLocalResourceMapProto}, :tokens => Array{UInt8,1}, :service_data => Base.Vector{StringBytesMapProto}, :environment => Base.Vector{StringStringMapProto}, :command => Base.Vector{AbstractString}, :application_ACLs => Base.Vector{ApplicationACLMapProto}, :container_retry_context => ContainerRetryContextProto, :tokens_conf => Array{UInt8,1}] + meta(target, ContainerLaunchContextProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerLaunchContextProto[] + end +end +function Base.getproperty(obj::ContainerLaunchContextProto, name::Symbol) + if name === :localResources + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringLocalResourceMapProto} + elseif name === :tokens + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :service_data + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringBytesMapProto} + elseif name === :environment + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringStringMapProto} + elseif name === :command + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :application_ACLs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationACLMapProto} + elseif name === :container_retry_context + return (obj.__protobuf_jl_internal_values[name])::ContainerRetryContextProto + elseif name === :tokens_conf + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + else + getfield(obj, name) + end +end mutable struct ApplicationSubmissionContextProto <: ProtoType - application_id::ApplicationIdProto - application_name::AbstractString - queue::AbstractString - priority::PriorityProto - am_container_spec::ContainerLaunchContextProto - cancel_tokens_when_complete::Bool - unmanaged_am::Bool - maxAppAttempts::Int32 - resource::ResourceProto - applicationType::AbstractString - keep_containers_across_application_attempts::Bool - applicationTags::Base.Vector{AbstractString} - attempt_failures_validity_interval::Int64 - log_aggregation_context::LogAggregationContextProto - reservation_id::ReservationIdProto - node_label_expression::AbstractString - am_container_resource_request::Base.Vector{ResourceRequestProto} - application_timeouts::Base.Vector{ApplicationTimeoutMapProto} - ApplicationSubmissionContextProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ApplicationSubmissionContextProto -const __val_ApplicationSubmissionContextProto = Dict(:application_name => "N/A", :queue => "default", :cancel_tokens_when_complete => true, :unmanaged_am => false, :maxAppAttempts => 0, :applicationType => "YARN", :keep_containers_across_application_attempts => false, :attempt_failures_validity_interval => -1) -meta(t::Type{ApplicationSubmissionContextProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ApplicationSubmissionContextProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ApplicationSubmissionContextProto(; kwargs...) + obj = new(meta(ApplicationSubmissionContextProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ApplicationSubmissionContextProto +const __meta_ApplicationSubmissionContextProto = Ref{ProtoMeta}() +function meta(::Type{ApplicationSubmissionContextProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ApplicationSubmissionContextProto) + __meta_ApplicationSubmissionContextProto[] = target = ProtoMeta(ApplicationSubmissionContextProto) + val = Dict{Symbol,Any}(:application_name => "N/A", :queue => "default", :cancel_tokens_when_complete => true, :unmanaged_am => false, :maxAppAttempts => 0, :applicationType => "YARN", :keep_containers_across_application_attempts => false, :attempt_failures_validity_interval => -1) + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto, :application_name => AbstractString, :queue => AbstractString, :priority => PriorityProto, :am_container_spec => ContainerLaunchContextProto, :cancel_tokens_when_complete => Bool, :unmanaged_am => Bool, :maxAppAttempts => Int32, :resource => ResourceProto, :applicationType => AbstractString, :keep_containers_across_application_attempts => Bool, :applicationTags => Base.Vector{AbstractString}, :attempt_failures_validity_interval => Int64, :log_aggregation_context => LogAggregationContextProto, :reservation_id => ReservationIdProto, :node_label_expression => AbstractString, :am_container_resource_request => Base.Vector{ResourceRequestProto}, :application_timeouts => Base.Vector{ApplicationTimeoutMapProto}] + meta(target, ApplicationSubmissionContextProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ApplicationSubmissionContextProto[] + end +end +function Base.getproperty(obj::ApplicationSubmissionContextProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :application_name + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :queue + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + elseif name === :am_container_spec + return (obj.__protobuf_jl_internal_values[name])::ContainerLaunchContextProto + elseif name === :cancel_tokens_when_complete + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :unmanaged_am + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :maxAppAttempts + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :resource + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :applicationType + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :keep_containers_across_application_attempts + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :applicationTags + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :attempt_failures_validity_interval + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :log_aggregation_context + return (obj.__protobuf_jl_internal_values[name])::LogAggregationContextProto + elseif name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::ReservationIdProto + elseif name === :node_label_expression + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :am_container_resource_request + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ResourceRequestProto} + elseif name === :application_timeouts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationTimeoutMapProto} + else + getfield(obj, name) + end +end mutable struct ContainerResourceIncreaseRequestProto <: ProtoType - container_id::ContainerIdProto - capability::ResourceProto - ContainerResourceIncreaseRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerResourceIncreaseRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerResourceIncreaseRequestProto(; kwargs...) + obj = new(meta(ContainerResourceIncreaseRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerResourceIncreaseRequestProto +const __meta_ContainerResourceIncreaseRequestProto = Ref{ProtoMeta}() +function meta(::Type{ContainerResourceIncreaseRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerResourceIncreaseRequestProto) + __meta_ContainerResourceIncreaseRequestProto[] = target = ProtoMeta(ContainerResourceIncreaseRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :capability => ResourceProto] + meta(target, ContainerResourceIncreaseRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerResourceIncreaseRequestProto[] + end +end +function Base.getproperty(obj::ContainerResourceIncreaseRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + else + getfield(obj, name) + end +end mutable struct ContainerResourceIncreaseProto <: ProtoType - container_id::ContainerIdProto - capability::ResourceProto - container_token::hadoop.common.TokenProto - ContainerResourceIncreaseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerResourceIncreaseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerResourceIncreaseProto(; kwargs...) + obj = new(meta(ContainerResourceIncreaseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerResourceIncreaseProto +const __meta_ContainerResourceIncreaseProto = Ref{ProtoMeta}() +function meta(::Type{ContainerResourceIncreaseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerResourceIncreaseProto) + __meta_ContainerResourceIncreaseProto[] = target = ProtoMeta(ContainerResourceIncreaseProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :capability => ResourceProto, :container_token => hadoop.common.TokenProto] + meta(target, ContainerResourceIncreaseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerResourceIncreaseProto[] + end +end +function Base.getproperty(obj::ContainerResourceIncreaseProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :container_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + else + getfield(obj, name) + end +end mutable struct ContainerResourceDecreaseProto <: ProtoType - container_id::ContainerIdProto - capability::ResourceProto - ContainerResourceDecreaseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerResourceDecreaseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerResourceDecreaseProto(; kwargs...) + obj = new(meta(ContainerResourceDecreaseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerResourceDecreaseProto +const __meta_ContainerResourceDecreaseProto = Ref{ProtoMeta}() +function meta(::Type{ContainerResourceDecreaseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerResourceDecreaseProto) + __meta_ContainerResourceDecreaseProto[] = target = ProtoMeta(ContainerResourceDecreaseProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :capability => ResourceProto] + meta(target, ContainerResourceDecreaseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerResourceDecreaseProto[] + end +end +function Base.getproperty(obj::ContainerResourceDecreaseProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + else + getfield(obj, name) + end +end mutable struct CollectorInfoProto <: ProtoType - collector_addr::AbstractString - collector_token::hadoop.common.TokenProto - CollectorInfoProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CollectorInfoProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CollectorInfoProto(; kwargs...) + obj = new(meta(CollectorInfoProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CollectorInfoProto +const __meta_CollectorInfoProto = Ref{ProtoMeta}() +function meta(::Type{CollectorInfoProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CollectorInfoProto) + __meta_CollectorInfoProto[] = target = ProtoMeta(CollectorInfoProto) + allflds = Pair{Symbol,Union{Type,String}}[:collector_addr => AbstractString, :collector_token => hadoop.common.TokenProto] + meta(target, CollectorInfoProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CollectorInfoProto[] + end +end +function Base.getproperty(obj::CollectorInfoProto, name::Symbol) + if name === :collector_addr + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :collector_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + else + getfield(obj, name) + end +end export ResourceTypesProto, ContainerStateProto, ContainerSubStateProto, YarnApplicationStateProto, YarnApplicationAttemptStateProto, FinalApplicationStatusProto, LocalResourceVisibilityProto, LocalResourceTypeProto, LogAggregationStatusProto, NodeStateProto, ContainerTypeProto, ExecutionTypeProto, AMCommandProto, ApplicationTimeoutTypeProto, ApplicationAccessTypeProto, QueueStateProto, QueueACLProto, SignalContainerCommandProto, ReservationRequestInterpreterProto, ContainerExitStatusProto, ContainerRetryPolicyProto, SerializedExceptionProto, ApplicationIdProto, ApplicationAttemptIdProto, ContainerIdProto, ResourceInformationProto, ResourceTypeInfoProto, ResourceProto, ResourceUtilizationProto, ResourceOptionProto, NodeResourceMapProto, PriorityProto, ContainerProto, ContainerReportProto, URLProto, LocalResourceProto, StringLongMapProto, ApplicationResourceUsageReportProto, ApplicationReportProto, AppTimeoutsMapProto, ApplicationTimeoutProto, ApplicationAttemptReportProto, NodeIdProto, NodeReportProto, NodeIdToLabelsProto, LabelsToNodeIdsProto, NodeLabelProto, AMBlackListingRequestProto, ResourceRequestProto, ExecutionTypeRequestProto, PreemptionMessageProto, StrictPreemptionContractProto, PreemptionContractProto, PreemptionContainerProto, PreemptionResourceRequestProto, ResourceBlacklistRequestProto, ApplicationSubmissionContextProto, ApplicationTimeoutMapProto, ApplicationUpdateTimeoutMapProto, LogAggregationContextProto, ApplicationACLMapProto, YarnClusterMetricsProto, QueueStatisticsProto, QueueInfoProto, QueueConfigurationsProto, QueueConfigurationsMapProto, QueueUserACLInfoProto, ReservationIdProto, ReservationRequestProto, ReservationRequestsProto, ReservationDefinitionProto, ResourceAllocationRequestProto, ReservationAllocationStateProto, ContainerLaunchContextProto, ContainerStatusProto, ContainerRetryContextProto, StringLocalResourceMapProto, StringStringMapProto, StringBytesMapProto, ContainerResourceIncreaseRequestProto, ContainerResourceIncreaseProto, ContainerResourceDecreaseProto, CollectorInfoProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/hadoop/yarn_service_protos_pb.jl b/src/hadoop/yarn_service_protos_pb.jl index fad357c..9eec728 100644 --- a/src/hadoop/yarn_service_protos_pb.jl +++ b/src/hadoop/yarn_service_protos_pb.jl @@ -1,572 +1,3356 @@ # syntax: proto2 +# COV_EXCL_START using ProtoBuf import ProtoBuf.meta import ..hadoop -struct __enum_ContainerUpdateTypeProto <: ProtoEnum - INCREASE_RESOURCE::Int32 - DECREASE_RESOURCE::Int32 - PROMOTE_EXECUTION_TYPE::Int32 - DEMOTE_EXECUTION_TYPE::Int32 - __enum_ContainerUpdateTypeProto() = new(0,1,2,3) -end #struct __enum_ContainerUpdateTypeProto -const ContainerUpdateTypeProto = __enum_ContainerUpdateTypeProto() - -struct __enum_SchedulerResourceTypes <: ProtoEnum - MEMORY::Int32 - CPU::Int32 - __enum_SchedulerResourceTypes() = new(0,1) -end #struct __enum_SchedulerResourceTypes -const SchedulerResourceTypes = __enum_SchedulerResourceTypes() - -struct __enum_ApplicationsRequestScopeProto <: ProtoEnum - ALL::Int32 - VIEWABLE::Int32 - OWN::Int32 - __enum_ApplicationsRequestScopeProto() = new(0,1,2) -end #struct __enum_ApplicationsRequestScopeProto -const ApplicationsRequestScopeProto = __enum_ApplicationsRequestScopeProto() +const ContainerUpdateTypeProto = (;[ + Symbol("INCREASE_RESOURCE") => Int32(0), + Symbol("DECREASE_RESOURCE") => Int32(1), + Symbol("PROMOTE_EXECUTION_TYPE") => Int32(2), + Symbol("DEMOTE_EXECUTION_TYPE") => Int32(3), +]...) + +const SchedulerResourceTypes = (;[ + Symbol("MEMORY") => Int32(0), + Symbol("CPU") => Int32(1), +]...) + +const ApplicationsRequestScopeProto = (;[ + Symbol("ALL") => Int32(0), + Symbol("VIEWABLE") => Int32(1), + Symbol("OWN") => Int32(2), +]...) mutable struct RegisterApplicationMasterRequestProto <: ProtoType - host::AbstractString - rpc_port::Int32 - tracking_url::AbstractString - RegisterApplicationMasterRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RegisterApplicationMasterRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RegisterApplicationMasterRequestProto(; kwargs...) + obj = new(meta(RegisterApplicationMasterRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RegisterApplicationMasterRequestProto +const __meta_RegisterApplicationMasterRequestProto = Ref{ProtoMeta}() +function meta(::Type{RegisterApplicationMasterRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RegisterApplicationMasterRequestProto) + __meta_RegisterApplicationMasterRequestProto[] = target = ProtoMeta(RegisterApplicationMasterRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:host => AbstractString, :rpc_port => Int32, :tracking_url => AbstractString] + meta(target, RegisterApplicationMasterRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RegisterApplicationMasterRequestProto[] + end +end +function Base.getproperty(obj::RegisterApplicationMasterRequestProto, name::Symbol) + if name === :host + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :rpc_port + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :tracking_url + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct FinishApplicationMasterRequestProto <: ProtoType - diagnostics::AbstractString - tracking_url::AbstractString - final_application_status::Int32 - FinishApplicationMasterRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FinishApplicationMasterRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FinishApplicationMasterRequestProto(; kwargs...) + obj = new(meta(FinishApplicationMasterRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FinishApplicationMasterRequestProto +const __meta_FinishApplicationMasterRequestProto = Ref{ProtoMeta}() +function meta(::Type{FinishApplicationMasterRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FinishApplicationMasterRequestProto) + __meta_FinishApplicationMasterRequestProto[] = target = ProtoMeta(FinishApplicationMasterRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:diagnostics => AbstractString, :tracking_url => AbstractString, :final_application_status => Int32] + meta(target, FinishApplicationMasterRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FinishApplicationMasterRequestProto[] + end +end +function Base.getproperty(obj::FinishApplicationMasterRequestProto, name::Symbol) + if name === :diagnostics + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :tracking_url + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :final_application_status + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct FinishApplicationMasterResponseProto <: ProtoType - isUnregistered::Bool - FinishApplicationMasterResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FinishApplicationMasterResponseProto -const __val_FinishApplicationMasterResponseProto = Dict(:isUnregistered => false) -meta(t::Type{FinishApplicationMasterResponseProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_FinishApplicationMasterResponseProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FinishApplicationMasterResponseProto(; kwargs...) + obj = new(meta(FinishApplicationMasterResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FinishApplicationMasterResponseProto +const __meta_FinishApplicationMasterResponseProto = Ref{ProtoMeta}() +function meta(::Type{FinishApplicationMasterResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FinishApplicationMasterResponseProto) + __meta_FinishApplicationMasterResponseProto[] = target = ProtoMeta(FinishApplicationMasterResponseProto) + val = Dict{Symbol,Any}(:isUnregistered => false) + allflds = Pair{Symbol,Union{Type,String}}[:isUnregistered => Bool] + meta(target, FinishApplicationMasterResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FinishApplicationMasterResponseProto[] + end +end +function Base.getproperty(obj::FinishApplicationMasterResponseProto, name::Symbol) + if name === :isUnregistered + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct UpdateContainerRequestProto <: ProtoType - container_version::Int32 - container_id::ContainerIdProto - update_type::Int32 - capability::ResourceProto - execution_type::Int32 - UpdateContainerRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateContainerRequestProto -const __req_UpdateContainerRequestProto = Symbol[:container_version,:container_id,:update_type] -meta(t::Type{UpdateContainerRequestProto}) = meta(t, __req_UpdateContainerRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateContainerRequestProto(; kwargs...) + obj = new(meta(UpdateContainerRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateContainerRequestProto +const __meta_UpdateContainerRequestProto = Ref{ProtoMeta}() +function meta(::Type{UpdateContainerRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateContainerRequestProto) + __meta_UpdateContainerRequestProto[] = target = ProtoMeta(UpdateContainerRequestProto) + req = Symbol[:container_version,:container_id,:update_type] + allflds = Pair{Symbol,Union{Type,String}}[:container_version => Int32, :container_id => ContainerIdProto, :update_type => Int32, :capability => ResourceProto, :execution_type => Int32] + meta(target, UpdateContainerRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateContainerRequestProto[] + end +end +function Base.getproperty(obj::UpdateContainerRequestProto, name::Symbol) + if name === :container_version + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :update_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :capability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :execution_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct UpdateContainerErrorProto <: ProtoType - reason::AbstractString - update_request::UpdateContainerRequestProto - current_container_version::Int32 - UpdateContainerErrorProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateContainerErrorProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateContainerErrorProto(; kwargs...) + obj = new(meta(UpdateContainerErrorProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateContainerErrorProto +const __meta_UpdateContainerErrorProto = Ref{ProtoMeta}() +function meta(::Type{UpdateContainerErrorProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateContainerErrorProto) + __meta_UpdateContainerErrorProto[] = target = ProtoMeta(UpdateContainerErrorProto) + allflds = Pair{Symbol,Union{Type,String}}[:reason => AbstractString, :update_request => UpdateContainerRequestProto, :current_container_version => Int32] + meta(target, UpdateContainerErrorProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateContainerErrorProto[] + end +end +function Base.getproperty(obj::UpdateContainerErrorProto, name::Symbol) + if name === :reason + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :update_request + return (obj.__protobuf_jl_internal_values[name])::UpdateContainerRequestProto + elseif name === :current_container_version + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct AllocateRequestProto <: ProtoType - ask::Base.Vector{ResourceRequestProto} - release::Base.Vector{ContainerIdProto} - blacklist_request::ResourceBlacklistRequestProto - response_id::Int32 - progress::Float32 - increase_request::Base.Vector{ContainerResourceIncreaseRequestProto} - update_requests::Base.Vector{UpdateContainerRequestProto} - tracking_url::AbstractString - AllocateRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AllocateRequestProto -const __fnum_AllocateRequestProto = Int[1,2,3,4,5,6,7,11] -meta(t::Type{AllocateRequestProto}) = meta(t, ProtoBuf.DEF_REQ, __fnum_AllocateRequestProto, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AllocateRequestProto(; kwargs...) + obj = new(meta(AllocateRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AllocateRequestProto +const __meta_AllocateRequestProto = Ref{ProtoMeta}() +function meta(::Type{AllocateRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AllocateRequestProto) + __meta_AllocateRequestProto[] = target = ProtoMeta(AllocateRequestProto) + fnum = Int[1,2,3,4,5,6,7,11] + allflds = Pair{Symbol,Union{Type,String}}[:ask => Base.Vector{ResourceRequestProto}, :release => Base.Vector{ContainerIdProto}, :blacklist_request => ResourceBlacklistRequestProto, :response_id => Int32, :progress => Float32, :increase_request => Base.Vector{ContainerResourceIncreaseRequestProto}, :update_requests => Base.Vector{UpdateContainerRequestProto}, :tracking_url => AbstractString] + meta(target, AllocateRequestProto, allflds, ProtoBuf.DEF_REQ, fnum, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AllocateRequestProto[] + end +end +function Base.getproperty(obj::AllocateRequestProto, name::Symbol) + if name === :ask + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ResourceRequestProto} + elseif name === :release + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + elseif name === :blacklist_request + return (obj.__protobuf_jl_internal_values[name])::ResourceBlacklistRequestProto + elseif name === :response_id + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :progress + return (obj.__protobuf_jl_internal_values[name])::Float32 + elseif name === :increase_request + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerResourceIncreaseRequestProto} + elseif name === :update_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{UpdateContainerRequestProto} + elseif name === :tracking_url + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct NMTokenProto <: ProtoType - nodeId::NodeIdProto - token::hadoop.common.TokenProto - NMTokenProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct NMTokenProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function NMTokenProto(; kwargs...) + obj = new(meta(NMTokenProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct NMTokenProto +const __meta_NMTokenProto = Ref{ProtoMeta}() +function meta(::Type{NMTokenProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_NMTokenProto) + __meta_NMTokenProto[] = target = ProtoMeta(NMTokenProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeId => NodeIdProto, :token => hadoop.common.TokenProto] + meta(target, NMTokenProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_NMTokenProto[] + end +end +function Base.getproperty(obj::NMTokenProto, name::Symbol) + if name === :nodeId + return (obj.__protobuf_jl_internal_values[name])::NodeIdProto + elseif name === :token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + else + getfield(obj, name) + end +end mutable struct RegisterApplicationMasterResponseProto <: ProtoType - maximumCapability::ResourceProto - client_to_am_token_master_key::Array{UInt8,1} - application_ACLs::Base.Vector{ApplicationACLMapProto} - containers_from_previous_attempts::Base.Vector{ContainerProto} - queue::AbstractString - nm_tokens_from_previous_attempts::Base.Vector{NMTokenProto} - scheduler_resource_types::Base.Vector{Int32} - RegisterApplicationMasterResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RegisterApplicationMasterResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RegisterApplicationMasterResponseProto(; kwargs...) + obj = new(meta(RegisterApplicationMasterResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RegisterApplicationMasterResponseProto +const __meta_RegisterApplicationMasterResponseProto = Ref{ProtoMeta}() +function meta(::Type{RegisterApplicationMasterResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RegisterApplicationMasterResponseProto) + __meta_RegisterApplicationMasterResponseProto[] = target = ProtoMeta(RegisterApplicationMasterResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:maximumCapability => ResourceProto, :client_to_am_token_master_key => Array{UInt8,1}, :application_ACLs => Base.Vector{ApplicationACLMapProto}, :containers_from_previous_attempts => Base.Vector{ContainerProto}, :queue => AbstractString, :nm_tokens_from_previous_attempts => Base.Vector{NMTokenProto}, :scheduler_resource_types => Base.Vector{Int32}] + meta(target, RegisterApplicationMasterResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RegisterApplicationMasterResponseProto[] + end +end +function Base.getproperty(obj::RegisterApplicationMasterResponseProto, name::Symbol) + if name === :maximumCapability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :client_to_am_token_master_key + return (obj.__protobuf_jl_internal_values[name])::Array{UInt8,1} + elseif name === :application_ACLs + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationACLMapProto} + elseif name === :containers_from_previous_attempts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerProto} + elseif name === :queue + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :nm_tokens_from_previous_attempts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NMTokenProto} + elseif name === :scheduler_resource_types + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct UpdatedContainerProto <: ProtoType - update_type::Int32 - container::ContainerProto - UpdatedContainerProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdatedContainerProto -const __req_UpdatedContainerProto = Symbol[:update_type,:container] -meta(t::Type{UpdatedContainerProto}) = meta(t, __req_UpdatedContainerProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdatedContainerProto(; kwargs...) + obj = new(meta(UpdatedContainerProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdatedContainerProto +const __meta_UpdatedContainerProto = Ref{ProtoMeta}() +function meta(::Type{UpdatedContainerProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdatedContainerProto) + __meta_UpdatedContainerProto[] = target = ProtoMeta(UpdatedContainerProto) + req = Symbol[:update_type,:container] + allflds = Pair{Symbol,Union{Type,String}}[:update_type => Int32, :container => ContainerProto] + meta(target, UpdatedContainerProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdatedContainerProto[] + end +end +function Base.getproperty(obj::UpdatedContainerProto, name::Symbol) + if name === :update_type + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :container + return (obj.__protobuf_jl_internal_values[name])::ContainerProto + else + getfield(obj, name) + end +end mutable struct AllocateResponseProto <: ProtoType - a_m_command::Int32 - response_id::Int32 - allocated_containers::Base.Vector{ContainerProto} - completed_container_statuses::Base.Vector{ContainerStatusProto} - limit::ResourceProto - updated_nodes::Base.Vector{NodeReportProto} - num_cluster_nodes::Int32 - preempt::PreemptionMessageProto - nm_tokens::Base.Vector{NMTokenProto} - increased_containers::Base.Vector{ContainerResourceIncreaseProto} - decreased_containers::Base.Vector{ContainerResourceDecreaseProto} - am_rm_token::hadoop.common.TokenProto - application_priority::PriorityProto - collector_info::CollectorInfoProto - update_errors::Base.Vector{UpdateContainerErrorProto} - updated_containers::Base.Vector{UpdatedContainerProto} - AllocateResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct AllocateResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function AllocateResponseProto(; kwargs...) + obj = new(meta(AllocateResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct AllocateResponseProto +const __meta_AllocateResponseProto = Ref{ProtoMeta}() +function meta(::Type{AllocateResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_AllocateResponseProto) + __meta_AllocateResponseProto[] = target = ProtoMeta(AllocateResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:a_m_command => Int32, :response_id => Int32, :allocated_containers => Base.Vector{ContainerProto}, :completed_container_statuses => Base.Vector{ContainerStatusProto}, :limit => ResourceProto, :updated_nodes => Base.Vector{NodeReportProto}, :num_cluster_nodes => Int32, :preempt => PreemptionMessageProto, :nm_tokens => Base.Vector{NMTokenProto}, :increased_containers => Base.Vector{ContainerResourceIncreaseProto}, :decreased_containers => Base.Vector{ContainerResourceDecreaseProto}, :am_rm_token => hadoop.common.TokenProto, :application_priority => PriorityProto, :collector_info => CollectorInfoProto, :update_errors => Base.Vector{UpdateContainerErrorProto}, :updated_containers => Base.Vector{UpdatedContainerProto}] + meta(target, AllocateResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_AllocateResponseProto[] + end +end +function Base.getproperty(obj::AllocateResponseProto, name::Symbol) + if name === :a_m_command + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :response_id + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :allocated_containers + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerProto} + elseif name === :completed_container_statuses + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerStatusProto} + elseif name === :limit + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + elseif name === :updated_nodes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NodeReportProto} + elseif name === :num_cluster_nodes + return (obj.__protobuf_jl_internal_values[name])::Int32 + elseif name === :preempt + return (obj.__protobuf_jl_internal_values[name])::PreemptionMessageProto + elseif name === :nm_tokens + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NMTokenProto} + elseif name === :increased_containers + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerResourceIncreaseProto} + elseif name === :decreased_containers + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerResourceDecreaseProto} + elseif name === :am_rm_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + elseif name === :application_priority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + elseif name === :collector_info + return (obj.__protobuf_jl_internal_values[name])::CollectorInfoProto + elseif name === :update_errors + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{UpdateContainerErrorProto} + elseif name === :updated_containers + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{UpdatedContainerProto} + else + getfield(obj, name) + end +end mutable struct GetNewApplicationRequestProto <: ProtoType - GetNewApplicationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetNewApplicationRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetNewApplicationRequestProto(; kwargs...) + obj = new(meta(GetNewApplicationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetNewApplicationRequestProto +const __meta_GetNewApplicationRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetNewApplicationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetNewApplicationRequestProto) + __meta_GetNewApplicationRequestProto[] = target = ProtoMeta(GetNewApplicationRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetNewApplicationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetNewApplicationRequestProto[] + end +end mutable struct GetNewApplicationResponseProto <: ProtoType - application_id::ApplicationIdProto - maximumCapability::ResourceProto - GetNewApplicationResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetNewApplicationResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetNewApplicationResponseProto(; kwargs...) + obj = new(meta(GetNewApplicationResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetNewApplicationResponseProto +const __meta_GetNewApplicationResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetNewApplicationResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetNewApplicationResponseProto) + __meta_GetNewApplicationResponseProto[] = target = ProtoMeta(GetNewApplicationResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto, :maximumCapability => ResourceProto] + meta(target, GetNewApplicationResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetNewApplicationResponseProto[] + end +end +function Base.getproperty(obj::GetNewApplicationResponseProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :maximumCapability + return (obj.__protobuf_jl_internal_values[name])::ResourceProto + else + getfield(obj, name) + end +end mutable struct GetApplicationReportRequestProto <: ProtoType - application_id::ApplicationIdProto - GetApplicationReportRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationReportRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationReportRequestProto(; kwargs...) + obj = new(meta(GetApplicationReportRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationReportRequestProto +const __meta_GetApplicationReportRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationReportRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationReportRequestProto) + __meta_GetApplicationReportRequestProto[] = target = ProtoMeta(GetApplicationReportRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto] + meta(target, GetApplicationReportRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationReportRequestProto[] + end +end +function Base.getproperty(obj::GetApplicationReportRequestProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + else + getfield(obj, name) + end +end mutable struct GetApplicationReportResponseProto <: ProtoType - application_report::ApplicationReportProto - GetApplicationReportResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationReportResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationReportResponseProto(; kwargs...) + obj = new(meta(GetApplicationReportResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationReportResponseProto +const __meta_GetApplicationReportResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationReportResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationReportResponseProto) + __meta_GetApplicationReportResponseProto[] = target = ProtoMeta(GetApplicationReportResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_report => ApplicationReportProto] + meta(target, GetApplicationReportResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationReportResponseProto[] + end +end +function Base.getproperty(obj::GetApplicationReportResponseProto, name::Symbol) + if name === :application_report + return (obj.__protobuf_jl_internal_values[name])::ApplicationReportProto + else + getfield(obj, name) + end +end mutable struct SubmitApplicationRequestProto <: ProtoType - application_submission_context::ApplicationSubmissionContextProto - SubmitApplicationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SubmitApplicationRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SubmitApplicationRequestProto(; kwargs...) + obj = new(meta(SubmitApplicationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SubmitApplicationRequestProto +const __meta_SubmitApplicationRequestProto = Ref{ProtoMeta}() +function meta(::Type{SubmitApplicationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SubmitApplicationRequestProto) + __meta_SubmitApplicationRequestProto[] = target = ProtoMeta(SubmitApplicationRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_submission_context => ApplicationSubmissionContextProto] + meta(target, SubmitApplicationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SubmitApplicationRequestProto[] + end +end +function Base.getproperty(obj::SubmitApplicationRequestProto, name::Symbol) + if name === :application_submission_context + return (obj.__protobuf_jl_internal_values[name])::ApplicationSubmissionContextProto + else + getfield(obj, name) + end +end mutable struct SubmitApplicationResponseProto <: ProtoType - SubmitApplicationResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SubmitApplicationResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SubmitApplicationResponseProto(; kwargs...) + obj = new(meta(SubmitApplicationResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SubmitApplicationResponseProto +const __meta_SubmitApplicationResponseProto = Ref{ProtoMeta}() +function meta(::Type{SubmitApplicationResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SubmitApplicationResponseProto) + __meta_SubmitApplicationResponseProto[] = target = ProtoMeta(SubmitApplicationResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SubmitApplicationResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SubmitApplicationResponseProto[] + end +end mutable struct FailApplicationAttemptRequestProto <: ProtoType - application_attempt_id::ApplicationAttemptIdProto - FailApplicationAttemptRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FailApplicationAttemptRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FailApplicationAttemptRequestProto(; kwargs...) + obj = new(meta(FailApplicationAttemptRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FailApplicationAttemptRequestProto +const __meta_FailApplicationAttemptRequestProto = Ref{ProtoMeta}() +function meta(::Type{FailApplicationAttemptRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FailApplicationAttemptRequestProto) + __meta_FailApplicationAttemptRequestProto[] = target = ProtoMeta(FailApplicationAttemptRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_attempt_id => ApplicationAttemptIdProto] + meta(target, FailApplicationAttemptRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FailApplicationAttemptRequestProto[] + end +end +function Base.getproperty(obj::FailApplicationAttemptRequestProto, name::Symbol) + if name === :application_attempt_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptIdProto + else + getfield(obj, name) + end +end mutable struct FailApplicationAttemptResponseProto <: ProtoType - FailApplicationAttemptResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct FailApplicationAttemptResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function FailApplicationAttemptResponseProto(; kwargs...) + obj = new(meta(FailApplicationAttemptResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct FailApplicationAttemptResponseProto +const __meta_FailApplicationAttemptResponseProto = Ref{ProtoMeta}() +function meta(::Type{FailApplicationAttemptResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_FailApplicationAttemptResponseProto) + __meta_FailApplicationAttemptResponseProto[] = target = ProtoMeta(FailApplicationAttemptResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, FailApplicationAttemptResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_FailApplicationAttemptResponseProto[] + end +end mutable struct KillApplicationRequestProto <: ProtoType - application_id::ApplicationIdProto - diagnostics::AbstractString - KillApplicationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct KillApplicationRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function KillApplicationRequestProto(; kwargs...) + obj = new(meta(KillApplicationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct KillApplicationRequestProto +const __meta_KillApplicationRequestProto = Ref{ProtoMeta}() +function meta(::Type{KillApplicationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_KillApplicationRequestProto) + __meta_KillApplicationRequestProto[] = target = ProtoMeta(KillApplicationRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto, :diagnostics => AbstractString] + meta(target, KillApplicationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_KillApplicationRequestProto[] + end +end +function Base.getproperty(obj::KillApplicationRequestProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :diagnostics + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct KillApplicationResponseProto <: ProtoType - is_kill_completed::Bool - KillApplicationResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct KillApplicationResponseProto -const __val_KillApplicationResponseProto = Dict(:is_kill_completed => false) -meta(t::Type{KillApplicationResponseProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_KillApplicationResponseProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function KillApplicationResponseProto(; kwargs...) + obj = new(meta(KillApplicationResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct KillApplicationResponseProto +const __meta_KillApplicationResponseProto = Ref{ProtoMeta}() +function meta(::Type{KillApplicationResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_KillApplicationResponseProto) + __meta_KillApplicationResponseProto[] = target = ProtoMeta(KillApplicationResponseProto) + val = Dict{Symbol,Any}(:is_kill_completed => false) + allflds = Pair{Symbol,Union{Type,String}}[:is_kill_completed => Bool] + meta(target, KillApplicationResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_KillApplicationResponseProto[] + end +end +function Base.getproperty(obj::KillApplicationResponseProto, name::Symbol) + if name === :is_kill_completed + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetClusterMetricsRequestProto <: ProtoType - GetClusterMetricsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetClusterMetricsRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetClusterMetricsRequestProto(; kwargs...) + obj = new(meta(GetClusterMetricsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetClusterMetricsRequestProto +const __meta_GetClusterMetricsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetClusterMetricsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetClusterMetricsRequestProto) + __meta_GetClusterMetricsRequestProto[] = target = ProtoMeta(GetClusterMetricsRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetClusterMetricsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetClusterMetricsRequestProto[] + end +end mutable struct GetClusterMetricsResponseProto <: ProtoType - cluster_metrics::YarnClusterMetricsProto - GetClusterMetricsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetClusterMetricsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetClusterMetricsResponseProto(; kwargs...) + obj = new(meta(GetClusterMetricsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetClusterMetricsResponseProto +const __meta_GetClusterMetricsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetClusterMetricsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetClusterMetricsResponseProto) + __meta_GetClusterMetricsResponseProto[] = target = ProtoMeta(GetClusterMetricsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:cluster_metrics => YarnClusterMetricsProto] + meta(target, GetClusterMetricsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetClusterMetricsResponseProto[] + end +end +function Base.getproperty(obj::GetClusterMetricsResponseProto, name::Symbol) + if name === :cluster_metrics + return (obj.__protobuf_jl_internal_values[name])::YarnClusterMetricsProto + else + getfield(obj, name) + end +end mutable struct MoveApplicationAcrossQueuesRequestProto <: ProtoType - application_id::ApplicationIdProto - target_queue::AbstractString - MoveApplicationAcrossQueuesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MoveApplicationAcrossQueuesRequestProto -const __req_MoveApplicationAcrossQueuesRequestProto = Symbol[:application_id,:target_queue] -meta(t::Type{MoveApplicationAcrossQueuesRequestProto}) = meta(t, __req_MoveApplicationAcrossQueuesRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MoveApplicationAcrossQueuesRequestProto(; kwargs...) + obj = new(meta(MoveApplicationAcrossQueuesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MoveApplicationAcrossQueuesRequestProto +const __meta_MoveApplicationAcrossQueuesRequestProto = Ref{ProtoMeta}() +function meta(::Type{MoveApplicationAcrossQueuesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MoveApplicationAcrossQueuesRequestProto) + __meta_MoveApplicationAcrossQueuesRequestProto[] = target = ProtoMeta(MoveApplicationAcrossQueuesRequestProto) + req = Symbol[:application_id,:target_queue] + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto, :target_queue => AbstractString] + meta(target, MoveApplicationAcrossQueuesRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MoveApplicationAcrossQueuesRequestProto[] + end +end +function Base.getproperty(obj::MoveApplicationAcrossQueuesRequestProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :target_queue + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct MoveApplicationAcrossQueuesResponseProto <: ProtoType - MoveApplicationAcrossQueuesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct MoveApplicationAcrossQueuesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function MoveApplicationAcrossQueuesResponseProto(; kwargs...) + obj = new(meta(MoveApplicationAcrossQueuesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct MoveApplicationAcrossQueuesResponseProto +const __meta_MoveApplicationAcrossQueuesResponseProto = Ref{ProtoMeta}() +function meta(::Type{MoveApplicationAcrossQueuesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_MoveApplicationAcrossQueuesResponseProto) + __meta_MoveApplicationAcrossQueuesResponseProto[] = target = ProtoMeta(MoveApplicationAcrossQueuesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, MoveApplicationAcrossQueuesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_MoveApplicationAcrossQueuesResponseProto[] + end +end mutable struct GetApplicationsRequestProto <: ProtoType - application_types::Base.Vector{AbstractString} - application_states::Base.Vector{Int32} - users::Base.Vector{AbstractString} - queues::Base.Vector{AbstractString} - limit::Int64 - start_begin::Int64 - start_end::Int64 - finish_begin::Int64 - finish_end::Int64 - applicationTags::Base.Vector{AbstractString} - scope::Int32 - GetApplicationsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationsRequestProto -const __val_GetApplicationsRequestProto = Dict(:scope => ApplicationsRequestScopeProto.ALL) -meta(t::Type{GetApplicationsRequestProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_GetApplicationsRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationsRequestProto(; kwargs...) + obj = new(meta(GetApplicationsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationsRequestProto +const __meta_GetApplicationsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationsRequestProto) + __meta_GetApplicationsRequestProto[] = target = ProtoMeta(GetApplicationsRequestProto) + val = Dict{Symbol,Any}(:scope => ApplicationsRequestScopeProto.ALL) + allflds = Pair{Symbol,Union{Type,String}}[:application_types => Base.Vector{AbstractString}, :application_states => Base.Vector{Int32}, :users => Base.Vector{AbstractString}, :queues => Base.Vector{AbstractString}, :limit => Int64, :start_begin => Int64, :start_end => Int64, :finish_begin => Int64, :finish_end => Int64, :applicationTags => Base.Vector{AbstractString}, :scope => Int32] + meta(target, GetApplicationsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationsRequestProto[] + end +end +function Base.getproperty(obj::GetApplicationsRequestProto, name::Symbol) + if name === :application_types + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :application_states + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + elseif name === :users + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :queues + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :limit + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :start_begin + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :start_end + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :finish_begin + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :finish_end + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :applicationTags + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :scope + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct GetApplicationsResponseProto <: ProtoType - applications::Base.Vector{ApplicationReportProto} - GetApplicationsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationsResponseProto(; kwargs...) + obj = new(meta(GetApplicationsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationsResponseProto +const __meta_GetApplicationsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationsResponseProto) + __meta_GetApplicationsResponseProto[] = target = ProtoMeta(GetApplicationsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:applications => Base.Vector{ApplicationReportProto}] + meta(target, GetApplicationsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationsResponseProto[] + end +end +function Base.getproperty(obj::GetApplicationsResponseProto, name::Symbol) + if name === :applications + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationReportProto} + else + getfield(obj, name) + end +end mutable struct GetClusterNodesRequestProto <: ProtoType - nodeStates::Base.Vector{Int32} - GetClusterNodesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetClusterNodesRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetClusterNodesRequestProto(; kwargs...) + obj = new(meta(GetClusterNodesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetClusterNodesRequestProto +const __meta_GetClusterNodesRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetClusterNodesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetClusterNodesRequestProto) + __meta_GetClusterNodesRequestProto[] = target = ProtoMeta(GetClusterNodesRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeStates => Base.Vector{Int32}] + meta(target, GetClusterNodesRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetClusterNodesRequestProto[] + end +end +function Base.getproperty(obj::GetClusterNodesRequestProto, name::Symbol) + if name === :nodeStates + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{Int32} + else + getfield(obj, name) + end +end mutable struct GetClusterNodesResponseProto <: ProtoType - nodeReports::Base.Vector{NodeReportProto} - GetClusterNodesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetClusterNodesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetClusterNodesResponseProto(; kwargs...) + obj = new(meta(GetClusterNodesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetClusterNodesResponseProto +const __meta_GetClusterNodesResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetClusterNodesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetClusterNodesResponseProto) + __meta_GetClusterNodesResponseProto[] = target = ProtoMeta(GetClusterNodesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeReports => Base.Vector{NodeReportProto}] + meta(target, GetClusterNodesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetClusterNodesResponseProto[] + end +end +function Base.getproperty(obj::GetClusterNodesResponseProto, name::Symbol) + if name === :nodeReports + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NodeReportProto} + else + getfield(obj, name) + end +end mutable struct GetQueueInfoRequestProto <: ProtoType - queueName::AbstractString - includeApplications::Bool - includeChildQueues::Bool - recursive::Bool - GetQueueInfoRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetQueueInfoRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetQueueInfoRequestProto(; kwargs...) + obj = new(meta(GetQueueInfoRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetQueueInfoRequestProto +const __meta_GetQueueInfoRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetQueueInfoRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetQueueInfoRequestProto) + __meta_GetQueueInfoRequestProto[] = target = ProtoMeta(GetQueueInfoRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:queueName => AbstractString, :includeApplications => Bool, :includeChildQueues => Bool, :recursive => Bool] + meta(target, GetQueueInfoRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetQueueInfoRequestProto[] + end +end +function Base.getproperty(obj::GetQueueInfoRequestProto, name::Symbol) + if name === :queueName + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :includeApplications + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :includeChildQueues + return (obj.__protobuf_jl_internal_values[name])::Bool + elseif name === :recursive + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct GetQueueInfoResponseProto <: ProtoType - queueInfo::QueueInfoProto - GetQueueInfoResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetQueueInfoResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetQueueInfoResponseProto(; kwargs...) + obj = new(meta(GetQueueInfoResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetQueueInfoResponseProto +const __meta_GetQueueInfoResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetQueueInfoResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetQueueInfoResponseProto) + __meta_GetQueueInfoResponseProto[] = target = ProtoMeta(GetQueueInfoResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:queueInfo => QueueInfoProto] + meta(target, GetQueueInfoResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetQueueInfoResponseProto[] + end +end +function Base.getproperty(obj::GetQueueInfoResponseProto, name::Symbol) + if name === :queueInfo + return (obj.__protobuf_jl_internal_values[name])::QueueInfoProto + else + getfield(obj, name) + end +end mutable struct GetQueueUserAclsInfoRequestProto <: ProtoType - GetQueueUserAclsInfoRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetQueueUserAclsInfoRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetQueueUserAclsInfoRequestProto(; kwargs...) + obj = new(meta(GetQueueUserAclsInfoRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetQueueUserAclsInfoRequestProto +const __meta_GetQueueUserAclsInfoRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetQueueUserAclsInfoRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetQueueUserAclsInfoRequestProto) + __meta_GetQueueUserAclsInfoRequestProto[] = target = ProtoMeta(GetQueueUserAclsInfoRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetQueueUserAclsInfoRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetQueueUserAclsInfoRequestProto[] + end +end mutable struct GetQueueUserAclsInfoResponseProto <: ProtoType - queueUserAcls::Base.Vector{QueueUserACLInfoProto} - GetQueueUserAclsInfoResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetQueueUserAclsInfoResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetQueueUserAclsInfoResponseProto(; kwargs...) + obj = new(meta(GetQueueUserAclsInfoResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetQueueUserAclsInfoResponseProto +const __meta_GetQueueUserAclsInfoResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetQueueUserAclsInfoResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetQueueUserAclsInfoResponseProto) + __meta_GetQueueUserAclsInfoResponseProto[] = target = ProtoMeta(GetQueueUserAclsInfoResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:queueUserAcls => Base.Vector{QueueUserACLInfoProto}] + meta(target, GetQueueUserAclsInfoResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetQueueUserAclsInfoResponseProto[] + end +end +function Base.getproperty(obj::GetQueueUserAclsInfoResponseProto, name::Symbol) + if name === :queueUserAcls + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{QueueUserACLInfoProto} + else + getfield(obj, name) + end +end mutable struct GetNodesToLabelsRequestProto <: ProtoType - GetNodesToLabelsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetNodesToLabelsRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetNodesToLabelsRequestProto(; kwargs...) + obj = new(meta(GetNodesToLabelsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetNodesToLabelsRequestProto +const __meta_GetNodesToLabelsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetNodesToLabelsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetNodesToLabelsRequestProto) + __meta_GetNodesToLabelsRequestProto[] = target = ProtoMeta(GetNodesToLabelsRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetNodesToLabelsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetNodesToLabelsRequestProto[] + end +end mutable struct GetNodesToLabelsResponseProto <: ProtoType - nodeToLabels::Base.Vector{NodeIdToLabelsProto} - GetNodesToLabelsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetNodesToLabelsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetNodesToLabelsResponseProto(; kwargs...) + obj = new(meta(GetNodesToLabelsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetNodesToLabelsResponseProto +const __meta_GetNodesToLabelsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetNodesToLabelsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetNodesToLabelsResponseProto) + __meta_GetNodesToLabelsResponseProto[] = target = ProtoMeta(GetNodesToLabelsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeToLabels => Base.Vector{NodeIdToLabelsProto}] + meta(target, GetNodesToLabelsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetNodesToLabelsResponseProto[] + end +end +function Base.getproperty(obj::GetNodesToLabelsResponseProto, name::Symbol) + if name === :nodeToLabels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NodeIdToLabelsProto} + else + getfield(obj, name) + end +end mutable struct GetLabelsToNodesRequestProto <: ProtoType - nodeLabels::Base.Vector{AbstractString} - GetLabelsToNodesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetLabelsToNodesRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetLabelsToNodesRequestProto(; kwargs...) + obj = new(meta(GetLabelsToNodesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetLabelsToNodesRequestProto +const __meta_GetLabelsToNodesRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetLabelsToNodesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetLabelsToNodesRequestProto) + __meta_GetLabelsToNodesRequestProto[] = target = ProtoMeta(GetLabelsToNodesRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:nodeLabels => Base.Vector{AbstractString}] + meta(target, GetLabelsToNodesRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetLabelsToNodesRequestProto[] + end +end +function Base.getproperty(obj::GetLabelsToNodesRequestProto, name::Symbol) + if name === :nodeLabels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + else + getfield(obj, name) + end +end mutable struct GetLabelsToNodesResponseProto <: ProtoType - labelsToNodes::Base.Vector{LabelsToNodeIdsProto} - GetLabelsToNodesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetLabelsToNodesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetLabelsToNodesResponseProto(; kwargs...) + obj = new(meta(GetLabelsToNodesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetLabelsToNodesResponseProto +const __meta_GetLabelsToNodesResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetLabelsToNodesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetLabelsToNodesResponseProto) + __meta_GetLabelsToNodesResponseProto[] = target = ProtoMeta(GetLabelsToNodesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:labelsToNodes => Base.Vector{LabelsToNodeIdsProto}] + meta(target, GetLabelsToNodesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetLabelsToNodesResponseProto[] + end +end +function Base.getproperty(obj::GetLabelsToNodesResponseProto, name::Symbol) + if name === :labelsToNodes + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{LabelsToNodeIdsProto} + else + getfield(obj, name) + end +end mutable struct GetClusterNodeLabelsRequestProto <: ProtoType - GetClusterNodeLabelsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetClusterNodeLabelsRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetClusterNodeLabelsRequestProto(; kwargs...) + obj = new(meta(GetClusterNodeLabelsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetClusterNodeLabelsRequestProto +const __meta_GetClusterNodeLabelsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetClusterNodeLabelsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetClusterNodeLabelsRequestProto) + __meta_GetClusterNodeLabelsRequestProto[] = target = ProtoMeta(GetClusterNodeLabelsRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetClusterNodeLabelsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetClusterNodeLabelsRequestProto[] + end +end mutable struct GetClusterNodeLabelsResponseProto <: ProtoType - deprecatedNodeLabels::Base.Vector{AbstractString} - nodeLabels::Base.Vector{NodeLabelProto} - GetClusterNodeLabelsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetClusterNodeLabelsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetClusterNodeLabelsResponseProto(; kwargs...) + obj = new(meta(GetClusterNodeLabelsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetClusterNodeLabelsResponseProto +const __meta_GetClusterNodeLabelsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetClusterNodeLabelsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetClusterNodeLabelsResponseProto) + __meta_GetClusterNodeLabelsResponseProto[] = target = ProtoMeta(GetClusterNodeLabelsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:deprecatedNodeLabels => Base.Vector{AbstractString}, :nodeLabels => Base.Vector{NodeLabelProto}] + meta(target, GetClusterNodeLabelsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetClusterNodeLabelsResponseProto[] + end +end +function Base.getproperty(obj::GetClusterNodeLabelsResponseProto, name::Symbol) + if name === :deprecatedNodeLabels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{AbstractString} + elseif name === :nodeLabels + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{NodeLabelProto} + else + getfield(obj, name) + end +end mutable struct UpdateApplicationPriorityRequestProto <: ProtoType - applicationId::ApplicationIdProto - applicationPriority::PriorityProto - UpdateApplicationPriorityRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateApplicationPriorityRequestProto -const __req_UpdateApplicationPriorityRequestProto = Symbol[:applicationId,:applicationPriority] -meta(t::Type{UpdateApplicationPriorityRequestProto}) = meta(t, __req_UpdateApplicationPriorityRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateApplicationPriorityRequestProto(; kwargs...) + obj = new(meta(UpdateApplicationPriorityRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateApplicationPriorityRequestProto +const __meta_UpdateApplicationPriorityRequestProto = Ref{ProtoMeta}() +function meta(::Type{UpdateApplicationPriorityRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateApplicationPriorityRequestProto) + __meta_UpdateApplicationPriorityRequestProto[] = target = ProtoMeta(UpdateApplicationPriorityRequestProto) + req = Symbol[:applicationId,:applicationPriority] + allflds = Pair{Symbol,Union{Type,String}}[:applicationId => ApplicationIdProto, :applicationPriority => PriorityProto] + meta(target, UpdateApplicationPriorityRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateApplicationPriorityRequestProto[] + end +end +function Base.getproperty(obj::UpdateApplicationPriorityRequestProto, name::Symbol) + if name === :applicationId + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :applicationPriority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + else + getfield(obj, name) + end +end mutable struct UpdateApplicationPriorityResponseProto <: ProtoType - applicationPriority::PriorityProto - UpdateApplicationPriorityResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateApplicationPriorityResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateApplicationPriorityResponseProto(; kwargs...) + obj = new(meta(UpdateApplicationPriorityResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateApplicationPriorityResponseProto +const __meta_UpdateApplicationPriorityResponseProto = Ref{ProtoMeta}() +function meta(::Type{UpdateApplicationPriorityResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateApplicationPriorityResponseProto) + __meta_UpdateApplicationPriorityResponseProto[] = target = ProtoMeta(UpdateApplicationPriorityResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:applicationPriority => PriorityProto] + meta(target, UpdateApplicationPriorityResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateApplicationPriorityResponseProto[] + end +end +function Base.getproperty(obj::UpdateApplicationPriorityResponseProto, name::Symbol) + if name === :applicationPriority + return (obj.__protobuf_jl_internal_values[name])::PriorityProto + else + getfield(obj, name) + end +end mutable struct SignalContainerRequestProto <: ProtoType - container_id::ContainerIdProto - command::Int32 - SignalContainerRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SignalContainerRequestProto -const __req_SignalContainerRequestProto = Symbol[:container_id,:command] -meta(t::Type{SignalContainerRequestProto}) = meta(t, __req_SignalContainerRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SignalContainerRequestProto(; kwargs...) + obj = new(meta(SignalContainerRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SignalContainerRequestProto +const __meta_SignalContainerRequestProto = Ref{ProtoMeta}() +function meta(::Type{SignalContainerRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SignalContainerRequestProto) + __meta_SignalContainerRequestProto[] = target = ProtoMeta(SignalContainerRequestProto) + req = Symbol[:container_id,:command] + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :command => Int32] + meta(target, SignalContainerRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SignalContainerRequestProto[] + end +end +function Base.getproperty(obj::SignalContainerRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :command + return (obj.__protobuf_jl_internal_values[name])::Int32 + else + getfield(obj, name) + end +end mutable struct SignalContainerResponseProto <: ProtoType - SignalContainerResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct SignalContainerResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function SignalContainerResponseProto(; kwargs...) + obj = new(meta(SignalContainerResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct SignalContainerResponseProto +const __meta_SignalContainerResponseProto = Ref{ProtoMeta}() +function meta(::Type{SignalContainerResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_SignalContainerResponseProto) + __meta_SignalContainerResponseProto[] = target = ProtoMeta(SignalContainerResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, SignalContainerResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_SignalContainerResponseProto[] + end +end mutable struct UpdateApplicationTimeoutsRequestProto <: ProtoType - applicationId::ApplicationIdProto - application_timeouts::Base.Vector{ApplicationUpdateTimeoutMapProto} - UpdateApplicationTimeoutsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateApplicationTimeoutsRequestProto -const __req_UpdateApplicationTimeoutsRequestProto = Symbol[:applicationId] -meta(t::Type{UpdateApplicationTimeoutsRequestProto}) = meta(t, __req_UpdateApplicationTimeoutsRequestProto, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateApplicationTimeoutsRequestProto(; kwargs...) + obj = new(meta(UpdateApplicationTimeoutsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateApplicationTimeoutsRequestProto +const __meta_UpdateApplicationTimeoutsRequestProto = Ref{ProtoMeta}() +function meta(::Type{UpdateApplicationTimeoutsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateApplicationTimeoutsRequestProto) + __meta_UpdateApplicationTimeoutsRequestProto[] = target = ProtoMeta(UpdateApplicationTimeoutsRequestProto) + req = Symbol[:applicationId] + allflds = Pair{Symbol,Union{Type,String}}[:applicationId => ApplicationIdProto, :application_timeouts => Base.Vector{ApplicationUpdateTimeoutMapProto}] + meta(target, UpdateApplicationTimeoutsRequestProto, allflds, req, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateApplicationTimeoutsRequestProto[] + end +end +function Base.getproperty(obj::UpdateApplicationTimeoutsRequestProto, name::Symbol) + if name === :applicationId + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :application_timeouts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationUpdateTimeoutMapProto} + else + getfield(obj, name) + end +end mutable struct UpdateApplicationTimeoutsResponseProto <: ProtoType - application_timeouts::Base.Vector{ApplicationUpdateTimeoutMapProto} - UpdateApplicationTimeoutsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UpdateApplicationTimeoutsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UpdateApplicationTimeoutsResponseProto(; kwargs...) + obj = new(meta(UpdateApplicationTimeoutsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UpdateApplicationTimeoutsResponseProto +const __meta_UpdateApplicationTimeoutsResponseProto = Ref{ProtoMeta}() +function meta(::Type{UpdateApplicationTimeoutsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UpdateApplicationTimeoutsResponseProto) + __meta_UpdateApplicationTimeoutsResponseProto[] = target = ProtoMeta(UpdateApplicationTimeoutsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_timeouts => Base.Vector{ApplicationUpdateTimeoutMapProto}] + meta(target, UpdateApplicationTimeoutsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UpdateApplicationTimeoutsResponseProto[] + end +end +function Base.getproperty(obj::UpdateApplicationTimeoutsResponseProto, name::Symbol) + if name === :application_timeouts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationUpdateTimeoutMapProto} + else + getfield(obj, name) + end +end mutable struct GetAllResourceTypeInfoRequestProto <: ProtoType - GetAllResourceTypeInfoRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetAllResourceTypeInfoRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetAllResourceTypeInfoRequestProto(; kwargs...) + obj = new(meta(GetAllResourceTypeInfoRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetAllResourceTypeInfoRequestProto +const __meta_GetAllResourceTypeInfoRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetAllResourceTypeInfoRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetAllResourceTypeInfoRequestProto) + __meta_GetAllResourceTypeInfoRequestProto[] = target = ProtoMeta(GetAllResourceTypeInfoRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetAllResourceTypeInfoRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetAllResourceTypeInfoRequestProto[] + end +end mutable struct GetAllResourceTypeInfoResponseProto <: ProtoType - resource_type_info::Base.Vector{ResourceTypeInfoProto} - GetAllResourceTypeInfoResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetAllResourceTypeInfoResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetAllResourceTypeInfoResponseProto(; kwargs...) + obj = new(meta(GetAllResourceTypeInfoResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetAllResourceTypeInfoResponseProto +const __meta_GetAllResourceTypeInfoResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetAllResourceTypeInfoResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetAllResourceTypeInfoResponseProto) + __meta_GetAllResourceTypeInfoResponseProto[] = target = ProtoMeta(GetAllResourceTypeInfoResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:resource_type_info => Base.Vector{ResourceTypeInfoProto}] + meta(target, GetAllResourceTypeInfoResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetAllResourceTypeInfoResponseProto[] + end +end +function Base.getproperty(obj::GetAllResourceTypeInfoResponseProto, name::Symbol) + if name === :resource_type_info + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ResourceTypeInfoProto} + else + getfield(obj, name) + end +end mutable struct StartContainerRequestProto <: ProtoType - container_launch_context::ContainerLaunchContextProto - container_token::hadoop.common.TokenProto - StartContainerRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StartContainerRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StartContainerRequestProto(; kwargs...) + obj = new(meta(StartContainerRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StartContainerRequestProto +const __meta_StartContainerRequestProto = Ref{ProtoMeta}() +function meta(::Type{StartContainerRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StartContainerRequestProto) + __meta_StartContainerRequestProto[] = target = ProtoMeta(StartContainerRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_launch_context => ContainerLaunchContextProto, :container_token => hadoop.common.TokenProto] + meta(target, StartContainerRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StartContainerRequestProto[] + end +end +function Base.getproperty(obj::StartContainerRequestProto, name::Symbol) + if name === :container_launch_context + return (obj.__protobuf_jl_internal_values[name])::ContainerLaunchContextProto + elseif name === :container_token + return (obj.__protobuf_jl_internal_values[name])::hadoop.common.TokenProto + else + getfield(obj, name) + end +end mutable struct StartContainerResponseProto <: ProtoType - services_meta_data::Base.Vector{StringBytesMapProto} - StartContainerResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StartContainerResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StartContainerResponseProto(; kwargs...) + obj = new(meta(StartContainerResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StartContainerResponseProto +const __meta_StartContainerResponseProto = Ref{ProtoMeta}() +function meta(::Type{StartContainerResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StartContainerResponseProto) + __meta_StartContainerResponseProto[] = target = ProtoMeta(StartContainerResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:services_meta_data => Base.Vector{StringBytesMapProto}] + meta(target, StartContainerResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StartContainerResponseProto[] + end +end +function Base.getproperty(obj::StartContainerResponseProto, name::Symbol) + if name === :services_meta_data + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringBytesMapProto} + else + getfield(obj, name) + end +end mutable struct StopContainerRequestProto <: ProtoType - container_id::ContainerIdProto - StopContainerRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StopContainerRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StopContainerRequestProto(; kwargs...) + obj = new(meta(StopContainerRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StopContainerRequestProto +const __meta_StopContainerRequestProto = Ref{ProtoMeta}() +function meta(::Type{StopContainerRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StopContainerRequestProto) + __meta_StopContainerRequestProto[] = target = ProtoMeta(StopContainerRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto] + meta(target, StopContainerRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StopContainerRequestProto[] + end +end +function Base.getproperty(obj::StopContainerRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + else + getfield(obj, name) + end +end mutable struct StopContainerResponseProto <: ProtoType - StopContainerResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StopContainerResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StopContainerResponseProto(; kwargs...) + obj = new(meta(StopContainerResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StopContainerResponseProto +const __meta_StopContainerResponseProto = Ref{ProtoMeta}() +function meta(::Type{StopContainerResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StopContainerResponseProto) + __meta_StopContainerResponseProto[] = target = ProtoMeta(StopContainerResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, StopContainerResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StopContainerResponseProto[] + end +end mutable struct ResourceLocalizationRequestProto <: ProtoType - container_id::ContainerIdProto - local_resources::Base.Vector{StringLocalResourceMapProto} - ResourceLocalizationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceLocalizationRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceLocalizationRequestProto(; kwargs...) + obj = new(meta(ResourceLocalizationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceLocalizationRequestProto +const __meta_ResourceLocalizationRequestProto = Ref{ProtoMeta}() +function meta(::Type{ResourceLocalizationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceLocalizationRequestProto) + __meta_ResourceLocalizationRequestProto[] = target = ProtoMeta(ResourceLocalizationRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :local_resources => Base.Vector{StringLocalResourceMapProto}] + meta(target, ResourceLocalizationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceLocalizationRequestProto[] + end +end +function Base.getproperty(obj::ResourceLocalizationRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :local_resources + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringLocalResourceMapProto} + else + getfield(obj, name) + end +end mutable struct ResourceLocalizationResponseProto <: ProtoType - ResourceLocalizationResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ResourceLocalizationResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ResourceLocalizationResponseProto(; kwargs...) + obj = new(meta(ResourceLocalizationResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ResourceLocalizationResponseProto +const __meta_ResourceLocalizationResponseProto = Ref{ProtoMeta}() +function meta(::Type{ResourceLocalizationResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ResourceLocalizationResponseProto) + __meta_ResourceLocalizationResponseProto[] = target = ProtoMeta(ResourceLocalizationResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ResourceLocalizationResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ResourceLocalizationResponseProto[] + end +end mutable struct ReInitializeContainerRequestProto <: ProtoType - container_id::ContainerIdProto - container_launch_context::ContainerLaunchContextProto - auto_commit::Bool - ReInitializeContainerRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReInitializeContainerRequestProto -const __val_ReInitializeContainerRequestProto = Dict(:auto_commit => true) -meta(t::Type{ReInitializeContainerRequestProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_ReInitializeContainerRequestProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReInitializeContainerRequestProto(; kwargs...) + obj = new(meta(ReInitializeContainerRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReInitializeContainerRequestProto +const __meta_ReInitializeContainerRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReInitializeContainerRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReInitializeContainerRequestProto) + __meta_ReInitializeContainerRequestProto[] = target = ProtoMeta(ReInitializeContainerRequestProto) + val = Dict{Symbol,Any}(:auto_commit => true) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :container_launch_context => ContainerLaunchContextProto, :auto_commit => Bool] + meta(target, ReInitializeContainerRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, val, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReInitializeContainerRequestProto[] + end +end +function Base.getproperty(obj::ReInitializeContainerRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :container_launch_context + return (obj.__protobuf_jl_internal_values[name])::ContainerLaunchContextProto + elseif name === :auto_commit + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct ReInitializeContainerResponseProto <: ProtoType - ReInitializeContainerResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReInitializeContainerResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReInitializeContainerResponseProto(; kwargs...) + obj = new(meta(ReInitializeContainerResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReInitializeContainerResponseProto +const __meta_ReInitializeContainerResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReInitializeContainerResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReInitializeContainerResponseProto) + __meta_ReInitializeContainerResponseProto[] = target = ProtoMeta(ReInitializeContainerResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ReInitializeContainerResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReInitializeContainerResponseProto[] + end +end mutable struct RestartContainerResponseProto <: ProtoType - RestartContainerResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RestartContainerResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RestartContainerResponseProto(; kwargs...) + obj = new(meta(RestartContainerResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RestartContainerResponseProto +const __meta_RestartContainerResponseProto = Ref{ProtoMeta}() +function meta(::Type{RestartContainerResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RestartContainerResponseProto) + __meta_RestartContainerResponseProto[] = target = ProtoMeta(RestartContainerResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RestartContainerResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RestartContainerResponseProto[] + end +end mutable struct RollbackResponseProto <: ProtoType - RollbackResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RollbackResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RollbackResponseProto(; kwargs...) + obj = new(meta(RollbackResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RollbackResponseProto +const __meta_RollbackResponseProto = Ref{ProtoMeta}() +function meta(::Type{RollbackResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RollbackResponseProto) + __meta_RollbackResponseProto[] = target = ProtoMeta(RollbackResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RollbackResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RollbackResponseProto[] + end +end mutable struct CommitResponseProto <: ProtoType - CommitResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct CommitResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function CommitResponseProto(; kwargs...) + obj = new(meta(CommitResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct CommitResponseProto +const __meta_CommitResponseProto = Ref{ProtoMeta}() +function meta(::Type{CommitResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_CommitResponseProto) + __meta_CommitResponseProto[] = target = ProtoMeta(CommitResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, CommitResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_CommitResponseProto[] + end +end mutable struct StartContainersRequestProto <: ProtoType - start_container_request::Base.Vector{StartContainerRequestProto} - StartContainersRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StartContainersRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StartContainersRequestProto(; kwargs...) + obj = new(meta(StartContainersRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StartContainersRequestProto +const __meta_StartContainersRequestProto = Ref{ProtoMeta}() +function meta(::Type{StartContainersRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StartContainersRequestProto) + __meta_StartContainersRequestProto[] = target = ProtoMeta(StartContainersRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:start_container_request => Base.Vector{StartContainerRequestProto}] + meta(target, StartContainersRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StartContainersRequestProto[] + end +end +function Base.getproperty(obj::StartContainersRequestProto, name::Symbol) + if name === :start_container_request + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StartContainerRequestProto} + else + getfield(obj, name) + end +end mutable struct ContainerExceptionMapProto <: ProtoType - container_id::ContainerIdProto - exception::SerializedExceptionProto - ContainerExceptionMapProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerExceptionMapProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerExceptionMapProto(; kwargs...) + obj = new(meta(ContainerExceptionMapProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerExceptionMapProto +const __meta_ContainerExceptionMapProto = Ref{ProtoMeta}() +function meta(::Type{ContainerExceptionMapProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerExceptionMapProto) + __meta_ContainerExceptionMapProto[] = target = ProtoMeta(ContainerExceptionMapProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto, :exception => SerializedExceptionProto] + meta(target, ContainerExceptionMapProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerExceptionMapProto[] + end +end +function Base.getproperty(obj::ContainerExceptionMapProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + elseif name === :exception + return (obj.__protobuf_jl_internal_values[name])::SerializedExceptionProto + else + getfield(obj, name) + end +end mutable struct StartContainersResponseProto <: ProtoType - services_meta_data::Base.Vector{StringBytesMapProto} - succeeded_requests::Base.Vector{ContainerIdProto} - failed_requests::Base.Vector{ContainerExceptionMapProto} - StartContainersResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StartContainersResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StartContainersResponseProto(; kwargs...) + obj = new(meta(StartContainersResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StartContainersResponseProto +const __meta_StartContainersResponseProto = Ref{ProtoMeta}() +function meta(::Type{StartContainersResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StartContainersResponseProto) + __meta_StartContainersResponseProto[] = target = ProtoMeta(StartContainersResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:services_meta_data => Base.Vector{StringBytesMapProto}, :succeeded_requests => Base.Vector{ContainerIdProto}, :failed_requests => Base.Vector{ContainerExceptionMapProto}] + meta(target, StartContainersResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StartContainersResponseProto[] + end +end +function Base.getproperty(obj::StartContainersResponseProto, name::Symbol) + if name === :services_meta_data + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{StringBytesMapProto} + elseif name === :succeeded_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + elseif name === :failed_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerExceptionMapProto} + else + getfield(obj, name) + end +end mutable struct StopContainersRequestProto <: ProtoType - container_id::Base.Vector{ContainerIdProto} - StopContainersRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StopContainersRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StopContainersRequestProto(; kwargs...) + obj = new(meta(StopContainersRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StopContainersRequestProto +const __meta_StopContainersRequestProto = Ref{ProtoMeta}() +function meta(::Type{StopContainersRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StopContainersRequestProto) + __meta_StopContainersRequestProto[] = target = ProtoMeta(StopContainersRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => Base.Vector{ContainerIdProto}] + meta(target, StopContainersRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StopContainersRequestProto[] + end +end +function Base.getproperty(obj::StopContainersRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + else + getfield(obj, name) + end +end mutable struct StopContainersResponseProto <: ProtoType - succeeded_requests::Base.Vector{ContainerIdProto} - failed_requests::Base.Vector{ContainerExceptionMapProto} - StopContainersResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct StopContainersResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function StopContainersResponseProto(; kwargs...) + obj = new(meta(StopContainersResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct StopContainersResponseProto +const __meta_StopContainersResponseProto = Ref{ProtoMeta}() +function meta(::Type{StopContainersResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_StopContainersResponseProto) + __meta_StopContainersResponseProto[] = target = ProtoMeta(StopContainersResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:succeeded_requests => Base.Vector{ContainerIdProto}, :failed_requests => Base.Vector{ContainerExceptionMapProto}] + meta(target, StopContainersResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_StopContainersResponseProto[] + end +end +function Base.getproperty(obj::StopContainersResponseProto, name::Symbol) + if name === :succeeded_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + elseif name === :failed_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerExceptionMapProto} + else + getfield(obj, name) + end +end mutable struct GetContainerStatusesRequestProto <: ProtoType - container_id::Base.Vector{ContainerIdProto} - GetContainerStatusesRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContainerStatusesRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContainerStatusesRequestProto(; kwargs...) + obj = new(meta(GetContainerStatusesRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContainerStatusesRequestProto +const __meta_GetContainerStatusesRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetContainerStatusesRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContainerStatusesRequestProto) + __meta_GetContainerStatusesRequestProto[] = target = ProtoMeta(GetContainerStatusesRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => Base.Vector{ContainerIdProto}] + meta(target, GetContainerStatusesRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContainerStatusesRequestProto[] + end +end +function Base.getproperty(obj::GetContainerStatusesRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + else + getfield(obj, name) + end +end mutable struct GetContainerStatusesResponseProto <: ProtoType - status::Base.Vector{ContainerStatusProto} - failed_requests::Base.Vector{ContainerExceptionMapProto} - GetContainerStatusesResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContainerStatusesResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContainerStatusesResponseProto(; kwargs...) + obj = new(meta(GetContainerStatusesResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContainerStatusesResponseProto +const __meta_GetContainerStatusesResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetContainerStatusesResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContainerStatusesResponseProto) + __meta_GetContainerStatusesResponseProto[] = target = ProtoMeta(GetContainerStatusesResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:status => Base.Vector{ContainerStatusProto}, :failed_requests => Base.Vector{ContainerExceptionMapProto}] + meta(target, GetContainerStatusesResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContainerStatusesResponseProto[] + end +end +function Base.getproperty(obj::GetContainerStatusesResponseProto, name::Symbol) + if name === :status + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerStatusProto} + elseif name === :failed_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerExceptionMapProto} + else + getfield(obj, name) + end +end mutable struct IncreaseContainersResourceRequestProto <: ProtoType - increase_containers::Base.Vector{hadoop.common.TokenProto} - IncreaseContainersResourceRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct IncreaseContainersResourceRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function IncreaseContainersResourceRequestProto(; kwargs...) + obj = new(meta(IncreaseContainersResourceRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct IncreaseContainersResourceRequestProto +const __meta_IncreaseContainersResourceRequestProto = Ref{ProtoMeta}() +function meta(::Type{IncreaseContainersResourceRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_IncreaseContainersResourceRequestProto) + __meta_IncreaseContainersResourceRequestProto[] = target = ProtoMeta(IncreaseContainersResourceRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:increase_containers => Base.Vector{hadoop.common.TokenProto}] + meta(target, IncreaseContainersResourceRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_IncreaseContainersResourceRequestProto[] + end +end +function Base.getproperty(obj::IncreaseContainersResourceRequestProto, name::Symbol) + if name === :increase_containers + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{hadoop.common.TokenProto} + else + getfield(obj, name) + end +end mutable struct IncreaseContainersResourceResponseProto <: ProtoType - succeeded_requests::Base.Vector{ContainerIdProto} - failed_requests::Base.Vector{ContainerExceptionMapProto} - IncreaseContainersResourceResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct IncreaseContainersResourceResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function IncreaseContainersResourceResponseProto(; kwargs...) + obj = new(meta(IncreaseContainersResourceResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct IncreaseContainersResourceResponseProto +const __meta_IncreaseContainersResourceResponseProto = Ref{ProtoMeta}() +function meta(::Type{IncreaseContainersResourceResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_IncreaseContainersResourceResponseProto) + __meta_IncreaseContainersResourceResponseProto[] = target = ProtoMeta(IncreaseContainersResourceResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:succeeded_requests => Base.Vector{ContainerIdProto}, :failed_requests => Base.Vector{ContainerExceptionMapProto}] + meta(target, IncreaseContainersResourceResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_IncreaseContainersResourceResponseProto[] + end +end +function Base.getproperty(obj::IncreaseContainersResourceResponseProto, name::Symbol) + if name === :succeeded_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + elseif name === :failed_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerExceptionMapProto} + else + getfield(obj, name) + end +end mutable struct ContainerUpdateRequestProto <: ProtoType - update_container_token::Base.Vector{hadoop.common.TokenProto} - ContainerUpdateRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerUpdateRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerUpdateRequestProto(; kwargs...) + obj = new(meta(ContainerUpdateRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerUpdateRequestProto +const __meta_ContainerUpdateRequestProto = Ref{ProtoMeta}() +function meta(::Type{ContainerUpdateRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerUpdateRequestProto) + __meta_ContainerUpdateRequestProto[] = target = ProtoMeta(ContainerUpdateRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:update_container_token => Base.Vector{hadoop.common.TokenProto}] + meta(target, ContainerUpdateRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerUpdateRequestProto[] + end +end +function Base.getproperty(obj::ContainerUpdateRequestProto, name::Symbol) + if name === :update_container_token + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{hadoop.common.TokenProto} + else + getfield(obj, name) + end +end mutable struct ContainerUpdateResponseProto <: ProtoType - succeeded_requests::Base.Vector{ContainerIdProto} - failed_requests::Base.Vector{ContainerExceptionMapProto} - ContainerUpdateResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ContainerUpdateResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ContainerUpdateResponseProto(; kwargs...) + obj = new(meta(ContainerUpdateResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ContainerUpdateResponseProto +const __meta_ContainerUpdateResponseProto = Ref{ProtoMeta}() +function meta(::Type{ContainerUpdateResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ContainerUpdateResponseProto) + __meta_ContainerUpdateResponseProto[] = target = ProtoMeta(ContainerUpdateResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:succeeded_requests => Base.Vector{ContainerIdProto}, :failed_requests => Base.Vector{ContainerExceptionMapProto}] + meta(target, ContainerUpdateResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ContainerUpdateResponseProto[] + end +end +function Base.getproperty(obj::ContainerUpdateResponseProto, name::Symbol) + if name === :succeeded_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerIdProto} + elseif name === :failed_requests + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerExceptionMapProto} + else + getfield(obj, name) + end +end mutable struct GetApplicationAttemptReportRequestProto <: ProtoType - application_attempt_id::ApplicationAttemptIdProto - GetApplicationAttemptReportRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationAttemptReportRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationAttemptReportRequestProto(; kwargs...) + obj = new(meta(GetApplicationAttemptReportRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationAttemptReportRequestProto +const __meta_GetApplicationAttemptReportRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationAttemptReportRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationAttemptReportRequestProto) + __meta_GetApplicationAttemptReportRequestProto[] = target = ProtoMeta(GetApplicationAttemptReportRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_attempt_id => ApplicationAttemptIdProto] + meta(target, GetApplicationAttemptReportRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationAttemptReportRequestProto[] + end +end +function Base.getproperty(obj::GetApplicationAttemptReportRequestProto, name::Symbol) + if name === :application_attempt_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptIdProto + else + getfield(obj, name) + end +end mutable struct GetApplicationAttemptReportResponseProto <: ProtoType - application_attempt_report::ApplicationAttemptReportProto - GetApplicationAttemptReportResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationAttemptReportResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationAttemptReportResponseProto(; kwargs...) + obj = new(meta(GetApplicationAttemptReportResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationAttemptReportResponseProto +const __meta_GetApplicationAttemptReportResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationAttemptReportResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationAttemptReportResponseProto) + __meta_GetApplicationAttemptReportResponseProto[] = target = ProtoMeta(GetApplicationAttemptReportResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_attempt_report => ApplicationAttemptReportProto] + meta(target, GetApplicationAttemptReportResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationAttemptReportResponseProto[] + end +end +function Base.getproperty(obj::GetApplicationAttemptReportResponseProto, name::Symbol) + if name === :application_attempt_report + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptReportProto + else + getfield(obj, name) + end +end mutable struct GetApplicationAttemptsRequestProto <: ProtoType - application_id::ApplicationIdProto - GetApplicationAttemptsRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationAttemptsRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationAttemptsRequestProto(; kwargs...) + obj = new(meta(GetApplicationAttemptsRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationAttemptsRequestProto +const __meta_GetApplicationAttemptsRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationAttemptsRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationAttemptsRequestProto) + __meta_GetApplicationAttemptsRequestProto[] = target = ProtoMeta(GetApplicationAttemptsRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_id => ApplicationIdProto] + meta(target, GetApplicationAttemptsRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationAttemptsRequestProto[] + end +end +function Base.getproperty(obj::GetApplicationAttemptsRequestProto, name::Symbol) + if name === :application_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + else + getfield(obj, name) + end +end mutable struct GetApplicationAttemptsResponseProto <: ProtoType - application_attempts::Base.Vector{ApplicationAttemptReportProto} - GetApplicationAttemptsResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetApplicationAttemptsResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetApplicationAttemptsResponseProto(; kwargs...) + obj = new(meta(GetApplicationAttemptsResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetApplicationAttemptsResponseProto +const __meta_GetApplicationAttemptsResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetApplicationAttemptsResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetApplicationAttemptsResponseProto) + __meta_GetApplicationAttemptsResponseProto[] = target = ProtoMeta(GetApplicationAttemptsResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_attempts => Base.Vector{ApplicationAttemptReportProto}] + meta(target, GetApplicationAttemptsResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetApplicationAttemptsResponseProto[] + end +end +function Base.getproperty(obj::GetApplicationAttemptsResponseProto, name::Symbol) + if name === :application_attempts + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ApplicationAttemptReportProto} + else + getfield(obj, name) + end +end mutable struct GetContainerReportRequestProto <: ProtoType - container_id::ContainerIdProto - GetContainerReportRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContainerReportRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContainerReportRequestProto(; kwargs...) + obj = new(meta(GetContainerReportRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContainerReportRequestProto +const __meta_GetContainerReportRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetContainerReportRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContainerReportRequestProto) + __meta_GetContainerReportRequestProto[] = target = ProtoMeta(GetContainerReportRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_id => ContainerIdProto] + meta(target, GetContainerReportRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContainerReportRequestProto[] + end +end +function Base.getproperty(obj::GetContainerReportRequestProto, name::Symbol) + if name === :container_id + return (obj.__protobuf_jl_internal_values[name])::ContainerIdProto + else + getfield(obj, name) + end +end mutable struct GetContainerReportResponseProto <: ProtoType - container_report::ContainerReportProto - GetContainerReportResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContainerReportResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContainerReportResponseProto(; kwargs...) + obj = new(meta(GetContainerReportResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContainerReportResponseProto +const __meta_GetContainerReportResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetContainerReportResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContainerReportResponseProto) + __meta_GetContainerReportResponseProto[] = target = ProtoMeta(GetContainerReportResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:container_report => ContainerReportProto] + meta(target, GetContainerReportResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContainerReportResponseProto[] + end +end +function Base.getproperty(obj::GetContainerReportResponseProto, name::Symbol) + if name === :container_report + return (obj.__protobuf_jl_internal_values[name])::ContainerReportProto + else + getfield(obj, name) + end +end mutable struct GetContainersRequestProto <: ProtoType - application_attempt_id::ApplicationAttemptIdProto - GetContainersRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContainersRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContainersRequestProto(; kwargs...) + obj = new(meta(GetContainersRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContainersRequestProto +const __meta_GetContainersRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetContainersRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContainersRequestProto) + __meta_GetContainersRequestProto[] = target = ProtoMeta(GetContainersRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:application_attempt_id => ApplicationAttemptIdProto] + meta(target, GetContainersRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContainersRequestProto[] + end +end +function Base.getproperty(obj::GetContainersRequestProto, name::Symbol) + if name === :application_attempt_id + return (obj.__protobuf_jl_internal_values[name])::ApplicationAttemptIdProto + else + getfield(obj, name) + end +end mutable struct GetContainersResponseProto <: ProtoType - containers::Base.Vector{ContainerReportProto} - GetContainersResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetContainersResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetContainersResponseProto(; kwargs...) + obj = new(meta(GetContainersResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetContainersResponseProto +const __meta_GetContainersResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetContainersResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetContainersResponseProto) + __meta_GetContainersResponseProto[] = target = ProtoMeta(GetContainersResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:containers => Base.Vector{ContainerReportProto}] + meta(target, GetContainersResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetContainersResponseProto[] + end +end +function Base.getproperty(obj::GetContainersResponseProto, name::Symbol) + if name === :containers + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ContainerReportProto} + else + getfield(obj, name) + end +end mutable struct UseSharedCacheResourceRequestProto <: ProtoType - applicationId::ApplicationIdProto - resourceKey::AbstractString - UseSharedCacheResourceRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UseSharedCacheResourceRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UseSharedCacheResourceRequestProto(; kwargs...) + obj = new(meta(UseSharedCacheResourceRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UseSharedCacheResourceRequestProto +const __meta_UseSharedCacheResourceRequestProto = Ref{ProtoMeta}() +function meta(::Type{UseSharedCacheResourceRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UseSharedCacheResourceRequestProto) + __meta_UseSharedCacheResourceRequestProto[] = target = ProtoMeta(UseSharedCacheResourceRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:applicationId => ApplicationIdProto, :resourceKey => AbstractString] + meta(target, UseSharedCacheResourceRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UseSharedCacheResourceRequestProto[] + end +end +function Base.getproperty(obj::UseSharedCacheResourceRequestProto, name::Symbol) + if name === :applicationId + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :resourceKey + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct UseSharedCacheResourceResponseProto <: ProtoType - path::AbstractString - UseSharedCacheResourceResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct UseSharedCacheResourceResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function UseSharedCacheResourceResponseProto(; kwargs...) + obj = new(meta(UseSharedCacheResourceResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct UseSharedCacheResourceResponseProto +const __meta_UseSharedCacheResourceResponseProto = Ref{ProtoMeta}() +function meta(::Type{UseSharedCacheResourceResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_UseSharedCacheResourceResponseProto) + __meta_UseSharedCacheResourceResponseProto[] = target = ProtoMeta(UseSharedCacheResourceResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:path => AbstractString] + meta(target, UseSharedCacheResourceResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_UseSharedCacheResourceResponseProto[] + end +end +function Base.getproperty(obj::UseSharedCacheResourceResponseProto, name::Symbol) + if name === :path + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ReleaseSharedCacheResourceRequestProto <: ProtoType - applicationId::ApplicationIdProto - resourceKey::AbstractString - ReleaseSharedCacheResourceRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReleaseSharedCacheResourceRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReleaseSharedCacheResourceRequestProto(; kwargs...) + obj = new(meta(ReleaseSharedCacheResourceRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReleaseSharedCacheResourceRequestProto +const __meta_ReleaseSharedCacheResourceRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReleaseSharedCacheResourceRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReleaseSharedCacheResourceRequestProto) + __meta_ReleaseSharedCacheResourceRequestProto[] = target = ProtoMeta(ReleaseSharedCacheResourceRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:applicationId => ApplicationIdProto, :resourceKey => AbstractString] + meta(target, ReleaseSharedCacheResourceRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReleaseSharedCacheResourceRequestProto[] + end +end +function Base.getproperty(obj::ReleaseSharedCacheResourceRequestProto, name::Symbol) + if name === :applicationId + return (obj.__protobuf_jl_internal_values[name])::ApplicationIdProto + elseif name === :resourceKey + return (obj.__protobuf_jl_internal_values[name])::AbstractString + else + getfield(obj, name) + end +end mutable struct ReleaseSharedCacheResourceResponseProto <: ProtoType - ReleaseSharedCacheResourceResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReleaseSharedCacheResourceResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReleaseSharedCacheResourceResponseProto(; kwargs...) + obj = new(meta(ReleaseSharedCacheResourceResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReleaseSharedCacheResourceResponseProto +const __meta_ReleaseSharedCacheResourceResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReleaseSharedCacheResourceResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReleaseSharedCacheResourceResponseProto) + __meta_ReleaseSharedCacheResourceResponseProto[] = target = ProtoMeta(ReleaseSharedCacheResourceResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ReleaseSharedCacheResourceResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReleaseSharedCacheResourceResponseProto[] + end +end mutable struct GetNewReservationRequestProto <: ProtoType - GetNewReservationRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetNewReservationRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetNewReservationRequestProto(; kwargs...) + obj = new(meta(GetNewReservationRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetNewReservationRequestProto +const __meta_GetNewReservationRequestProto = Ref{ProtoMeta}() +function meta(::Type{GetNewReservationRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetNewReservationRequestProto) + __meta_GetNewReservationRequestProto[] = target = ProtoMeta(GetNewReservationRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, GetNewReservationRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetNewReservationRequestProto[] + end +end mutable struct GetNewReservationResponseProto <: ProtoType - reservation_id::ReservationIdProto - GetNewReservationResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct GetNewReservationResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function GetNewReservationResponseProto(; kwargs...) + obj = new(meta(GetNewReservationResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct GetNewReservationResponseProto +const __meta_GetNewReservationResponseProto = Ref{ProtoMeta}() +function meta(::Type{GetNewReservationResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_GetNewReservationResponseProto) + __meta_GetNewReservationResponseProto[] = target = ProtoMeta(GetNewReservationResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:reservation_id => ReservationIdProto] + meta(target, GetNewReservationResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_GetNewReservationResponseProto[] + end +end +function Base.getproperty(obj::GetNewReservationResponseProto, name::Symbol) + if name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::ReservationIdProto + else + getfield(obj, name) + end +end mutable struct ReservationSubmissionRequestProto <: ProtoType - queue::AbstractString - reservation_definition::ReservationDefinitionProto - reservation_id::ReservationIdProto - ReservationSubmissionRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationSubmissionRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationSubmissionRequestProto(; kwargs...) + obj = new(meta(ReservationSubmissionRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationSubmissionRequestProto +const __meta_ReservationSubmissionRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReservationSubmissionRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationSubmissionRequestProto) + __meta_ReservationSubmissionRequestProto[] = target = ProtoMeta(ReservationSubmissionRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:queue => AbstractString, :reservation_definition => ReservationDefinitionProto, :reservation_id => ReservationIdProto] + meta(target, ReservationSubmissionRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationSubmissionRequestProto[] + end +end +function Base.getproperty(obj::ReservationSubmissionRequestProto, name::Symbol) + if name === :queue + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :reservation_definition + return (obj.__protobuf_jl_internal_values[name])::ReservationDefinitionProto + elseif name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::ReservationIdProto + else + getfield(obj, name) + end +end mutable struct ReservationSubmissionResponseProto <: ProtoType - ReservationSubmissionResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationSubmissionResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationSubmissionResponseProto(; kwargs...) + obj = new(meta(ReservationSubmissionResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationSubmissionResponseProto +const __meta_ReservationSubmissionResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReservationSubmissionResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationSubmissionResponseProto) + __meta_ReservationSubmissionResponseProto[] = target = ProtoMeta(ReservationSubmissionResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ReservationSubmissionResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationSubmissionResponseProto[] + end +end mutable struct ReservationUpdateRequestProto <: ProtoType - reservation_definition::ReservationDefinitionProto - reservation_id::ReservationIdProto - ReservationUpdateRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationUpdateRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationUpdateRequestProto(; kwargs...) + obj = new(meta(ReservationUpdateRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationUpdateRequestProto +const __meta_ReservationUpdateRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReservationUpdateRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationUpdateRequestProto) + __meta_ReservationUpdateRequestProto[] = target = ProtoMeta(ReservationUpdateRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:reservation_definition => ReservationDefinitionProto, :reservation_id => ReservationIdProto] + meta(target, ReservationUpdateRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationUpdateRequestProto[] + end +end +function Base.getproperty(obj::ReservationUpdateRequestProto, name::Symbol) + if name === :reservation_definition + return (obj.__protobuf_jl_internal_values[name])::ReservationDefinitionProto + elseif name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::ReservationIdProto + else + getfield(obj, name) + end +end mutable struct ReservationUpdateResponseProto <: ProtoType - ReservationUpdateResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationUpdateResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationUpdateResponseProto(; kwargs...) + obj = new(meta(ReservationUpdateResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationUpdateResponseProto +const __meta_ReservationUpdateResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReservationUpdateResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationUpdateResponseProto) + __meta_ReservationUpdateResponseProto[] = target = ProtoMeta(ReservationUpdateResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ReservationUpdateResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationUpdateResponseProto[] + end +end mutable struct ReservationDeleteRequestProto <: ProtoType - reservation_id::ReservationIdProto - ReservationDeleteRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationDeleteRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationDeleteRequestProto(; kwargs...) + obj = new(meta(ReservationDeleteRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationDeleteRequestProto +const __meta_ReservationDeleteRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReservationDeleteRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationDeleteRequestProto) + __meta_ReservationDeleteRequestProto[] = target = ProtoMeta(ReservationDeleteRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[:reservation_id => ReservationIdProto] + meta(target, ReservationDeleteRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationDeleteRequestProto[] + end +end +function Base.getproperty(obj::ReservationDeleteRequestProto, name::Symbol) + if name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::ReservationIdProto + else + getfield(obj, name) + end +end mutable struct ReservationDeleteResponseProto <: ProtoType - ReservationDeleteResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationDeleteResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationDeleteResponseProto(; kwargs...) + obj = new(meta(ReservationDeleteResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationDeleteResponseProto +const __meta_ReservationDeleteResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReservationDeleteResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationDeleteResponseProto) + __meta_ReservationDeleteResponseProto[] = target = ProtoMeta(ReservationDeleteResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, ReservationDeleteResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationDeleteResponseProto[] + end +end mutable struct ReservationListRequestProto <: ProtoType - queue::AbstractString - reservation_id::AbstractString - start_time::Int64 - end_time::Int64 - include_resource_allocations::Bool - ReservationListRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationListRequestProto -const __fnum_ReservationListRequestProto = Int[1,3,4,5,6] -meta(t::Type{ReservationListRequestProto}) = meta(t, ProtoBuf.DEF_REQ, __fnum_ReservationListRequestProto, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES, ProtoBuf.DEF_FIELD_TYPES) + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationListRequestProto(; kwargs...) + obj = new(meta(ReservationListRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationListRequestProto +const __meta_ReservationListRequestProto = Ref{ProtoMeta}() +function meta(::Type{ReservationListRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationListRequestProto) + __meta_ReservationListRequestProto[] = target = ProtoMeta(ReservationListRequestProto) + fnum = Int[1,3,4,5,6] + allflds = Pair{Symbol,Union{Type,String}}[:queue => AbstractString, :reservation_id => AbstractString, :start_time => Int64, :end_time => Int64, :include_resource_allocations => Bool] + meta(target, ReservationListRequestProto, allflds, ProtoBuf.DEF_REQ, fnum, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationListRequestProto[] + end +end +function Base.getproperty(obj::ReservationListRequestProto, name::Symbol) + if name === :queue + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :reservation_id + return (obj.__protobuf_jl_internal_values[name])::AbstractString + elseif name === :start_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :end_time + return (obj.__protobuf_jl_internal_values[name])::Int64 + elseif name === :include_resource_allocations + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end mutable struct ReservationListResponseProto <: ProtoType - reservations::Base.Vector{ReservationAllocationStateProto} - ReservationListResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct ReservationListResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function ReservationListResponseProto(; kwargs...) + obj = new(meta(ReservationListResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct ReservationListResponseProto +const __meta_ReservationListResponseProto = Ref{ProtoMeta}() +function meta(::Type{ReservationListResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_ReservationListResponseProto) + __meta_ReservationListResponseProto[] = target = ProtoMeta(ReservationListResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:reservations => Base.Vector{ReservationAllocationStateProto}] + meta(target, ReservationListResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_ReservationListResponseProto[] + end +end +function Base.getproperty(obj::ReservationListResponseProto, name::Symbol) + if name === :reservations + return (obj.__protobuf_jl_internal_values[name])::Base.Vector{ReservationAllocationStateProto} + else + getfield(obj, name) + end +end mutable struct RunSharedCacheCleanerTaskRequestProto <: ProtoType - RunSharedCacheCleanerTaskRequestProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RunSharedCacheCleanerTaskRequestProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RunSharedCacheCleanerTaskRequestProto(; kwargs...) + obj = new(meta(RunSharedCacheCleanerTaskRequestProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RunSharedCacheCleanerTaskRequestProto +const __meta_RunSharedCacheCleanerTaskRequestProto = Ref{ProtoMeta}() +function meta(::Type{RunSharedCacheCleanerTaskRequestProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RunSharedCacheCleanerTaskRequestProto) + __meta_RunSharedCacheCleanerTaskRequestProto[] = target = ProtoMeta(RunSharedCacheCleanerTaskRequestProto) + allflds = Pair{Symbol,Union{Type,String}}[] + meta(target, RunSharedCacheCleanerTaskRequestProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RunSharedCacheCleanerTaskRequestProto[] + end +end mutable struct RunSharedCacheCleanerTaskResponseProto <: ProtoType - accepted::Bool - RunSharedCacheCleanerTaskResponseProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) -end #mutable struct RunSharedCacheCleanerTaskResponseProto + __protobuf_jl_internal_meta::ProtoMeta + __protobuf_jl_internal_values::Dict{Symbol,Any} + + function RunSharedCacheCleanerTaskResponseProto(; kwargs...) + obj = new(meta(RunSharedCacheCleanerTaskResponseProto), Dict{Symbol,Any}()) + values = obj.__protobuf_jl_internal_values + symdict = obj.__protobuf_jl_internal_meta.symdict + for nv in kwargs + fldname, fldval = nv + fldtype = symdict[fldname].jtyp + (fldname in keys(symdict)) || error(string(typeof(obj), " has no field with name ", fldname)) + values[fldname] = isa(fldval, fldtype) ? fldval : convert(fldtype, fldval) + end + obj + end +end # mutable struct RunSharedCacheCleanerTaskResponseProto +const __meta_RunSharedCacheCleanerTaskResponseProto = Ref{ProtoMeta}() +function meta(::Type{RunSharedCacheCleanerTaskResponseProto}) + ProtoBuf.metalock() do + if !isassigned(__meta_RunSharedCacheCleanerTaskResponseProto) + __meta_RunSharedCacheCleanerTaskResponseProto[] = target = ProtoMeta(RunSharedCacheCleanerTaskResponseProto) + allflds = Pair{Symbol,Union{Type,String}}[:accepted => Bool] + meta(target, RunSharedCacheCleanerTaskResponseProto, allflds, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) + end + __meta_RunSharedCacheCleanerTaskResponseProto[] + end +end +function Base.getproperty(obj::RunSharedCacheCleanerTaskResponseProto, name::Symbol) + if name === :accepted + return (obj.__protobuf_jl_internal_values[name])::Bool + else + getfield(obj, name) + end +end export ContainerUpdateTypeProto, SchedulerResourceTypes, ApplicationsRequestScopeProto, RegisterApplicationMasterRequestProto, RegisterApplicationMasterResponseProto, FinishApplicationMasterRequestProto, FinishApplicationMasterResponseProto, UpdateContainerRequestProto, UpdateContainerErrorProto, AllocateRequestProto, NMTokenProto, UpdatedContainerProto, AllocateResponseProto, GetNewApplicationRequestProto, GetNewApplicationResponseProto, GetApplicationReportRequestProto, GetApplicationReportResponseProto, SubmitApplicationRequestProto, SubmitApplicationResponseProto, FailApplicationAttemptRequestProto, FailApplicationAttemptResponseProto, KillApplicationRequestProto, KillApplicationResponseProto, GetClusterMetricsRequestProto, GetClusterMetricsResponseProto, MoveApplicationAcrossQueuesRequestProto, MoveApplicationAcrossQueuesResponseProto, GetApplicationsRequestProto, GetApplicationsResponseProto, GetClusterNodesRequestProto, GetClusterNodesResponseProto, GetQueueInfoRequestProto, GetQueueInfoResponseProto, GetQueueUserAclsInfoRequestProto, GetQueueUserAclsInfoResponseProto, GetNodesToLabelsRequestProto, GetNodesToLabelsResponseProto, GetLabelsToNodesRequestProto, GetLabelsToNodesResponseProto, GetClusterNodeLabelsRequestProto, GetClusterNodeLabelsResponseProto, UpdateApplicationPriorityRequestProto, UpdateApplicationPriorityResponseProto, SignalContainerRequestProto, SignalContainerResponseProto, UpdateApplicationTimeoutsRequestProto, UpdateApplicationTimeoutsResponseProto, GetAllResourceTypeInfoRequestProto, GetAllResourceTypeInfoResponseProto, StartContainerRequestProto, StartContainerResponseProto, StopContainerRequestProto, StopContainerResponseProto, ResourceLocalizationRequestProto, ResourceLocalizationResponseProto, ReInitializeContainerRequestProto, ReInitializeContainerResponseProto, RestartContainerResponseProto, RollbackResponseProto, CommitResponseProto, StartContainersRequestProto, ContainerExceptionMapProto, StartContainersResponseProto, StopContainersRequestProto, StopContainersResponseProto, GetContainerStatusesRequestProto, GetContainerStatusesResponseProto, IncreaseContainersResourceRequestProto, IncreaseContainersResourceResponseProto, ContainerUpdateRequestProto, ContainerUpdateResponseProto, GetApplicationAttemptReportRequestProto, GetApplicationAttemptReportResponseProto, GetApplicationAttemptsRequestProto, GetApplicationAttemptsResponseProto, GetContainerReportRequestProto, GetContainerReportResponseProto, GetContainersRequestProto, GetContainersResponseProto, UseSharedCacheResourceRequestProto, UseSharedCacheResourceResponseProto, ReleaseSharedCacheResourceRequestProto, ReleaseSharedCacheResourceResponseProto, GetNewReservationRequestProto, GetNewReservationResponseProto, ReservationSubmissionRequestProto, ReservationSubmissionResponseProto, ReservationUpdateRequestProto, ReservationUpdateResponseProto, ReservationDeleteRequestProto, ReservationDeleteResponseProto, ReservationListRequestProto, ReservationListResponseProto, RunSharedCacheCleanerTaskRequestProto, RunSharedCacheCleanerTaskResponseProto +# COV_EXCL_STOP \ No newline at end of file diff --git a/src/rpc.jl b/src/rpc.jl index 6016cfa..aab9c46 100644 --- a/src/rpc.jl +++ b/src/rpc.jl @@ -472,12 +472,12 @@ function buffer_readblock(reader::HDFSBlockReader) token = TokenProto() for fld in (:identifier, :password, :kind, :service) - setproperty!(token, fld, get_field(block.blockToken, fld)) + setproperty!(token, fld, getproperty(block.blockToken, fld)) end exblock = ExtendedBlockProto() for fld in (:poolId, :blockId, :generationStamp) - setproperty!(exblock, fld, get_field(block.b, fld)) + setproperty!(exblock, fld, getproperty(block.b, fld)) end basehdr = BaseHeaderProto(block=exblock, token=token) @@ -963,12 +963,12 @@ function buffer_writeblock(writer::HDFSBlockWriter) token = TokenProto() for fld in (:identifier, :password, :kind, :service) - setproperty!(token, fld, get_field(block.blockToken, fld)) + setproperty!(token, fld, getproperty(block.blockToken, fld)) end exblock = ExtendedBlockProto() for fld in (:poolId, :blockId, :generationStamp) - setproperty!(exblock, fld, get_field(block.b, fld)) + setproperty!(exblock, fld, getproperty(block.b, fld)) end setproperty!(exblock, :numBytes, zero(UInt64)) diff --git a/src/ugi.jl b/src/ugi.jl index 19581fb..8747d3a 100644 --- a/src/ugi.jl +++ b/src/ugi.jl @@ -23,7 +23,7 @@ end add_token!(ugi::UserGroupInformation, token::TokenProto) = add_token!(ugi.credentials, token) add_token!(ugi::UserGroupInformation, alias::AbstractString, token::TokenProto) = add_token!(ugi.credentials, alias, token) -username(userinfo::UserInformationProto) = isfilled(userinfo, :realUser) ? userinfo.realUser : userinfo.effectiveUser +username(userinfo::UserInformationProto) = hasproperty(userinfo, :realUser) ? userinfo.realUser : userinfo.effectiveUser username(ugi::UserGroupInformation) = username(ugi.userinfo) find_tokens(ugi::UserGroupInformation; alias::AbstractString="", kind::AbstractString="") = find_tokens(ugi.credentials; alias=alias, kind=kind) @@ -31,8 +31,8 @@ find_tokens(ugi::UserGroupInformation; alias::AbstractString="", kind::AbstractS function show(io::IO, ugi::UserGroupInformation) uinfo = ugi.userinfo print(io, "User:") - isfilled(uinfo, :realUser) && print(io, ' ', uinfo.realUser) - isfilled(uinfo, :effectiveUser) && print(io, " (", uinfo.effectiveUser, ')') + hasproperty(uinfo, :realUser) && print(io, ' ', uinfo.realUser) + hasproperty(uinfo, :effectiveUser) && print(io, " (", uinfo.effectiveUser, ')') isempty(ugi.credentials.tokens) || print(io, " with ", length(ugi.credentials.tokens), " tokens") nothing end